:root {
    --hero-bg-start: #070b1a;
    --hero-bg-end: #0f0a2e;
    --glass-bg: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.1);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.35);
  }
  [data-theme="light"] {
    --hero-bg-start: #f8fafc;
    --hero-bg-end: #f1f5f9;
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(0,0,0,0.06);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
  }

  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--primary, #6366f1); border-radius: 3px; }

  html { scroll-behavior: smooth; overflow-x: hidden; }

  body {
    margin: 0; padding: 0;
    background: var(--bg, #f8fafc);
    color: var(--text, #0f172a);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
  }

  /* ---- Nav ---- */
  .landing-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s;
  }
  [data-theme="light"] .landing-nav {
    background: rgba(248,250,252,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .landing-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s ease infinite;
    display: flex; align-items: center; gap: 10px;
  }
  .landing-logo svg { -webkit-text-fill-color: initial; }
  .landing-nav-links { display: flex; gap: 6px; align-items: center; }
  .landing-nav-links a {
    padding: 9px 20px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s;
    position: relative;
  }
  [data-theme="light"] .landing-nav-links a { color: #334155; }
  .landing-nav-links a:hover { color: #f1f5f9; background: rgba(255,255,255,0.08); }
  [data-theme="light"] .landing-nav-links a:hover { color: #0f172a; background: rgba(0,0,0,0.06); }
  .nav-cta {
    padding: 9px 24px !important;
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
    transition: all 0.3s !important;
  }
  .nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 30px rgba(99,102,241,0.45) !important; background: linear-gradient(135deg, #4f46e5, #4338ca) !important; color: #fff !important; }

  .theme-toggle-nav {
    width: 36px; height: 36px;
    border: none; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all 0.25s;
  }
  [data-theme="light"] .theme-toggle-nav { background: rgba(0,0,0,0.04); color: #64748b; }
  .theme-toggle-nav:hover { background: rgba(255,255,255,0.12); color: #f1f5f9; }
  [data-theme="light"] .theme-toggle-nav:hover { background: rgba(0,0,0,0.08); color: #0f172a; }

  /* ---- Google Gemini-Style Background Mesh ---- */
  .google-bg-mesh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    filter: blur(100px);
    -webkit-filter: blur(100px);
  }
  .google-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.22;
    animation: floatBlob 24s infinite alternate ease-in-out;
  }
  [data-theme="light"] .google-bg-blob {
    mix-blend-mode: multiply;
    opacity: 0.12;
  }
  .google-bg-blob-1 {
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 20s;
  }
  .google-bg-blob-2 {
    background: radial-gradient(circle, #ff4a68 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-duration: 25s;
    animation-delay: -5s;
  }
  .google-bg-blob-3 {
    background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
    top: 30%;
    left: 45%;
    width: 500px;
    height: 500px;
    animation-duration: 18s;
    animation-delay: -10s;
  }
  @keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(80px, -60px) scale(1.15) rotate(120deg); }
    66% { transform: translate(-60px, 80px) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
  }

  /* ---- Hero ---- */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 50%, var(--hero-bg-start) 100%);
  }
  .hero-content { position: relative; z-index: 2; max-width: 860px; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
  }
  [data-theme="light"] .hero::before {
    background: rgba(255,255,255,0.15);
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.03em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    color: #c7d2fe;
    animation: fadeUp 0.6s ease forwards;
  }
  [data-theme="light"] .hero-badge { color: #4338ca; background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.2); }
  .hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulseGlow 2s ease infinite;
  }

  .hero h1 {
    font-size: clamp(40px, 7.5vw, 86px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.1s forwards;
    opacity: 0;
  }
  [data-theme="dark"] .hero h1 { color: #f8fafc; }
  [data-theme="light"] .hero h1 { color: #0f172a; }
  .hero h1 .gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #60a5fa 30%, #a78bfa 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    animation: shimmer 4s ease infinite;
  }

  .hero-sub {
    display: inline-block;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text, #0f172a);
    margin-top: 12px;
    position: relative;
  }
  .hero-sub::after {
    content: '';
    position: absolute;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, transparent);
    opacity: 0.5;
  }

  .hero p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s forwards;
    opacity: 0;
  }
  [data-theme="dark"] .hero p { color: #94a3b8; }
  [data-theme="light"] .hero p { color: #1e293b; }

  .hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
    margin-top: 24px;
}
  .btn-hero-primary {
    padding: 17px 42px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
    position: relative;
    overflow: hidden;
  }
  .btn-hero-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.35s;
  }
  .btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(99,102,241,0.5);
    text-decoration: none;
  }
  .btn-hero-primary:hover::before { opacity: 1; }
  .btn-hero-primary:active { transform: translateY(-1px); }

  .btn-hero-outline {
    padding: 17px 38px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
  }
  [data-theme="light"] .btn-hero-outline { border-color: rgba(0,0,0,0.1); color: #334155; }
  .btn-hero-outline:hover { border-color: rgba(255,255,255,0.35); color: #fff; text-decoration: none; transform: translateY(-2px); }
  [data-theme="light"] .btn-hero-outline:hover { border-color: rgba(0,0,0,0.25); color: #0f172a; }

  /* ---- Stats ---- */
  .stats-row {
    display: flex;
    gap: 32px 64px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 64px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s ease 0.45s forwards;
    opacity: 0;
  }
  .stat-item { text-align: center; position: relative; }
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -32px; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
  }
  [data-theme="light"] .stat-item:not(:last-child)::after {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.06), transparent);
  }
  .stat-item .num {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  [data-theme="light"] .stat-item .num { background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .stat-item .lbl {
    font-size: 13px;
    font-weight: 500;
    margin-top: 3px;
  }
  [data-theme="dark"] .stat-item .lbl { color: #64748b; }
  [data-theme="light"] .stat-item .lbl { color: #334155; }

  /* ---- Scroll Reveal ---- */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }
  .reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal-right.visible { opacity: 1; transform: translateX(0); }
  .reveal-scale { opacity: 0; transform: scale(0.92); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal-scale.visible { opacity: 1; transform: scale(1); }

  /* ---- Features ---- */
  .features-section {
    padding: 120px 24px 100px;
    position: relative;
  }
  [data-theme="dark"] .features-section { background: linear-gradient(180deg, #070b1a 0%, #0a0e1a 100%); }
  [data-theme="light"] .features-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }

  .section-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6366f1;
    margin-bottom: 12px;
  }
  .section-title {
    text-align: center;
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  [data-theme="dark"] .section-title { color: #f1f5f9; }
  [data-theme="light"] .section-title { color: #0f172a; }
  .section-desc {
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 64px;
  }
  [data-theme="dark"] .section-desc { color: #94a3b8; }
  [data-theme="light"] .section-desc { color: #334155; }

  .features-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .feature-card {
    border-radius: 20px;
    padding: 36px 32px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    cursor: default;
  }
  .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
  }
  .feature-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
  }
  .feature-card:hover::before { opacity: 1; }
  .feature-card:hover::after { opacity: 1; }
  .feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.25); }
  [data-theme="dark"] .feature-card:hover { border-color: rgba(99,102,241,0.3); }
  [data-theme="light"] .feature-card:hover { border-color: #818cf8; }

  .card-accent-blue::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
  .card-accent-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
  .card-accent-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
  .card-accent-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
  .card-accent-rose::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
  .card-accent-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
  .card-accent-amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }

  .feature-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(5deg);
  }
  .feat-svg {
    width: 22px;
    height: 22px;
  }
  .icon-blue { background: rgba(99,102,241,0.12); color: #818cf8; }
  .icon-purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
  .icon-green { background: rgba(16,185,129,0.12); color: #34d399; }
  .icon-orange { background: rgba(245,158,11,0.12); color: #fbbf24; }
  .icon-rose { background: rgba(244,63,94,0.12); color: #fb7185; }
  .icon-cyan { background: rgba(6,182,212,0.12); color: #22d3ee; }
  .icon-amber { background: rgba(217,119,6,0.12); color: #fbbf24; }

  [data-theme="light"] .icon-blue { background: rgba(99,102,241,0.10); color: #4f46e5; }
  [data-theme="light"] .icon-purple { background: rgba(139,92,246,0.10); color: #7c3aed; }
  [data-theme="light"] .icon-green { background: rgba(16,185,129,0.10); color: #15803d; }
  [data-theme="light"] .icon-orange { background: rgba(245,158,11,0.10); color: #b45309; }
  [data-theme="light"] .icon-rose { background: rgba(244,63,94,0.10); color: #be123c; }
  [data-theme="light"] .icon-cyan { background: rgba(6,182,212,0.10); color: #0891b2; }
  [data-theme="light"] .icon-amber { background: rgba(217,119,6,0.10); color: #b45309; }

  .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }
  [data-theme="dark"] .feature-card h3 { color: #f1f5f9; }
  [data-theme="light"] .feature-card h3 { color: #0f172a; }

  .feature-card p {
    font-size: 14px;
    line-height: 1.75;
  }
  [data-theme="dark"] .feature-card p { color: #94a3b8; }
  [data-theme="light"] .feature-card p { color: #334155; }

  .feature-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(99,102,241,0.15);
    color: #c7d2fe;
  }
  [data-theme="light"] .feature-tag { color: #4f46e5; background: rgba(99,102,241,0.1); }

  /* ---- Showcase / Tech Section ---- */
  .showcase-section {
    padding: 100px 24px;
    position: relative;
  }
  [data-theme="dark"] .showcase-section { background: #0a0e1a; }
  [data-theme="light"] .showcase-section { background: #ffffff; }
  .showcase-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .showcase-content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 18px;
  }
  [data-theme="dark"] .showcase-content h2 { color: #f1f5f9; }
  [data-theme="light"] .showcase-content h2 { color: #0f172a; }
  .showcase-content p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
  }
  [data-theme="dark"] .showcase-content p { color: #94a3b8; }
  [data-theme="light"] .showcase-content p { color: #334155; }
  .showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (max-width: 768px) {
    .showcase-list {
      grid-template-columns: 1fr;
      gap: 12px;
    }
  }
  .showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-theme="light"] .showcase-item {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.04);
  }
  .showcase-item:hover {
    transform: translateX(4px);
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.18);
  }
  [data-theme="light"] .showcase-item:hover {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.1);
  }
  .showcase-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
  }
  [data-theme="light"] .showcase-check {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
  }
  .showcase-text {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .showcase-title {
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
  }
  .showcase-desc {
    color: var(--text-2);
  }

  .showcase-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
  }
  .showcase-visual .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.15);
    animation: spinSlow 20s linear infinite;
  }
  .showcase-visual .ring:nth-child(1) { width: 240px; height: 240px; border-color: rgba(99,102,241,0.1); }
  .showcase-visual .ring:nth-child(2) { width: 180px; height: 180px; animation-direction: reverse; animation-duration: 15s; border-color: rgba(139,92,246,0.15); }
  .showcase-visual .ring:nth-child(3) { width: 120px; height: 120px; animation-duration: 10s; border-color: rgba(99,102,241,0.2); }

  /* ---- CTA ---- */
  .cta-section {
    padding: 100px 24px;
    text-align: center;
  }
  [data-theme="dark"] .cta-section { background: linear-gradient(180deg, #0a0e1a, #070b1a); }
  [data-theme="light"] .cta-section { background: linear-gradient(180deg, #ffffff, #f8fafc); }

  .cta-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 48px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99,102,241,0.12);
    background: rgba(99,102,241,0.04);
  }
  [data-theme="dark"] .cta-card { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.12); }
  [data-theme="light"] .cta-card { background: rgba(99,102,241,0.03); border-color: rgba(99,102,241,0.08); }
  .cta-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.04) 0%, transparent 50%);
    pointer-events: none;
  }
  .cta-card h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    position: relative;
  }
  [data-theme="dark"] .cta-card h2 { color: #f1f5f9; }
  [data-theme="light"] .cta-card h2 { color: #0f172a; }

  .cta-card p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
  [data-theme="dark"] .cta-card p { color: #94a3b8; }
  [data-theme="light"] .cta-card p { color: #334155; }

  .btn-cta {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(99,102,241,0.35);
    position: relative;
    overflow: hidden;
  }
  .btn-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.35s;
  }
  .btn-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(99,102,241,0.5); text-decoration: none; }
  .btn-cta:hover::before { opacity: 1; }

  /* ---- Study Groups Premium Card ---- */
  .study-groups-premium-card {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 24px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(34,197,94,0.03) 0%, rgba(99,102,241,0.03) 100%);
    border: 1px solid rgba(34,197,94,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-theme="light"] .study-groups-premium-card {
    background: linear-gradient(135deg, rgba(34,197,94,0.04) 0%, rgba(99,102,241,0.04) 100%);
    border-color: rgba(34,197,94,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  }
  .study-groups-premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34,197,94,0.4);
    box-shadow: 0 30px 60px rgba(34,197,94,0.15);
  }
  .study-groups-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  @media (max-width: 768px) {
    .study-groups-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .study-groups-premium-card {
      padding: 24px;
    }
  }
  .study-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(34,197,94,0.1);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
    width: fit-content;
  }
  [data-theme="light"] .study-tag-badge {
    color: #15803d;
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.15);
  }
  .study-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }
  .study-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-2);
  }
  [data-theme="light"] .study-pill {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.05);
    color: #475569;
  }

  /* ---- Footer ---- */
  .site-footer {
    background: #0b1121 !important;
    border-top: 2px solid rgba(99,102,241,0.15);
    transition: none !important;
  }
  [data-theme="light"] .site-footer { background: #f1f5f9 !important; border-top-color: rgba(0,0,0,0.06); }
  .site-footer .footer-divider {
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent) !important;
  }

  /* ---- Animations ---- */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pulseGlow { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
  @keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
  @keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* ---- Responsive ---- */
  @media (max-width: 640px) {
    .hero { padding: 100px 16px 50px; min-height: auto; }
    .landing-nav { padding: 12px 16px; }
    .landing-nav-links a { padding: 7px 14px; font-size: 12px; }
    .stats-row { gap: 16px 24px; margin-top: 40px; }
    .stat-item:not(:last-child)::after { display: none; }
    .stat-item .num { font-size: 24px; }
    .features-section { padding: 70px 16px 60px; }
    .features-grid { grid-template-columns: 1fr; max-width: 400px; }
    .showcase-section { padding: 60px 16px; }
    .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
    .showcase-visual { aspect-ratio: 1; order: -1; }
    .showcase-visual .ring:nth-child(1) { width: 180px; height: 180px; }
    .showcase-visual .ring:nth-child(2) { width: 130px; height: 130px; }
    .showcase-visual .ring:nth-child(3) { width: 80px; height: 80px; }
    .cta-section { padding: 60px 16px; }
    .cta-card { padding: 40px 24px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 340px; text-align: center; }
  }

  @media (min-width: 641px) and (max-width: 900px) {
    .hero { min-height: auto; padding: 130px 24px 60px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
    .showcase-visual { aspect-ratio: 16/9; order: -1; }
  }

  @media (min-width: 901px) and (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* RTL overrides for landing page */
  html.rtl .landing-nav { left: auto; right: 0; }
  html.rtl .landing-logo { flex-direction: row-reverse; }
  html.rtl .landing-nav-links { flex-direction: row-reverse; }
  html.rtl .stat-item:not(:last-child)::after { right: auto; left: -32px; }
  html.rtl .showcase-grid { direction: rtl; }
  html.rtl .showcase-content { text-align: right; }
  html.rtl .showcase-content .section-label { text-align: right !important; }
  html.rtl .cta-card { text-align: center; }
  html.rtl .study-groups-grid { direction: rtl; }

/* ============================================================
   Mock Pack Progress Widget (replaces inline styles)
   ============================================================ */
.mock-card {
    background: var(--mock-card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--mock-card-border, rgba(255,255,255,0.06));
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}
[data-theme="light"] .mock-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.05);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.mock-card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.10) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: 1;
    pointer-events: none;
}
.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
[data-theme="light"] .mock-card-header {
    border-bottom-color: rgba(0,0,0,0.06);
}
.mock-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3, #64748b);
    letter-spacing: 0.05em;
}
.mock-card-status {
    font-size: 10px;
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.mock-row + .mock-row { margin-bottom: 18px; }
.mock-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.mock-avatar-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.mock-avatar-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.mock-avatar-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.mock-row-body {
    flex: 1;
    min-width: 0;
}
.mock-row-name {
    font-size: 13px;
    font-weight: 700;
}
.mock-row-pack {
    font-size: 11px;
    color: var(--text-3, #64748b);
}
.mock-row-score {
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.mock-row-score-good { color: #4ade80; }
.mock-row-score-mid  { color: #818cf8; }
.mock-cta-block {
    display: block;
    text-align: center;
    padding: 11px 20px;
    font-size: 13px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mock-cta-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    color: #fff;
    text-decoration: none;
}
.mock-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   No-JS fallback banner
   ============================================================ */
.noscript-banner {
    background: #f59e0b;
    color: #1f2937;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ============================================================
   Pill emoji spacing (fixes i18n breakage for Arabic)
   ============================================================ */
.study-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.study-pill .pill-emoji {
    font-size: 13px;
    line-height: 1;
}
