/* ============================================================
   GoSellMate — Shared premium design system (subdomain sites)
   Dark-first, cinematic, tech-premium. Brand: #2D5BFF.
   One file shared verbatim across seo/geo/website/ai.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #050507;
  --bg-subtle: #08080d;
  --bg-card:   #0c0c14;
  --bg-elev:   #111119;

  --blue:      #2D5BFF;
  --blue-hi:   #4B73FF;
  --violet:    #7B61FF;
  --blue-soft: rgba(45,91,255,0.08);

  --ink:       #f0f0f2;
  --ink-2:     #aab0c0;
  --ink-3:     #8b8d98;
  --ink-4:     #5b5d6e;

  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);

  --good:      #34d399;
  --warn:      #fbbf24;
  --danger:    #f87171;

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:target { scroll-margin-top: 90px; } /* keep anchor targets clear of the sticky nav (native scroll) */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(45,91,255,0.35); color: #fff; }

/* ---------- AMBIENT BACKGROUND (fixed, behind everything) ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(45,91,255,0.16), transparent 60%),
    radial-gradient(700px 600px at 88% 8%, rgba(123,97,255,0.10), transparent 60%),
    radial-gradient(600px 600px at 6% 30%, rgba(45,91,255,0.07), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 85%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(45,91,255,0.035), transparent 70%); }

.divider { height: 1px; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); line-height: 1.72; max-width: 640px; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
/* defensive helpers for flex/grid text children (prevents mobile overflow blowout) */
.min0 { min-width: 0; }
.break-any { overflow-wrap: anywhere; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-hi);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue); opacity: 0.7; }

