/* ============================================
   SOFRA - Landing Page Styles
   2024-2025 Tasarım Sistemi
   ============================================ */

/* --------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------- */
:root {
  /* Colors - Light Mode (Default) */
  --color-primary: #E1644D;
  --color-primary-rgb: 225, 100, 77;
  --color-secondary: #F59E0B;
  --color-secondary-rgb: 245, 158, 11;
  --color-accent: #60A5FA;
  --color-accent-rgb: 96, 165, 250;
  --color-success: #1E9E57;
  --color-warning: #F6B23F;
  --color-danger: #DA3A3A;

  --color-bg: #FFF7F0;
  --color-bg-alt: #FFF0E6;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F5ECE4;
  --color-border: rgba(62, 42, 30, 0.12);
  --color-border-strong: rgba(62, 42, 30, 0.2);

  --color-text: #3E2A1E;
  --color-text-rgb: 62, 42, 30;
  --color-text-muted: #7A5F52;
  --color-text-muted-rgb: 122, 95, 82;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 16px;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.5rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(var(--color-text-rgb), 0.06);
  --shadow-md: 0 4px 12px rgba(var(--color-text-rgb), 0.08);
  --shadow-lg: 0 12px 32px rgba(var(--color-text-rgb), 0.1);
  --shadow-xl: 0 24px 48px rgba(var(--color-text-rgb), 0.12);
  --shadow-glow: 0 0 40px rgba(var(--color-primary-rgb), 0.25);
  --shadow-glow-strong: 0 0 60px rgba(var(--color-primary-rgb), 0.35);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --gutter: 1.5rem;

  /* Header */
  --header-height: 72px;
  --header-height-scrolled: 64px;
}

/* --------------------------------------------
   2. DARK MODE
   -------------------------------------------- */
[data-theme="dark"] {
  --color-bg: #1A1412;
  --color-bg-alt: #241C18;
  --color-surface: #2D2420;
  --color-surface-muted: #3D332D;
  --color-border: rgba(245, 237, 232, 0.1);
  --color-border-strong: rgba(245, 237, 232, 0.18);

  --color-text: #F5EDE8;
  --color-text-rgb: 245, 237, 232;
  --color-text-muted: #B8A99E;
  --color-text-muted-rgb: 184, 169, 158;

  --glass-bg: rgba(45, 36, 32, 0.8);
  --glass-border: rgba(245, 237, 232, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1A1412;
    --color-bg-alt: #241C18;
    --color-surface: #2D2420;
    --color-surface-muted: #3D332D;
    --color-border: rgba(245, 237, 232, 0.1);
    --color-border-strong: rgba(245, 237, 232, 0.18);

    --color-text: #F5EDE8;
    --color-text-rgb: 245, 237, 232;
    --color-text-muted: #B8A99E;
    --color-text-muted-rgb: 184, 169, 158;

    --glass-bg: rgba(45, 36, 32, 0.8);
    --glass-border: rgba(245, 237, 232, 0.08);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------
   3. RESET & BASE
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient Mesh Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 80% at 10% -20%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(var(--color-secondary-rgb), 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(var(--color-accent-rgb), 0.06) 0%, transparent 40%),
    var(--color-bg);
  pointer-events: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------
   5. LAYOUT
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background: var(--color-surface-muted);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
}

.section__header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

/* --------------------------------------------
   6. COMPONENTS - Buttons
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-surface-muted);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: rgba(var(--color-primary-rgb), 0.3);
  color: #FFFFFF;
  box-shadow: var(--shadow-md), 0 4px 16px rgba(var(--color-primary-rgb), 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  filter: brightness(1.05);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(var(--color-primary-rgb), 0.3);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border-strong);
}

.btn--ghost:hover {
  background: var(--color-surface);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------
   7. COMPONENTS - Cards
   -------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-color: var(--glass-border);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------
   8. HEADER
   -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand:hover {
  opacity: 0.9;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.brand__name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav__link:hover::after {
  width: 20px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(15deg);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

:root:not([data-theme="dark"]) .theme-toggle__moon,
[data-theme="light"] .theme-toggle__moon {
  display: block;
}

:root:not([data-theme="light"]) .theme-toggle__sun,
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__moon {
    display: block;
  }
  :root:not([data-theme]) .theme-toggle__sun {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__sun {
    display: block;
  }
  :root:not([data-theme]) .theme-toggle__moon {
    display: none;
  }
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.lang-selector:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile Navigation */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.nav__toggle-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 920px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    padding: var(--space-3) var(--space-4);
  }

  .nav__link::after {
    display: none;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
}

