/* ════════════════════════════════════════════════════════════════
   DECLUTRR DESIGN SYSTEM & STYLE ARCHITECTURE
   ════════════════════════════════════════════════════════════════ */

@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  img, svg {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }

  button {
    cursor: pointer;
  }
}

@layer base {
  :root {
    /* Fonts */
    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-serif: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Theme-agnostic variables */
    --brand-hsl: 261, 100%, 65%; /* #7C4DFF */
    --brand-color: hsl(var(--brand-hsl));
    --brand-hover: hsl(261, 95%, 55%);
    --brand-active: hsl(261, 90%, 45%);
    
    --success-hsl: 150, 100%, 38%;
    --success-color: hsl(var(--success-hsl));

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
  }

  /* Light Theme Specifics */
  :root {
    color-scheme: light dark;
    --bg-color: hsl(220, 20%, 98%);
    --surface-color: hsl(0, 0%, 100%);
    --surface-muted: hsl(220, 15%, 95%);
    --text-color: hsl(220, 40%, 12%);
    --text-muted: hsl(220, 15%, 45%);
    --border-color: hsl(220, 15%, 90%);
    --brand-light: hsl(261, 100%, 96%);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 30px 60px -15px rgba(124, 77, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --hero-gradient: radial-gradient(circle at 80% 20%, hsl(261, 100%, 95%) 0%, hsl(0, 0%, 100%) 55%, hsl(261, 50%, 93%) 100%);
    --accent-glow: radial-gradient(circle, rgba(124, 77, 255, 0.08) 0%, rgba(124, 77, 255, 0) 70%);
  }

  /* Dark Theme Overrides (System Preference & Explicit Toggle) */
  :root[data-theme="dark"] {
    --bg-color: hsl(224, 71%, 4%);
    --surface-color: hsl(224, 60%, 7%);
    --surface-muted: hsl(224, 45%, 11%);
    --text-color: hsl(220, 40%, 98%);
    --text-muted: hsl(220, 20%, 65%);
    --border-color: hsl(224, 30%, 15%);
    --brand-light: hsl(261, 40%, 12%);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --hero-gradient: radial-gradient(circle at 80% 20%, hsl(261, 60%, 15%) 0%, hsl(224, 71%, 4%) 60%, hsl(261, 50%, 8%) 100%);
    --accent-glow: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0) 70%);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg-color: hsl(224, 71%, 4%);
      --surface-color: hsl(224, 60%, 7%);
      --surface-muted: hsl(224, 45%, 11%);
      --text-color: hsl(220, 40%, 98%);
      --text-muted: hsl(220, 20%, 65%);
      --border-color: hsl(224, 30%, 15%);
      --brand-light: hsl(261, 40%, 12%);
      --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
      --shadow-heavy: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
      --glass-bg: rgba(15, 23, 42, 0.75);
      --glass-border: rgba(255, 255, 255, 0.05);
      --hero-gradient: radial-gradient(circle at 80% 20%, hsl(261, 60%, 15%) 0%, hsl(224, 71%, 4%) 60%, hsl(261, 50%, 8%) 100%);
      --accent-glow: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0) 70%);
    }
  }

  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
  }
}

@layer theme {
  /* Dynamic Background Blobs */
  .glow-blob {
    position: absolute;
    width: clamp(250px, 35vw, 600px);
    aspect-ratio: 1;
    background: var(--accent-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

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

  @keyframes pulse-slow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
  }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.4); }
    50% { box-shadow: 0 0 20px 6px rgba(124, 77, 255, 0.1); }
  }

  @keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }

  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  .animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
  }
}