.grad-text {
  background: linear-gradient(108deg, #fff 0%, #c7d3ff 46%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.blue { color: var(--blue-hi); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(6,7,12,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; transition: padding .35s var(--ease); }
.nav.is-stuck .nav-inner { padding: 11px 24px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.04em; color: #fff; }
.wordmark .s { color: var(--blue-hi); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-back { font-size: 0.85rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; transition: color .2s, gap .2s; }
.nav-back:hover { color: var(--ink); gap: 10px; }

/* Brand lockup (mark + wordmark) */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.04em; color: #fff; flex-shrink: 0; }
.brand-mark { width: 25px; height: 20px; flex-shrink: 0; }
.brand .s { color: var(--blue-hi); }
.brand-logo { height: 28px; width: auto; display: block; }

/* Full nav menu */
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a.nav-home { color: var(--ink-3); font-size: 0.84rem; display: inline-flex; align-items: center; gap: 5px; }
.nav-menu a.nav-home svg { width: 12px; height: 12px; }
.nav-menu a.nav-home:hover { color: var(--blue-hi); }
.nav-cta { margin-left: 2px; }

/* Hamburger */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); align-items: center; justify-content: center; flex-direction: column; gap: 5px; z-index: 130; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 44px 36px;
    background: rgba(7,8,13,0.97); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .42s var(--ease);
    z-index: 120; box-shadow: -40px 0 90px -30px rgba(0,0,0,0.8); }
  .nav.open .nav-menu { transform: translateX(0); }
  .nav-menu a:not(.btn) { font-size: 1.12rem; }
  .nav-menu a.nav-home { font-size: 0.95rem; margin-top: 4px; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 10px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .3s var(--ease), background .25s, border-color .25s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -8px rgba(45,91,255,0.6), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: var(--blue-hi); transform: translateY(-2px); box-shadow: 0 14px 44px -10px rgba(45,91,255,0.75), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(123,140,255,0.5); background: rgba(45,91,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- BADGE / PILL ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: var(--r-pill);
  background: rgba(45,91,255,0.10); border: 1px solid rgba(123,140,255,0.22);
  font-size: 0.81rem; font-weight: 500; color: #c7d3ff;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 0 3px rgba(45,91,255,0.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .55; transform: scale(1.25);} }

/* ---------- CARD ---------- */
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: clip;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(123,140,255,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--bg-elev); }
.card:hover::after { opacity: 1; }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(45,91,255,0.22), rgba(123,97,255,0.10));
  border: 1px solid rgba(123,140,255,0.25); margin-bottom: 18px; color: #c7d3ff;
}
.card-icon svg { width: 22px; height: 22px; stroke: #c7d3ff; }
.card h3 { color: #fff; margin-bottom: 9px; }
.card p { font-size: 0.92rem; color: var(--ink-3); line-height: 1.65; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- STAT ---------- */
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.04em; color: #fff; line-height: 1; }
.stat-num .suffix { color: var(--blue-hi); }
.stat-label { font-size: 0.86rem; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }
.stat-src { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-4); margin-top: 6px; }

/* ---------- PRICING ---------- */
.price-card { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; transition: transform .3s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.price-card.feat { background: linear-gradient(165deg, rgba(45,91,255,0.14), rgba(12,12,20,0.6)); border-color: rgba(75,115,255,0.55); box-shadow: 0 0 70px -28px rgba(45,91,255,0.7); }
.price-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill); white-space: nowrap; }
.price-name { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-hi); }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; letter-spacing: -0.04em; color: #fff; margin-top: 14px; }
.price-amt span { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.price-from { display: block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.price-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.price-list li svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--blue-hi); margin-top: 1px; }

/* ---------- TIMELINE (vertical) ---------- */
.tl { position: relative; display: flex; flex-direction: column; gap: 30px; padding-left: 8px; }
.tl::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--blue), rgba(45,91,255,0.12)); }
.tl-step { display: flex; gap: 24px; align-items: flex-start; }
.tl-dot { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-elev); border: 1.5px solid rgba(75,115,255,0.6); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--blue-hi); position: relative; z-index: 1; }
.tl-when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 5px; }
.tl-step h3 { color: #fff; margin-bottom: 6px; }
.tl-step p { font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; }

/* ---------- TABLE ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th { background: rgba(45,91,255,0.10); text-align: left; padding: 15px 20px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-hi); }
tbody td { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tbody td:first-child { color: #fff; font-weight: 600; }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(255,255,255,0.025); }

/* ---------- CALLOUT ---------- */
.callout { background: rgba(45,91,255,0.07); border: 1px solid rgba(123,140,255,0.2); border-left: 3px solid var(--blue); border-radius: var(--r-sm); padding: 18px 22px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.65; }
.callout strong { color: #fff; }
.callout.warn { background: rgba(251,191,36,0.05); border-color: rgba(251,191,36,0.18); border-left-color: var(--warn); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .25s, background .25s; }
details[open] { border-color: rgba(123,140,255,0.32); background: var(--bg-elev); }
summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 0.98rem; color: #fff; display: flex; justify-content: space-between; gap: 16px; align-items: center; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex-shrink: 0; width: 13px; height: 13px; background: var(--blue-hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 22px 20px; font-size: 0.92rem; color: var(--ink-3); line-height: 1.72; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(72px, 11vw, 132px) 0 clamp(60px, 8vw, 96px); overflow: hidden; isolation: isolate; }
/* Banner video background + dark glow overlay (keeps copy/visuals readable) */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-bg-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.88) 0%, rgba(5,5,7,0.64) 44%, rgba(5,5,7,0.42) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.5) 0%, rgba(5,5,7,0.34) 42%, rgba(5,5,7,0.92) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.83rem; color: var(--ink-3); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; stroke: var(--good); }
.hero-visual { position: relative; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-tag { font-size: 0.9rem; color: var(--ink-3); max-width: 320px; margin-top: 14px; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { font-size: 0.86rem; color: var(--ink-3); transition: color .2s; }
.foot-links a:hover { color: var(--blue-hi); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-4); }

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms); }
[data-reveal="scale"] { transform: translateY(20px) scale(0.97); }
[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
/* .in MUST stay last so it always wins over the variants above */
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* shimmer line accent used in hero visuals */
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes drift { 0%,100% { transform: translate(0,0);} 50% { transform: translate(0,-14px);} }
.float { animation: float 6s ease-in-out infinite; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  /* avoid horizontal slide-in causing edge overflow on small screens */
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(26px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-back span { display: none; }
  .foot-grid { flex-direction: column; }
  /* full-width copy on mobile: even, slightly stronger scrim for readability */
  .hero-bg-overlay { background: linear-gradient(180deg, rgba(5,5,7,0.74) 0%, rgba(5,5,7,0.64) 48%, rgba(5,5,7,0.94) 100%); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .btn { padding: 13px 22px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