.skip-link:focus {
  left: var(--space-4);
}

/* --------------------------------------------
   9. HERO SECTION
   -------------------------------------------- */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__content {
  max-width: 580px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}

.badge__icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Phone Mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--color-text);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

[data-theme="dark"] .phone-mockup {
  background: #0A0A0A;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(var(--color-primary-rgb), 0.2);
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--color-text);
  border-radius: 0 0 20px 20px;
}

[data-theme="dark"] .phone-mockup__notch {
  background: #0A0A0A;
}

.phone-mockup__content {
  padding: var(--space-10) var(--space-4) var(--space-4);
}

.phone-mockup__header {
  text-align: center;
  margin-bottom: var(--space-4);
}

.phone-mockup__logo {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
}

.phone-mockup__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.phone-mockup__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.phone-mockup__card-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.phone-mockup__card-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.phone-mockup__card-meta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.phone-mockup__tag {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

/* Floating Elements (Desktop only) */
.hero__float {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: none;
}

.hero__float--1 {
  top: 10%;
  left: -20px;
  animation: float 6s ease-in-out infinite;
}

.hero__float--2 {
  bottom: 20%;
  right: -30px;
  animation: float 6s ease-in-out infinite 1s;
}

.hero__float-icon {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-1);
}

.hero__float-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

@media (min-width: 1024px) {
  .hero__float {
    display: block;
  }
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }
}

/* --------------------------------------------
   10. STATS BAR
   -------------------------------------------- */
.stats-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.stat--highlight .stat__value {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(var(--color-success), 0.1);
  border: 1px solid rgba(30, 158, 87, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
}

.live-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat__value {
    font-size: var(--font-size-2xl);
  }
}

/* --------------------------------------------
   11. FEATURES - BENTO GRID
   -------------------------------------------- */
.features {
  padding: var(--space-20) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--space-4);
}

.bento-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item--wide {
  grid-column: span 2;
}

.bento-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-secondary-rgb), 0.1));
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.bento-item:hover .bento-item__icon {
  transform: scale(1.05);
}

.bento-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.bento-item__description {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  flex-grow: 1;
}

