/* Sellmetra — DARK marketing site. Deep ink base + indigo + lime accents */

:root {
  /* Surfaces — dark first */
  --bg: #0A0B12;
  --bg-2: #0E1019;
  --bg-3: #13151F;
  --surface: #16182380;     /* card */
  --surface-solid: #161823;
  --surface-elev: #1B1E2A;
  --surface-hover: #1F2230;

  /* Inks (on dark) */
  --text: #ECEDF2;
  --text-2: #C8CAD4;
  --text-3: #9498A8;
  --muted: #6B6F80;
  --muted-2: #4F5364;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.22);

  /* Brand */
  --brand: #6B7CFF;           /* electric indigo, tuned for dark */
  --brand-hover: #8593FF;
  --brand-deep: #4756E0;
  --brand-soft: rgba(107,124,255,0.14);
  --brand-soft-strong: rgba(107,124,255,0.22);
  --brand-glow: rgba(107,124,255,0.50);

  --accent: #D7F23B;          /* lime / chartreuse */
  --accent-2: #B8D424;
  --accent-soft: rgba(215,242,59,0.14);
  --accent-glow: rgba(215,242,59,0.40);

  /* Semantic */
  --success: #34D399;
  --success-soft: rgba(52,211,153,0.14);
  --danger: #F87171;
  --danger-soft: rgba(248,113,113,0.14);
  --warn: #FBBF24;

  /* Light surface (for embedded product mockups) */
  --light-bg: #F4F3EE;
  --light-surface: #FFFFFF;
  --light-ink: #0B0F1A;
  --light-muted: #6B6F80;
  --light-border: #E5E3DA;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.30);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 30px 80px rgba(107,124,255,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Onest', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(107,124,255,0.18), transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(215,242,59,0.04), transparent 50%);
  background-attachment: fixed;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Wide-screen container scaling */
@media (min-width: 1440px) {
  .container { max-width: 1360px; }
}
@media (min-width: 1800px) {
  .container { max-width: 1600px; padding: 0 40px; }
  .section { padding: 100px 0; }
  .section-sm { padding: 64px 0; }
  .h1 { font-size: 68px; }
  .h2 { font-size: 46px; }
}
@media (min-width: 2400px) {
  .container { max-width: 1920px; padding: 0 60px; }
  .section { padding: 120px 0; }
  .section-sm { padding: 80px 0; }
  .h1 { font-size: 80px; }
  .h2 { font-size: 56px; }
  .lead { font-size: 22px; }
  .card { padding: 40px; }
}

/* ───────── Brand mark ───────── */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 22px;
  text-decoration: none;
}
.brand-mark .glyph {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, #2A38C9 0%, #6B7CFF 100%);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 4px 14px rgba(107,124,255,0.40);
}
.brand-mark .glyph svg { width: 19px; height: 19px; }

/* ───────── Header ───────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,11,18,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}
.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-hover); color: var(--text); }
.nav a.active { color: var(--text); background: var(--brand-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px var(--brand-glow);
}
.btn-brand:hover { background: var(--brand-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-link {
  background: transparent;
  color: var(--text-2);
  padding: 10px 14px;
  border: 0;
}
.btn-link:hover { color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }

/* ───────── Sections ───────── */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-soft { background: var(--bg-2); }
.section-warm { background: var(--bg-3); }
.section-light { background: var(--light-bg); color: var(--light-ink); }
.section-light .lead { color: var(--light-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 12px var(--accent);
}

.h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
.h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.h4 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-3);
  margin: 0;
  max-width: 740px;
  text-wrap: pretty;
}
.section-light .h1, .section-light .h2, .section-light .h3, .section-light .h4 { color: var(--light-ink); }
.section-light .eyebrow { color: var(--brand-deep); }
.section-light .eyebrow::before { background: var(--brand); box-shadow: 0 0 10px var(--brand); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 72px;
  align-items: center;
  text-align: center;
}
.section-head .lead { text-align: center; }
.section-head.left { align-items: flex-start; text-align: left; }
.section-head.left .lead { text-align: left; }

.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.10em;
  height: 0.32em;
  background: var(--accent);
  z-index: -1;
  opacity: 0.55;
  border-radius: 2px;
}

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

/* Decorative grid background */
.grid-bg {
  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: 64px 64px;
  background-position: -1px -1px;
}
.grid-bg-fade::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 90%);
  pointer-events: none;
}

