/* ========= KUROSAI — LANDING V2 ========= */

:root {
  /* Brand */
  --red-500: #DC2626;
  --red-400: #EF4444;
  --red-600: #B91C1C;
  --red-700: #991B1B;
  --red-900: #450A0A;

  /* Neutrals (cool-ish dark) */
  --bg-0: #08080A;
  --bg-1: #0D0D10;
  --bg-2: #141418;
  --bg-3: #1B1B20;
  --bg-4: #25252D;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --fg: #FAFAFA;
  --fg-2: #D4D4D8;
  --fg-3: #A1A1AA;
  --fg-4: #71717A;

  /* Glow intensity (tweakable) */
  --glow: 0.55;

  /* Density (tweakable) */
  --section-py: 140px;
  --container: 1200px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ======= Background mesh ======= */
.mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(220,38,38,calc(0.25 * var(--glow))), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(239,68,68,calc(0.18 * var(--glow))), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(153,27,27,calc(0.30 * var(--glow))), transparent 60%);
}
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ======= Container ======= */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 32px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ======= Nav ======= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 0;
  transition: backdrop-filter .25s ease, background .25s ease, border .25s ease;
}
.nav.scrolled {
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); padding: 0 32px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 800; letter-spacing: 0.02em;
}
.logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  font-size: 14px; color: var(--fg-3); padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ======= Buttons ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s, border .2s, box-shadow .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 0 1px rgba(220,38,38,0.4),
    0 10px 40px -10px rgba(220,38,38,calc(0.6 * var(--glow)));
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 1px rgba(239,68,68,0.6),
    0 16px 50px -10px rgba(220,38,38,calc(0.9 * var(--glow)));
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ======= Pill / Eyebrow ======= */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: #FCA5A5;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-400);
  box-shadow: 0 0 10px var(--red-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  color: var(--red-400); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ======= Sections ======= */
section { position: relative; padding: var(--section-py) 0; z-index: 1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--fg-3); font-size: 18px; max-width: 560px; margin: 0 auto;
}

/* ======= HERO ======= */
.hero { padding-top: 160px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 20px 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #fff 0%, #FCA5A5 40%, var(--red-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero p.lede {
  font-size: 19px; color: var(--fg-3); max-width: 540px; margin-bottom: 36px; line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding-top: 36px; border-top: 1px solid var(--line);
  max-width: 540px;
}
.stat .num {
  font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #A1A1AA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 12px; color: var(--fg-4); margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ======= Dashboard Mockup ======= */
.dash-wrap { position: relative; perspective: 2000px; }
.dashboard {
  position: relative;
  background: linear-gradient(180deg, rgba(30,30,36,0.9), rgba(15,15,18,0.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 140px rgba(220,38,38,calc(0.25 * var(--glow)));
  backdrop-filter: blur(10px);
  transform: rotateY(-6deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .4s ease;
}
.dash-wrap:hover .dashboard { transform: rotateY(-3deg) rotateX(2deg); }
a.dash-wrap { cursor: pointer; }
a.dash-wrap:hover .dashboard {
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 200px rgba(220,38,38,calc(0.5 * var(--glow)));
}

.dash-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); }
.dash-dots span:first-child { background: #FCA5A5; }
.dash-title { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }

.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.kpi .k-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi .k-val { font-size: 20px; font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .k-delta { font-size: 10px; color: #86EFAC; font-family: var(--font-mono); margin-top: 2px; }
.kpi .k-delta.red { color: var(--red-400); }

/* Mini calendar */
.cal { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head .m { font-size: 13px; font-weight: 500; }
.cal-head .nav-btns { display: flex; gap: 6px; }
.cal-head .nav-btns span {
  width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.04);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--fg-3);
}
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-grid .dow { font-family: var(--font-mono); font-size: 9px; color: var(--fg-4); text-align: center; padding: 4px 0; }
.cal-grid .d {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--fg-3); border-radius: 6px; position: relative;
  transition: background .2s;
}
.cal-grid .d.muted { color: var(--bg-4); }
.cal-grid .d.has::after {
  content:''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--red-400);
}
.cal-grid .d.today { background: var(--red-500); color: #fff; box-shadow: 0 0 15px rgba(220,38,38,0.5); }
.cal-grid .d.hot { background: rgba(220,38,38,0.15); color: #FCA5A5; }

/* Booking stream */
.booking-feed { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--line); border-radius: var(--r-md);
  animation: slide-in .5s ease both;
}
.feed-item .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
}
.feed-item .info { flex: 1; min-width: 0; }
.feed-item .info .name { font-size: 12px; font-weight: 500; }
.feed-item .info .time { font-size: 10px; color: var(--fg-4); font-family: var(--font-mono); }
.feed-item .status {
  font-size: 9px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono);
  background: rgba(134,239,172,0.12); color: #86EFAC;
}
.feed-item .status.pending { background: rgba(252,165,165,0.12); color: #FCA5A5; }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating chat bubble over dashboard */
.floating-card {
  position: absolute;
  background: linear-gradient(180deg, rgba(36,36,44,0.95), rgba(20,20,24,0.95));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6), 0 0 60px rgba(220,38,38,0.2);
  backdrop-filter: blur(10px);
  font-size: 12px;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.floating-card.wa {
  top: -20px; right: -24px;
  display: flex; align-items: center; gap: 10px;
  min-width: 220px;
}
.floating-card.wa .wa-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.floating-card.wa .wa-icon svg { width: 18px; height: 18px; fill: #fff; }
.floating-card.wa .wa-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.floating-card.wa .wa-info span { color: var(--fg-4); font-size: 11px; font-family: var(--font-mono); }

.floating-card.ai {
  bottom: 40px; left: -30px;
  min-width: 200px;
}
.floating-card.ai .ai-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--red-400);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.floating-card.ai .ai-head::before {
  content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-400);
  box-shadow: 0 0 10px var(--red-400);
}
.floating-card.ai p { color: var(--fg-2); font-size: 12px; line-height: 1.4; }

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

/* ======= How it works ======= */
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.how-steps::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border .3s, transform .3s;
}
.step:hover { border-color: rgba(220,38,38,0.3); transform: translateY(-4px); }
.step-num {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: 500;
  color: var(--red-400);
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 30px rgba(220,38,38,0.1);
}
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--fg-3); font-size: 15px; line-height: 1.5; }
.step-meta {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-4);
  display: flex; align-items: center; gap: 8px;
}

