/* ============================================================
   L FanfilCA — Studio Website
   Inspired by Lynk & Co's bold, animated, automotive style.
   Author: L FanfilCA Studio
   ============================================================ */

:root {
  --color-bg: #0B1020;
  --color-bg-alt: #0F1530;
  --color-surface: #131A3A;
  --color-surface-2: #1B2350;
  --color-text: #F8FAFC;
  --color-text-dim: #C7D2FE;
  --color-text-muted: #94A3B8;

  --color-primary: #FF6B9D;
  --color-secondary: #7C3AED;
  --color-accent: #60A5FA;
  --color-amber: #FBBF24;
  --color-mint: #34D399;
  --color-coral: #FB7185;
  --color-violet: #A78BFA;

  --grad-brand: linear-gradient(135deg, #FF6B9D 0%, #C084FC 50%, #60A5FA 100%);
  --grad-warm: linear-gradient(135deg, #FBBF24 0%, #FB7185 100%);
  --grad-cool: linear-gradient(135deg, #60A5FA 0%, #7C3AED 100%);
  --grad-mint: linear-gradient(135deg, #34D399 0%, #60A5FA 100%);

  --shadow-soft: 0 10px 40px -10px rgba(124, 58, 237, 0.4);
  --shadow-glow: 0 0 60px rgba(255, 107, 157, 0.45);
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 60px);

  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-primary); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--color-primary); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 1000; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  position: relative;
}
.nav-links a.active,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); }

.nav-cta {
  background: var(--grad-brand);
  padding: 10px 22px; border-radius: 999px; color: #0B1020 !important; font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 16, 32, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px var(--pad-x) 16px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; }
  .nav-cta { margin-top: 8px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; padding: 80px 0 120px;
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 20%, rgba(124, 58, 237, 0.35), transparent 60%),
              radial-gradient(900px 500px at 10% 80%, rgba(255, 107, 157, 0.28), transparent 60%),
              var(--color-bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-mint); box-shadow: 0 0 12px var(--color-mint); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.hero h1 .grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero p.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--color-text-dim); max-width: 560px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--grad-brand); color: #0B1020; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 80px rgba(255, 107, 157, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero stage / visual */
.hero-stage {
  position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto;
}
.stage-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--grad-brand);
  filter: blur(60px); opacity: 0.5; animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } }

.stage-phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1B2350, #0B1020);
  border-radius: 36px; border: 6px solid #1B2350; box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stage-phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 14px; background: #0B1020; border-radius: 12px; z-index: 3;
}
.phone-screen { position: absolute; inset: 28px 6px 6px; border-radius: 24px; background: linear-gradient(180deg, #FF6B9D, #7C3AED 60%, #60A5FA); }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.phone-grid div { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); }
.phone-grid div:nth-child(1) { background: rgba(255, 255, 255, 0.32); }
.phone-grid div:nth-child(2) { background: rgba(255, 255, 255, 0.22); }
.phone-grid div:nth-child(3) { background: rgba(255, 255, 255, 0.28); }
.phone-grid div:nth-child(4) { background: rgba(255, 255, 255, 0.18); }
.phone-grid div:nth-child(5) { background: rgba(255, 255, 255, 0.32); }
.phone-grid div:nth-child(6) { background: rgba(255, 255, 255, 0.22); }

.floating-animal {
  position: absolute; width: 96px; height: 96px;
  animation: float-soft 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}
.floating-animal.a1 { top: 6%; left: 4%; animation-delay: 0s; }
.floating-animal.a2 { top: 14%; right: 0%; animation-delay: 0.6s; }
.floating-animal.a3 { bottom: 6%; left: 8%; animation-delay: 1.2s; }
.floating-animal.a4 { bottom: 18%; right: 4%; animation-delay: 1.8s; }
@keyframes float-soft { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px;
  padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.hero-stats .stat .num { font-size: 1.8rem; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat .lbl { color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-eyebrow { margin-inline: auto; }
  .hero p.lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { margin: 0 auto; max-width: 360px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Marquee / Strip ---------- */
.marquee {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden; padding: 22px 0;
  position: relative;
}
.marquee-track {
  display: flex; gap: 60px; width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee-track span {
  font-size: 1.4rem; font-weight: 800; color: var(--color-text-dim);
  display: inline-flex; align-items: center; gap: 16px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--color-primary); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(124, 58, 237, 0.18); color: var(--color-violet); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--color-text-dim); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  position: relative; padding: 40px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden; transition: transform .35s ease, border-color .35s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px;
  background: var(--grad-brand); opacity: 0; transition: opacity .35s ease;
  z-index: -1; border-radius: var(--radius-lg);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.18); }
.service-card .icon-wrap { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 24px; box-shadow: var(--shadow-soft); }
.service-card .icon-wrap img { width: 38px; height: 38px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--color-text-dim); margin-bottom: 20px; }
.service-card .pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .pill { padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: var(--color-text-dim); }
.service-card .corner-deco { position: absolute; right: -30px; top: -30px; width: 140px; opacity: 0.18; }

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

/* ---------- Showcase (Lynk-style big feature rows) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.showcase.flip { direction: rtl; }
.showcase.flip > * { direction: ltr; }
.showcase .showcase-text .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(96, 165, 250, 0.18); color: var(--color-accent); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.showcase .showcase-text h2 { margin-bottom: 18px; }
.showcase .showcase-text p { color: var(--color-text-dim); font-size: 1.05rem; margin-bottom: 24px; }
.showcase .showcase-text ul li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: flex; gap: 12px; align-items: center; color: var(--color-text-dim); }
.showcase .showcase-text ul li::before { content: "✓"; color: var(--color-mint); font-weight: 800; }
.showcase-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-cool); box-shadow: var(--shadow-card); }
.showcase-visual img { width: 100%; height: 100%; object-fit: cover; }
.showcase-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 16, 32, 0.5)); }
.showcase-badge { position: absolute; bottom: 24px; left: 24px; padding: 12px 18px; border-radius: 999px; background: rgba(11, 16, 32, 0.7); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.showcase-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-mint); box-shadow: 0 0 10px var(--color-mint); }

@media (max-width: 900px) { .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 40px; direction: ltr; } }

/* ---------- Animals band ---------- */
.animal-band {
  background: linear-gradient(180deg, var(--color-bg), var(--color-bg-alt));
  padding: 80px 0; position: relative; overflow: hidden;
}
.animal-band::before, .animal-band::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; filter: blur(80px);
}
.animal-band::before { top: -100px; left: -100px; background: var(--color-primary); opacity: 0.25; }
.animal-band::after { bottom: -100px; right: -100px; background: var(--color-accent); opacity: 0.25; }
.animal-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-top: 40px; }
.animal-card { aspect-ratio: 1; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: grid; place-items: center; padding: 12px; transition: transform .3s ease, background .3s ease; }
.animal-card img { width: 80%; transition: transform .4s ease; }
.animal-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-6px) rotate(-2deg); }
.animal-card:hover img { transform: scale(1.1) rotate(4deg); }
.animal-card .lbl { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }

@media (max-width: 900px) { .animal-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .animal-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 50px; border-radius: var(--radius-lg); background: var(--grad-brand); color: #0B1020; }
.stats-strip .stat .num { font-size: 2.4rem; font-weight: 800; }
.stats-strip .stat .lbl { font-weight: 600; opacity: 0.8; }
@media (max-width: 900px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing / Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  padding: 36px 30px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, border-color .3s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.plan.featured { background: linear-gradient(180deg, rgba(255, 107, 157, 0.15), rgba(124, 58, 237, 0.15)); border-color: rgba(255, 107, 157, 0.4); position: relative; }
.plan.featured::before { content: "Most Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: var(--grad-brand); color: #0B1020; font-size: 0.75rem; font-weight: 800; border-radius: 999px; }
.plan .price { font-size: 2.4rem; font-weight: 800; }
.plan .price small { font-size: 0.9rem; color: var(--color-text-muted); font-weight: 500; }
.plan ul li { padding: 8px 0; color: var(--color-text-dim); display: flex; gap: 10px; }
.plan ul li::before { content: "✓"; color: var(--color-mint); font-weight: 800; }
.plan .plan-cta { margin-top: auto; }

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

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { padding: 20px 24px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 12px; transition: background .2s ease; }
.faq details[open] { background: rgba(255, 255, 255, 0.07); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--color-text-dim); }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 32px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--color-text-dim); max-width: 320px; margin-top: 16px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); margin-bottom: 18px; font-weight: 700; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--color-text-dim); font-size: 0.95rem; }
.footer ul a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted); font-size: 0.85rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-animal-row { display: flex; gap: 8px; margin-top: 20px; }
.footer-animal-row img { width: 36px; height: 36px; transition: transform .3s ease; }
.footer-animal-row img:hover { transform: translateY(-4px) rotate(-6deg); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  position: relative; padding: 140px 0 80px; text-align: center; overflow: hidden;
  background: radial-gradient(1000px 500px at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%), var(--color-bg);
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-header h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-header p { color: var(--color-text-dim); max-width: 720px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { padding: 40px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.contact-card h3 { margin-bottom: 18px; }
.contact-list .item { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.contact-list .item:last-child { border-bottom: 0; }
.contact-list .item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .item .ic img { width: 24px; height: 24px; }
.contact-list .item .meta .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.contact-list .item .meta .val { font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--color-text-dim); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(11, 16, 32, 0.6); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-family: inherit; font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--color-primary); background: rgba(11, 16, 32, 0.9);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 0.9rem; padding: 10px 14px; border-radius: 10px; display: none; }
.form-status.show { display: inline-block; }
.form-status.success { background: rgba(52, 211, 153, 0.15); color: var(--color-mint); }
.form-status.error { background: rgba(251, 113, 133, 0.15); color: var(--color-coral); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-form .row { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 120px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; }
.legal-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-right: 12px; }
.legal-toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); margin-bottom: 12px; }
.legal-toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--color-text-dim); font-size: 0.9rem; border-left: 2px solid transparent; }
.legal-toc a:hover, .legal-toc a.active { color: var(--color-text); background: rgba(255, 255, 255, 0.04); border-left-color: var(--color-primary); }
.legal-content { max-width: 820px; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.legal-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 10px; color: var(--color-violet); }
.legal-content p, .legal-content li { color: var(--color-text-dim); }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--color-text); }
.legal-content .updated { color: var(--color-text-muted); font-size: 0.9rem; }
.legal-content .callout { padding: 16px 20px; border-radius: 12px; background: rgba(124, 58, 237, 0.12); border-left: 4px solid var(--color-violet); margin: 20px 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.legal-content table th, .legal-content table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.legal-content table th { color: var(--color-text); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; max-height: none; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Selection ---------- */
::selection { background: var(--color-primary); color: #0B1020; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