/* ───────── Cards ───────── */
.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .15s ease, transform .2s ease, background .15s ease;
  position: relative;
}
.card:hover { border-color: var(--border-2); background: var(--surface-elev); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-deep), var(--brand));
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(107,124,255,0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.accent {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}
.card-link:hover { gap: 10px; color: var(--accent-2); }
.section-light .card {
  background: var(--light-surface);
  border-color: var(--light-border);
  color: var(--light-ink);
}
.section-light .card:hover { border-color: #C5C2B5; }
.section-light .card-link { color: var(--brand-deep); }

/* ───────── Mockups ───────── */
.mockup {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.50);
  font-size: 13px;
  position: relative;
  color: var(--light-ink);
}
.mockup-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #f3f1ea;
  border-bottom: 1px solid var(--light-border);
}
.mockup-chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-chrome .dot:nth-child(1) { background: #f6817b; }
.mockup-chrome .dot:nth-child(2) { background: #f7c64e; }
.mockup-chrome .dot:nth-child(3) { background: #5fcf7d; }
.mockup-chrome .url {
  margin-left: 8px;
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--light-muted);
  border: 1px solid var(--light-border);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mockup-body { display: grid; grid-template-columns: 210px 1fr; min-height: 480px; }
.mockup-side {
  background: #fff;
  border-right: 1px solid var(--light-border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}
.mockup-side .brand-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  margin: 4px 8px 22px;
  letter-spacing: -0.02em;
}
.mockup-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mockup-side li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #2c3550;
  font-weight: 500;
  font-size: 13px;
}
.mockup-side li.on { background: rgba(107,124,255,0.10); color: var(--brand-deep); }
/* Mockup icons — small by default unless overridden */
.mockup-main svg { width: 14px; height: 14px; flex-shrink: 0; }
.mockup-side svg { width: 16px; height: 16px; flex-shrink: 0; }
.mockup-side li svg { opacity: 0.65; }
.mockup-main { padding: 22px 26px; background: var(--light-bg); overflow: hidden; }

/* ───────── Footer ───────── */
.footer {
  background: var(--bg-2);
  color: var(--text-3);
  padding: 88px 0 36px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-3); transition: color .15s; }
.footer a:hover { color: var(--text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-mark { margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────── Cookie banner ───────── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface-elev);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.cookie-banner p { margin: 0; color: var(--text-2); flex: 1; line-height: 1.5; }
.cookie-banner strong { color: var(--text); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ───────── Misc ───────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-elev);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge-accent { background: var(--accent); color: var(--bg); border-color: transparent; }
.section-light .badge { background: rgba(0,0,0,0.05); color: var(--light-ink); border-color: rgba(0,0,0,0.08); }
.section-light .badge-success { background: rgba(14,159,110,0.12); color: #0E9F6E; }
.section-light .badge-brand { background: rgba(46,61,219,0.10); color: var(--brand-deep); }

.divider { height: 1px; background: var(--border); margin: 0; border: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-2);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0B12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  margin-top: 1px;
}
.section-light .check-list li { color: var(--light-ink); }

/* mono */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Page transitions */
.page-fade { animation: pageIn .25s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glow accents */
.glow-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-blob.indigo { background: radial-gradient(circle, rgba(107,124,255,0.40), transparent 70%); }
.glow-blob.lime { background: radial-gradient(circle, rgba(215,242,59,0.20), transparent 70%); }

/* Responsive */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-cta .btn-link { font-size: 13px; padding: 8px 10px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand-mark { font-size: 19px !important; }
  .brand-mark .glyph { width: 28px; height: 28px; }
  .container { padding: 0 18px; }

  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-head { margin-bottom: 40px; gap: 14px; }

  .h1 { font-size: 38px !important; letter-spacing: -0.025em; }
  .h2 { font-size: 30px !important; letter-spacing: -0.02em; }
  .h3 { font-size: 20px !important; }
  .lead { font-size: 16px !important; }
  .card { padding: 22px !important; }

  /* Collapse 2/3/4-col grids on mobile */
  [style*="repeat(2, 1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(5, 1fr)"],
  [style*="1fr 1fr"]:not([style*="repeat"]) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Pricing grid: 2 columns on tablet, but on phones go single */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* Pricing compare → horizontal scroll */
  .pricing-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-compare > div { min-width: 720px; }

  /* Legal sidebar TOC → not sticky on mobile, stacked */
  .legal-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .legal-grid > aside {
    position: static !important;
    max-height: none !important;
    padding: 18px;
    background: var(--surface-elev);
    border-radius: 12px;
  }

  /* Hero floating card overflows on mobile — hide */
  .hero-floating-card { display: none !important; }

  /* Mockups — single column, smaller paddings */
  .mockup-body { grid-template-columns: 1fr; min-height: auto; }
  .mockup-side { display: none; }
  .mockup-main { padding: 16px 14px !important; }

  /* Footer */
  .footer { padding: 60px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }

  /* Cookie banner */
  .cookie-banner {
    bottom: 14px; left: 14px; right: 14px;
    flex-direction: column; align-items: stretch;
    padding: 18px; gap: 14px;
  }
  .cookie-actions { display: flex; }
  .cookie-actions .btn { flex: 1; }

  /* HowItWorks step cards: stack number above content */
  .how-step { grid-template-columns: 1fr !important; gap: 14px !important; padding: 28px !important; }
  .how-step > div:first-child { font-size: 42px !important; }
}

@media (max-width: 520px) {
  .h1 { font-size: 32px !important; }
  .h2 { font-size: 24px !important; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: 13px; }
  .nav-cta .btn-primary svg { display: none; }
  .btn-lg { padding: 12px 18px; font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  /* MiniGrowth card scales down */
  .footer-grid { grid-template-columns: 1fr; }
}