/* ======= Features ======= */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .4s ease, border .3s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px circle at var(--mx, -100%) var(--my, -100%), rgba(220,38,38,0.18), transparent 40%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: rgba(255,255,255,0.18); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(153,27,27,0.1));
  border: 1px solid rgba(220,38,38,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red-400);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-card p { color: var(--fg-3); font-size: 14px; line-height: 1.5; }

/* ======= Big Stats ======= */
.big-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  position: relative;
}
.big-stats::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% 100%, rgba(220,38,38,0.1), transparent 60%);
  pointer-events: none;
}
.big-stat {
  padding: 48px 32px; text-align: center;
  border-right: 1px solid var(--line);
  position: relative; z-index: 1;
}
.big-stat:last-child { border-right: none; }
.big-stat .bn {
  font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #A1A1AA 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-stat .bl { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); margin-top: 10px; letter-spacing: 0.04em; }

/* ======= Testimonials ======= */
.testimonials-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.testimonial {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border .3s, transform .3s;
}
.testimonial:hover { border-color: rgba(220,38,38,0.25); transform: translateY(-2px); }
.testimonial blockquote {
  font-size: 17px; line-height: 1.55; color: var(--fg);
  letter-spacing: -0.01em;
  position: relative;
}
.testimonial blockquote::before {
  content: '"'; position: absolute; top: -20px; left: -4px; font-size: 60px; color: var(--red-500);
  font-family: Georgia, serif; opacity: 0.4; line-height: 1;
}
.testimonial-footer {
  display: flex; align-items: center; gap: 14px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.testimonial-footer img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-strong);
}
.testimonial-footer .who strong { display: block; font-size: 14px; font-weight: 500; }
.testimonial-footer .who span { font-size: 12px; color: var(--fg-4); font-family: var(--font-mono); }

/* ======= Clients / Empresas ======= */
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.client-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .4s;
}
.client-card:hover { transform: translateY(-4px); }
.client-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s;
  filter: grayscale(60%) brightness(0.7);
}
.client-card:hover img { transform: scale(1.08); filter: grayscale(0%) brightness(1); }
.client-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.client-card .tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(220,38,38,0.85); color: #fff;
  border-radius: 999px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px; width: fit-content;
}
.client-card h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }

/* ======= Pricing ======= */
.pricing-toggle {
  display: inline-flex; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
  margin: 0 auto 56px; align-items: center;
}
.pricing-toggle-wrap { text-align: center; }
.pricing-toggle button {
  padding: 8px 18px; border-radius: 999px; background: transparent;
  color: var(--fg-3); border: none; cursor: pointer; font-size: 13px;
  transition: all .2s;
  position: relative;
}
.pricing-toggle button.active { background: var(--red-500); color: #fff; box-shadow: 0 4px 16px -4px rgba(220,38,38,0.6); }
.pricing-toggle .save-tag {
  display: inline-block;
  background: rgba(134,239,172,0.15);
  color: #86EFAC;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-family: var(--font-mono);
  margin-left: 4px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.plan {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border .3s, transform .3s;
}
.plan:hover { border-color: rgba(255,255,255,0.2); }
.plan.featured {
  border-color: rgba(220,38,38,0.4);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(220,38,38,0.15), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(220,38,38,0.3), 0 0 80px rgba(220,38,38,0.15);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
  color: #fff; padding: 4px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 8px 24px -8px rgba(220,38,38,0.7);
}
.plan h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.plan .plan-desc { font-size: 13px; color: var(--fg-4); margin-bottom: 28px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price .cur { font-size: 18px; color: var(--fg-3); }
.plan-price .num { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { font-size: 14px; color: var(--fg-4); }
.plan-sublabel { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); margin-bottom: 28px; }

.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex: 1; }
.plan ul li { font-size: 14px; color: var(--fg-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.plan ul li::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

/* ======= FAQ ======= */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border .2s;
}
.faq-item.open { border-color: rgba(220,38,38,0.3); }
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  gap: 20px;
}
.faq-q .plus {
  width: 22px; height: 22px; position: relative; flex-shrink: 0;
  color: var(--red-400);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: currentColor;
  top: 50%; left: 50%; border-radius: 2px;
  transition: transform .2s;
}
.faq-q .plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 24px 20px; color: var(--fg-3); font-size: 15px; line-height: 1.6;
}

/* ======= Final CTA ======= */
.final-cta {
  position: relative;
  background: radial-gradient(800px 400px at 50% 0%, rgba(220,38,38,0.25), transparent 70%), var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content:''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  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;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: 16px;
}
.final-cta p { color: var(--fg-3); font-size: 18px; max-width: 520px; margin: 0 auto 36px; }
.final-cta .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ======= Footer ======= */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 1;
  background: var(--bg-0);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--fg-3); font-size: 14px; line-height: 1.5; margin: 16px 0; }
.footer-brand .addr { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-3); transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-4); flex-wrap: wrap; gap: 16px;
}
.footer-bottom .legal { display: flex; gap: 24px; }

/* ======= Reveal on scroll ======= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ======= Tweaks panel ======= */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: rgba(18,18,22,0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 18px; width: 260px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h5 {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.tweaks-panel h5::before {
  content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-400);
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label { font-size: 12px; color: var(--fg-3); display: block; margin-bottom: 6px; }
.tweak-row input[type="range"] { width: 100%; accent-color: var(--red-500); }
.tweak-row .seg {
  display: flex; background: var(--bg-3); border-radius: 8px; padding: 2px;
}
.tweak-row .seg button {
  flex: 1; padding: 6px; background: transparent; border: none; color: var(--fg-3);
  font-size: 11px; border-radius: 6px; cursor: pointer; transition: all .2s;
}
.tweak-row .seg button.active { background: var(--red-500); color: #fff; }
.tweak-row .swatches { display: flex; gap: 6px; }
.tweak-row .swatches button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer;
}
.tweak-row .swatches button.active { border-color: #fff; }

/* ======= Responsive ======= */
@media (max-width: 900px) {
  :root { --section-py: 80px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-steps, .features-grid, .pricing-grid, .testimonials-row { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .big-stats { grid-template-columns: 1fr; }
  .big-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .big-stat:last-child { border-bottom: none; }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .floating-card { display: none; }
  .plan.featured { transform: none; }
  .dashboard { transform: none; }
}