@layer components {
  /* ══════════════════════ NAVBAR ══════════════════════ */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .nav-container {
    max-inline-size: 80rem;
    margin-inline: auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  @media (max-width: 48rem) {
    .nav-container {
      padding: 1rem 1.5rem;
    }
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
  }

  .nav-brand-logo {
    block-size: 2.25rem;
    inline-size: auto;
    object-fit: contain;
    transition: var(--transition-medium);
  }

  @media (max-width: 48rem) {
    .nav-brand-logo {
      block-size: 1.75rem;
    }
  }

  .nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
  }

  @media (min-width: 48rem) {
    .nav-links {
      display: flex;
    }
  }

  .nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding-block: 0.25rem;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-color);
    transition: var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--text-color);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .nav-link.active {
    color: var(--brand-color);
  }

  .nav-link.active::after {
    width: 100%;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  @media (max-width: 48rem) {
    .nav-actions {
      gap: 0.75rem;
    }
    .nav-actions .btn-text,
    #btn-get-started-nav {
      display: none;
    }
    .btn {
      padding: 0.625rem 1.25rem;
      font-size: 0.8rem;
    }
    .theme-toggle-btn {
      inline-size: 2.25rem;
      block-size: 2.25rem;
      border-radius: var(--radius-sm);
    }
  }

  /* BUTTONS */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    text-decoration: none;
    white-space: nowrap;
    outline: none;
  }

  .btn:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 4px;
  }

  .btn-text {
    color: var(--text-muted);
    font-weight: 700;
    background: transparent;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .btn-text:hover {
    color: var(--brand-color);
    background-color: var(--brand-light);
  }

  .btn-primary {
    background-color: var(--brand-color);
    color: hsl(0, 0%, 100%);
    box-shadow: 0 10px 20px -5px rgba(124, 77, 255, 0.3);
  }

  .btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(124, 77, 255, 0.4);
  }

  .btn-primary:active {
    background-color: var(--brand-active);
    transform: translateY(0);
  }

  .btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
  }

  .btn-secondary:hover {
    border-color: var(--brand-color);
    background-color: var(--brand-light);
    color: var(--brand-color);
    transform: translateY(-2px);
  }

  /* THEME TOGGLE BUTTON */
  .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    transition: var(--transition-fast);
  }

  .theme-toggle-btn:hover {
    background-color: var(--brand-light);
    border-color: var(--brand-color);
    color: var(--brand-color);
    transform: translateY(-2px);
  }

  .theme-toggle-btn .sun-icon {
    display: none;
  }

  .theme-toggle-btn .moon-icon {
    display: block;
  }

  /* Show sun/moon based on active theme setting */
  :root[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: none;
  }
  :root[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: block;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle-btn .moon-icon {
      display: none;
    }
    :root:not([data-theme="light"]) .theme-toggle-btn .sun-icon {
      display: block;
    }
  }

  /* ══════════════════════ HERO SECTION ══════════════════════ */
  .hero-section {
    position: relative;
    background: var(--hero-gradient);
    min-block-size: auto;
    display: flex;
    align-items: stretch;
    overflow: visible;
    padding-block: 6rem 4rem;
  }

  @media (min-width: 64rem) {
    .hero-section {
      min-block-size: 95vh;
      align-items: center;
      overflow: hidden;
      padding-block: 0;
    }
  }

  .hero-container {
    max-inline-size: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
    display: grid;
    gap: 4rem;
    align-items: center;
  }

  @media (min-width: 64rem) {
    .hero-container {
      grid-template-columns: 1.1fr 0.9fr;
      padding-block: 6rem;
    }
  }

  .hero-content {
    text-align: center;
  }

  @media (min-width: 64rem) {
    .hero-content {
      text-align: start;
    }
  }

  /* Trust Badge */
  .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-light);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-block-end: 2rem;
  }

  .pulse-indicator {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
  }

  .pulse-ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: var(--brand-color);
    opacity: 0.75;
    animation: pulse-slow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .pulse-dot {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    height: 0.5rem;
    width: 0.5rem;
    background-color: var(--brand-color);
  }

  /* Typography */
  .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
    font-weight: 900;
    line-height: 0.95;
    color: var(--text-color);
    margin-block-end: 2rem;
    text-wrap: balance;
  }

  .text-brand-gradient {
    background: linear-gradient(135deg, var(--brand-color), hsl(280, 100%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .text-underline-accent {
    position: relative;
    display: inline-block;
  }

  .text-underline-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.1em;
    width: 100%;
    height: 0.2em;
    background-color: var(--brand-light);
    z-index: -1;
  }

  .hero-description {
    font-size: clamp(1.125rem, 1vw + 0.75rem, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-block-end: 2.5rem;
    max-inline-size: 36rem;
    margin-inline: auto;
    text-wrap: pretty;
  }

  @media (min-width: 64rem) {
    .hero-description {
      margin-inline: 0;
    }
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block-end: 3rem;
  }

  @media (min-width: 36rem) {
    .hero-actions {
      flex-direction: row;
      justify-content: center;
    }
  }

  @media (min-width: 64rem) {
    .hero-actions {
      justify-content: flex-start;
    }
  }

  .hero-actions .btn {
    width: 100%;
  }

  @media (min-width: 36rem) {
    .hero-actions .btn {
      width: auto;
      padding-inline: 2.5rem;
    }
  }

  /* Social proof stack */
  .social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  @media (min-width: 64rem) {
    .social-proof {
      justify-content: flex-start;
    }
  }

  .avatar-stack {
    display: flex;
    margin-inline-start: 0.5rem;
  }

  .avatar-img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 3px solid var(--surface-color);
    margin-inline-start: -0.75rem;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
  }

  .avatar-counter {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--brand-light);
    border: 3px solid var(--surface-color);
    color: var(--brand-color);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: -0.75rem;
    box-shadow: var(--shadow-soft);
  }

  .reviews-badge {
    text-align: start;
    font-size: 0.875rem;
  }

  .stars-row {
    display: flex;
    color: hsl(40, 100%, 55%);
    gap: 0.125rem;
    margin-block-end: 0.125rem;
  }

  .reviews-text {
    color: var(--text-muted);
    font-weight: 500;
  }

  /* ══════════════════════ PHONE SHOWCASE ══════════════════════ */
  .showcase-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 2rem;
    padding-inline: 1.5rem;
  }

  .showcase-container {
    position: relative;
    width: 17.5rem;
    height: 38rem;
    perspective: 1000px;
    transition: var(--transition-medium);
  }

  @media (max-width: 36rem) {
    .showcase-container {
      width: 11.5rem;
      height: 25rem;
    }
  }

  @media (min-width: 48rem) {
    .showcase-container {
      width: 18.75rem;
      height: 40.5rem;
    }
  }

  /* Device frame design */
  .device-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    border: 5px solid hsl(222, 30%, 15%);
    border-radius: 2rem;
    background-color: hsl(224, 71%, 4%);
    box-shadow: var(--shadow-heavy), 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
  }

  /* Screen reflection and gloss */
  .device-mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 5;
  }

  /* Inner Notch Removed: screenshot contains camera dot */

  .device-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 1.6rem;
  }

  /* Floating Screen Styling */
  .floating-screen {
    position: absolute;
    width: 9.5rem;
    aspect-ratio: 9 / 20;
    border: 5px solid hsl(222, 30%, 15%);
    border-radius: 1.5rem;
    background-color: hsl(224, 71%, 4%);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4), var(--shadow-soft);
    overflow: hidden;
    isolation: isolate;
    transition: var(--transition-slow);
  }

  .floating-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 1.125rem;
  }

  .floating-screen-left {
    left: -5.5rem;
    top: 2.5rem;
    z-index: 3;
    animation: float 7s ease-in-out infinite alternate;
    transition: var(--transition-medium);
  }

  .floating-screen-right {
    right: -5.5rem;
    bottom: 2.5rem;
    z-index: 1;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite alternate-reverse;
    transition: var(--transition-medium);
  }

  @media (max-width: 36rem) {
    .floating-screen {
      width: 6.25rem;
    }
    .floating-screen-left {
      left: -3rem;
      top: 1.5rem;
    }
    .floating-screen-right {
      right: -3rem;
      bottom: 1.5rem;
    }
  }

  @media (min-width: 48rem) {
    .floating-screen {
      width: 10.5rem;
    }
    .floating-screen-left { left: -6.5rem; }
    .floating-screen-right { right: -6.5rem; }
  }

  /* ══════════════════════ FEATURES SECTION ══════════════════════ */
  .section-padding {
    padding-block: 7.5rem;
  }

  .container {
    max-inline-size: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
  }

  .section-header {
    text-align: center;
    margin-block-end: 5rem;
  }

  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
    font-weight: 900;
    color: var(--text-color);
    margin-block-end: 1rem;
    text-wrap: balance;
  }

  .section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-inline-size: 38rem;
    margin-inline: auto;
  }

  .features-grid {
    display: grid;
    gap: 2.5rem;
  }

  @media (min-width: 48rem) {
    .features-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Cards */
  .feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
  }

  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(124, 77, 255, 0.25);
  }

  /* Middle card highlighting */
  .feature-card-accent {
    background: linear-gradient(135deg, var(--brand-color), hsl(261, 80%, 45%));
    color: hsl(0, 0%, 100%);
    border: none;
  }

  .feature-card-accent .feature-title {
    color: hsl(0, 0%, 100%);
  }

  .feature-card-accent .feature-desc {
    color: rgba(255, 255, 255, 0.8);
  }

  .feature-card-accent:hover {
    box-shadow: 0 30px 60px -15px rgba(124, 77, 255, 0.4);
  }

  .feature-card-dark {
    background-color: hsl(224, 71%, 4%);
    border-color: hsl(224, 30%, 15%);
    color: hsl(0, 0%, 100%);
  }

  .feature-card-dark .feature-title {
    color: hsl(0, 0%, 100%);
  }

  .feature-card-dark .feature-desc {
    color: var(--text-muted);
  }

  .feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
  }

  .feature-card .feature-icon-wrapper {
    background-color: var(--brand-light);
    color: var(--brand-color);
  }

  .feature-card:hover .feature-icon-wrapper {
    background-color: var(--brand-color);
    color: hsl(0, 0%, 100%);
  }

  .feature-card-accent .feature-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: hsl(0, 0%, 100%);
  }

  .feature-card-dark .feature-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--brand-color);
  }

  .feature-card-dark:hover .feature-icon-wrapper {
    background-color: var(--brand-color);
    color: hsl(0, 0%, 100%);
  }

  .feature-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-block-end: 0.75rem;
  }

  .feature-desc {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
  }

  /* ══════════════════════ PREVIEW / HOW IT WORKS ══════════════════════ */
  .preview-section {
    background-color: var(--brand-light);
    overflow: hidden;
  }

  .preview-grid {
    display: grid;
    gap: 5rem;
    align-items: center;
  }

  @media (min-width: 64rem) {
    .preview-grid {
      grid-template-columns: 1fr 1.1fr;
    }
  }

  .steps-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .step-item {
    display: flex;
    gap: 1.5rem;
  }

  .step-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--brand-color);
    color: hsl(0, 0%, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.2);
  }

  .step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-block-end: 0.5rem;
  }

  .step-desc {
    color: var(--text-muted);
    font-size: 0.975rem;
  }

  /* Preview mockup layout grid */
  .preview-mockups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .preview-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-block-start: 3rem;
  }

  .preview-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .preview-frame {
    border: 5px solid hsl(222, 30%, 15%);
    border-radius: 2rem;
    overflow: hidden;
    isolation: isolate;
    background-color: hsl(224, 71%, 4%);
    box-shadow: var(--shadow-heavy);
  }

  .preview-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 20;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 1.6rem;
  }

  .preview-frame-dimmed {
    opacity: 0.8;
    transform: scale(0.96);
  }

  @media (max-width: 36rem) {
    .preview-mockups {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      max-width: 18rem;
      margin-inline: auto;
    }
    
    .preview-col-left {
      padding-block-start: 0;
    }
    
    .preview-frame-dimmed {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* ══════════════════════ CTA SECTION ══════════════════════ */
  .cta-section {
    padding-block: 5rem 7.5rem;
  }

  .cta-box {
    position: relative;
    background: linear-gradient(135deg, hsl(224, 60%, 7%) 0%, hsl(224, 80%, 4%) 100%);
    border-radius: var(--radius-xl);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
  }

  @media (max-width: 48rem) {
    .cta-box {
      padding: 4rem 1.5rem;
    }
  }

  /* Glow accents inside CTA */
  .cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.25) 0%, rgba(124, 77, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
  }

  .cta-box::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
  }

  .cta-content {
    position: relative;
    z-index: 5;
    max-width: 46rem;
    margin-inline: auto;
  }

  .cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    font-weight: 900;
    color: hsl(0, 0%, 100%);
    line-height: 1.1;
    margin-block-end: 1.5rem;
    text-wrap: balance;
  }

  .cta-desc {
    color: hsl(220, 20%, 65%);
    font-size: clamp(1.125rem, 1vw + 0.75rem, 1.25rem);
    margin-block-end: 3rem;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
  }

  @media (min-width: 36rem) {
    .cta-buttons {
      flex-direction: row;
    }
  }

  .btn-store {
    background-color: hsl(0, 0%, 100%);
    color: hsl(224, 71%, 4%);
    font-size: 1rem;
    font-weight: 700;
    gap: 0.75rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  }

  .btn-store:hover {
    background-color: hsl(220, 20%, 95%);
    transform: translateY(-3px);
  }

  .btn-store-outline {
    background-color: rgba(255, 255, 255, 0.08);
    color: hsl(0, 0%, 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    font-weight: 700;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .btn-store-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
  }

  /* ══════════════════════ FOOTER ══════════════════════ */
  .footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding-block: 6rem 3rem;
  }

  .footer-grid {
    display: grid;
    gap: 3.5rem;
    margin-block-end: 5rem;
  }

  @media (min-width: 48rem) {
    .footer-grid {
      grid-template-columns: 2fr repeat(3, 1fr);
    }
  }

  .footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .footer-logo {
    block-size: 2rem;
    inline-size: auto;
    object-fit: contain;
  }

  .footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-inline-size: 20rem;
    line-height: 1.6;
  }

  .social-links {
    display: flex;
    gap: 1rem;
  }

  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--surface-muted);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
  }

  .social-icon:hover {
    background-color: var(--brand-color);
    color: hsl(0, 0%, 100%);
    transform: translateY(-2px);
  }

  .footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-block-end: 1.5rem;
  }

  .footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
  }

  .footer-link:hover {
    color: var(--brand-color);
  }

  .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-block-start: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  @media (min-width: 48rem) {
    .footer-bottom {
      flex-direction: row;
    }
  }

  .footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
  }

  .status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--success-color);
    border-radius: 50%;
    position: relative;
  }

  .status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--success-color);
    opacity: 0.4;
    animation: pulse-slow 2s infinite;
  }

  /* ══════════════════════ STATS SECTION ══════════════════════ */
  .stats-section {
    padding-block: 5rem;
    border-block: 1px solid var(--border-color);
    background-color: var(--surface-color);
    transition: var(--transition-fast);
  }

  .stats-container {
    display: grid;
    gap: 3rem;
    text-align: center;
  }

  @media (min-width: 48rem) {
    .stats-container {
      grid-template-columns: repeat(7, auto);
      justify-content: space-between;
      align-items: center;
    }
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
    font-weight: 900;
    color: var(--brand-color);
    line-height: 1;
  }

  .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .stat-divider {
    display: none;
    width: 1px;
    height: 3rem;
    background-color: var(--border-color);
  }

  @media (min-width: 48rem) {
    .stat-divider {
      display: block;
    }
  }

  /* ══════════════════════ TECH SHOWCASE SECTION ══════════════════════ */
  .tech-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
  }

  @media (min-width: 64rem) {
    .tech-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .tech-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-block-start: 2.5rem;
  }

  .tech-list-item {
    display: flex;
    gap: 1.25rem;
  }

  .tech-list-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--brand-light);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tech-list-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-block-end: 0.25rem;
  }

  .tech-list-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .tech-visual {
    display: flex;
    justify-content: center;
  }

  .tech-card-wrapper {
    background: linear-gradient(135deg, var(--brand-color), hsl(280, 100%, 55%));
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    color: hsl(0, 0%, 100%);
    width: 100%;
    max-width: 26rem;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
  }

  .tech-card-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .tech-card-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .tech-card-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
  }

  .radar-ping-container {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin-block: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .radar-dot {
    width: 1rem;
    height: 1rem;
    background-color: hsl(0, 0%, 100%);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
  }

  .radar-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: radar-ping 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  }

  .radar-wave.delay-1 { animation-delay: 1s; }
  .radar-wave.delay-2 { animation-delay: 2s; }

  @keyframes radar-ping {
    0% { transform: scale(0.1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
  }

  .tech-card-text {
    font-size: 0.95rem;
    opacity: 0.9;
  }

  /* ══════════════════════ TESTIMONIALS SECTION ══════════════════════ */
  .testimonials-grid {
    display: grid;
    gap: 2.5rem;
  }

  @media (min-width: 48rem) {
    .testimonials-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .testimonial-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    transition: var(--transition-medium);
  }

  .testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 77, 255, 0.2);
    box-shadow: var(--shadow-heavy);
  }

  .testimonial-quote {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
  }

  .testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
  }

  .testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  /* ══════════════════════ FAQ SECTION ══════════════════════ */
  .faq-accordion-container {
    max-width: 46rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

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

  .faq-item[open] {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-soft);
  }

  .faq-summary {
    list-style: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }

  .faq-summary::after {
    content: '+';
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--brand-color);
    transition: var(--transition-fast);
  }

  .faq-item[open] .faq-summary::after {
    content: '−';
    transform: rotate(180deg);
  }

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

  .faq-content {
    padding: 0 2rem 1.5rem;
    border-top: 1px solid transparent;
    transition: var(--transition-fast);
  }

  .faq-item[open] .faq-content {
    border-color: var(--border-color);
  }

  .faq-content p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
  }

  /* ══════════════════════ SUPPORT SECTION & FORM ELEMENTS ══════════════════════ */
  .support-form-wrapper {
    max-width: 46rem;
    margin-inline: auto;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
  }

  .support-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .form-grid {
    display: grid;
    gap: 1.75rem;
  }

  @media (min-width: 36rem) {
    .form-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: start;
  }

  .form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
  }

  .form-input, .form-textarea {
    width: 100%;
    background-color: var(--surface-muted);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
  }

  .form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
  }

  .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
  }

  .form-textarea {
    min-height: 10rem;
    resize: vertical;
  }

  /* Accessible form feedback validation */
  .form-input:user-invalid, .form-textarea:user-invalid {
    border-color: hsl(0, 80%, 60%);
    background-color: rgba(239, 68, 68, 0.03);
  }

  :root[data-theme="dark"] .form-input:user-invalid,
  :root[data-theme="dark"] .form-textarea:user-invalid {
    background-color: rgba(239, 68, 68, 0.05);
    border-color: hsl(0, 80%, 50%);
  }

  .btn-submit {
    align-self: flex-start;
    padding-inline: 2.5rem;
  }
}

@layer utilities {
  /* Scroll reveal framework */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Accessibility styling */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-delay: 0s !important;
      animation-duration: 0s !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0s !important;
      scroll-behavior: auto !important;
    }
    .reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .floating-screen {
      animation: none !important;
    }
  }

  /* Utility positioning and containers */
  .max-width-7xl {
    max-inline-size: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
  }
}