@media (max-width: 920px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------
   12. HOW IT WORKS - TIMELINE
   -------------------------------------------- */
.timeline-section {
  padding: var(--space-20) 0;
  background: var(--color-surface-muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
  margin-top: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.timeline__progress {
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

.timeline.is-visible .timeline__progress {
  width: calc(66.66% - 40px);
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-4);
  transition: all var(--transition-base);
}

.timeline-step.is-active .timeline-step__number {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.timeline-step__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.timeline-step:hover .timeline-step__content {
  box-shadow: var(--shadow-md);
}

.timeline-step__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.timeline-step__description {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-left: var(--space-10);
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline__progress {
    top: 0;
    left: 20px;
    width: 3px;
    height: 0;
  }

  .timeline.is-visible .timeline__progress {
    width: 3px;
    height: 100%;
  }

  .timeline-step {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    align-items: start;
  }

  .timeline-step__number {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .timeline-step__content {
    padding: var(--space-4);
  }
}

/* --------------------------------------------
   13. TESTIMONIALS PLACEHOLDER
   -------------------------------------------- */
.testimonials {
  padding: var(--space-20) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.testimonial-card--placeholder {
  opacity: 0.6;
  filter: blur(2px);
}

.testimonial-card__quote {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-border));
  border-radius: var(--radius-full);
}

.testimonial-card__name {
  font-weight: var(--font-weight-semibold);
}

.testimonial-card__role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.testimonials__coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-text-rgb), 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.testimonials__coming-soon-text {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 920px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------
   14. FAQ ACCORDION
   -------------------------------------------- */
.faq {
  padding: var(--space-20) 0;
  background: var(--color-surface-muted);
}

.faq__list {
  max-width: 800px;
  margin: var(--space-10) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-item__summary {
  padding: var(--space-5) var(--space-6);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* --------------------------------------------
   15. CTA SECTION
   -------------------------------------------- */
.cta-section {
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(var(--color-secondary-rgb), 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  box-shadow: var(--shadow-xl);
}

.cta-box__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}

.cta-box__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating Shapes */
.cta-float {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.05));
  filter: blur(60px);
  pointer-events: none;
  display: none;
}

.cta-float--1 {
  top: -50px;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.cta-float--2 {
  bottom: -50px;
  right: 10%;
  animation: float 8s ease-in-out infinite 2s;
}

@media (min-width: 1024px) {
  .cta-float {
    display: block;
  }
}

/* --------------------------------------------
   16. FOOTER
   -------------------------------------------- */
.site-footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer__brand {
  max-width: 280px;
}

.footer__brand .brand {
  margin-bottom: var(--space-4);
}

.footer__brand-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer__column-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

@media (max-width: 920px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* --------------------------------------------
   17. ANIMATIONS
   -------------------------------------------- */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animations */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

/* Desktop Enhanced Animations */
@media (min-width: 1024px) {
  .animate-on-scroll {
    transform: translateY(40px);
  }

  .hero__content {
    animation: fadeInUp 0.8s ease-out forwards;
  }

  .hero__visual {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
  }

  .bento-item {
    transition:
      transform var(--transition-base),
      box-shadow var(--transition-base),
      border-color var(--transition-base);
  }

  .bento-item:hover {
    transform: translateY(-8px);
  }
}

/* Tablet Animations */
@media (min-width: 768px) and (max-width: 1023px) {
  .animate-on-scroll {
    transform: translateY(20px);
    transition-duration: 300ms;
  }
}

/* Mobile - Minimal Animations */
@media (max-width: 767px) {
  .animate-on-scroll {
    transform: translateY(15px);
    transition-duration: 250ms;
  }

  .hero__content,
  .hero__visual {
    animation: none;
    opacity: 1;
  }

  .bento-item:hover {
    transform: none;
  }

  .hero__float {
    display: none !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero__float,
  .cta-float {
    display: none !important;
  }
}

/* --------------------------------------------
   18. UTILITIES
   -------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------
   19. MODAL / POPUP
   -------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.is-active .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal__close:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.modal__content {
  padding: var(--space-8);
  overflow-y: auto;
  max-height: 90vh;
}

.modal__header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
}

.modal__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-secondary-rgb), 0.1));
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-4);
  font-size: var(--font-size-2xl);
}

.modal__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.modal__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form__label--required::after {
  content: ' *';
  color: var(--color-danger);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5F52' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form__checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
}

.form__error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  display: none;
}

.form__group.has-error .form__input,
.form__group.has-error .form__textarea,
.form__group.has-error .form__select {
  border-color: var(--color-danger);
}

.form__group.has-error .form__error {
  display: block;
}

.form__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.form__actions .btn {
  flex: 1;
}

/* Loading State */
.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success State */
.modal__success {
  text-align: center;
  padding: var(--space-8) 0;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 158, 87, 0.1);
  border: 1px solid rgba(30, 158, 87, 0.3);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  font-size: var(--font-size-3xl);
  color: var(--color-success);
}

.modal__success-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.modal__success-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .modal-overlay {
    padding: var(--space-3);
    align-items: flex-end;
  }

  .modal {
    max-width: none;
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal__content {
    padding: var(--space-6);
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0));
  }

  .form__actions {
    flex-direction: column;
  }
}
