/* =========================================================================
   Website Heroes — marketing site
   Dark, technical, refined. Electric violet on near-black.
   Fonts: Bricolage Grotesque (display) · Plus Jakarta Sans (body) · JetBrains Mono (technical)
   ========================================================================= */

:root {
  --bg:        #0b0b10;
  --bg-2:      #0d0d14;
  --surface:   #14141d;
  --surface-2: #191926;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --text:      #ececf2;
  --text-dim:  #a6a6b8;
  --text-mute: #6f6f82;

  --accent:    #7c5cff;
  --accent-2:  #9d86ff;
  --accent-3:  #5b8cff;   /* secondary cool tone for mesh */
  --accent-ink:#0b0b10;
  --glow:      rgba(124,92,255,0.45);

  --ok:        #43d6a0;

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow: 0 24px 70px -24px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,0.4), 0 18px 50px -12px rgba(124,92,255,0.45);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- atmosphere: fixed background layers ---------- */
body::before {
  /* gradient mesh glow */
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 75% -5%, rgba(124,92,255,0.20), transparent 60%),
    radial-gradient(45% 45% at 10% 5%, rgba(91,140,255,0.14), transparent 55%),
    radial-gradient(50% 60% at 50% 110%, rgba(124,92,255,0.10), transparent 60%),
    var(--bg);
}
body::after {
  /* fine grain / noise overlay */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 660px; }

/* dot-grid decorative block */
.dotgrid {
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
p  { color: var(--text-dim); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-dim); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow.center::before { display: none; }
.grad-text {
  background: linear-gradient(110deg, #fff 10%, var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* highlighted headline chunk — violet "marker" box */
.hl {
  display: inline-block;
  background: linear-gradient(115deg, var(--accent), var(--accent-3));
  color: #fff;
  padding: 0.02em 0.28em;
  border-radius: 14px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 40px -10px var(--glow);
  margin: 0 0.06em;
}
.text-dim { color: var(--text-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -6px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px var(--glow); background: var(--accent-2); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11,11,16,0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.04em;
  color: #fff; display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.logo b { color: var(--accent-2); font-weight: 800; }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 4px; box-shadow: 0 0 12px var(--glow); }
.nav__links { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.nav__links a { color: var(--text-dim); font-size: 0.93rem; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover { color: #fff; }
.nav__links a.active { color: #fff; }
.nav__cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav__cta .login { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; padding: 8px 6px; }
.nav__cta .login:hover { color: #fff; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 24px 22px; border-bottom: 1px solid var(--border);
  background: rgba(13,13,20,0.97);
}
.nav__mobile a { padding: 12px 4px; color: var(--text-dim); border-bottom: 1px solid var(--border); font-weight: 500; }
.nav__mobile .btn { margin-top: 14px; }
.nav__mobile.open { display: flex; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 80px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 540px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 18px; font-size: 0.85rem; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--ok); }

/* pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px; border-radius: 100px;
  border: 1px solid var(--border-2); background: rgba(124,92,255,0.07);
  font-size: 0.82rem; color: var(--text-dim); font-weight: 500;
}
.pill .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 100px; }

/* mock browser window (hero visual) */
.window {
  border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  position: relative;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2d2d3a; display: inline-block; }
.window__url { margin-left: 12px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute);
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 5px 12px; flex: 1; }
.window__body { padding: 0; position: relative; }
.window__body img { width: 100%; height: 340px; object-fit: cover; opacity: 0.92; }
.window__chat {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(13,13,20,0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: 12px; padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
}
.window__chat .prompt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); flex: 1; }
.window__chat .prompt b { color: var(--accent-2); font-weight: 500; }
.window__chat .send { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.window__chat .send svg { width: 16px; height: 16px; color: #fff; }
.window__float {
  position: absolute; border: 1px solid var(--border-2); border-radius: 12px;
  background: rgba(20,20,29,0.92); backdrop-filter: blur(8px); padding: 11px 14px;
  font-size: 0.78rem; color: var(--text-dim); box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px;
}
.window__float svg { width: 17px; height: 17px; color: var(--ok); }
.window__float--tr { top: -18px; right: -18px; }
.window__float--bl { bottom: 64px; left: -22px; }

/* ---------- marquee / logos ---------- */
.trust { padding: 40px 0 10px; }
.trust p { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 26px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.chip { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); border: 1px solid var(--border); border-radius: 100px; padding: 9px 16px; background: rgba(255,255,255,0.02); }
.chip b { color: var(--accent-2); }

/* ---------- section heading block ---------- */
.shead { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.shead h2 { margin: 16px 0 16px; }
.shead.left { margin: 0 0 48px; text-align: left; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.25); margin-bottom: 18px;
}
.card .ico svg { width: 23px; height: 23px; color: var(--accent-2); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.95rem; }
.card--accent { border-color: rgba(124,92,255,0.35); background: linear-gradient(180deg, rgba(124,92,255,0.09), var(--bg-2)); }

/* feature with top accent line */
.card--line::before { content:""; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--accent), transparent); opacity:0; transition: opacity .3s; }
.card--line:hover::before { opacity:1; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step__num { counter-increment: step; width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.3); color: var(--accent-2); }
.step__num::before { content: counter(step,decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.96rem; }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); position: relative; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.split__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(11,11,16,0.55)); }
.split .eyebrow { margin-bottom: 16px; }
.split h2 { margin-bottom: 18px; }

/* check list */
.checks { display: grid; gap: 13px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.checks li svg { width: 21px; height: 21px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.checks li b { color:#fff; font-weight:600; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
}
.price--featured { border-color: rgba(124,92,255,0.5); box-shadow: var(--shadow-glow); }
.price__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 100px; white-space: nowrap; }
.price__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.price__desc { font-size: 0.88rem; color: var(--text-mute); margin: 8px 0 22px; min-height: 38px; }
.price__amt { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price__amt .n { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: #fff; letter-spacing: -0.04em; }
.price__amt .per { color: var(--text-mute); font-size: 0.9rem; }
.price__sub { font-size: 0.84rem; color: var(--text-dim); margin-bottom: 26px; }
.price ul { display: grid; gap: 12px; margin-bottom: 28px; }
.price ul li { display: flex; gap: 11px; font-size: 0.92rem; color: var(--text-dim); }
.price ul li svg { width: 19px; height: 19px; color: var(--accent-2); flex-shrink: 0; }
.price .btn { margin-top: auto; }

/* ---------- testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote p { color: var(--text); font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
.quote__who { display: flex; align-items: center; gap: 13px; }
.quote__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.quote__who .name { font-weight: 600; color: #fff; font-size: 0.92rem; }
.quote__who .role { font-size: 0.8rem; color: var(--text-mute); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; color: var(--accent-2); }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.stat .n span { color: var(--accent-2); }
.stat .l { font-size: 0.85rem; color: var(--text-dim); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(124,92,255,0.3); padding: 64px 40px; text-align: center;
  background: radial-gradient(80% 140% at 50% 0%, rgba(124,92,255,0.22), transparent 60%), var(--surface); }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 30px; max-width: 540px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- code block (technical proof) ---------- */
.code {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px; color: var(--text-dim); overflow-x: auto;
}
.code .k { color: var(--accent-2); }
.code .s { color: var(--ok); }
.code .c { color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: #fff; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 0.96rem; }

/* ---------- page hero (interior) ---------- */
.phero { padding: 80px 0 40px; text-align: center; }
.phero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px auto 20px; max-width: 14ch; }
.phero .lead { max-width: 640px; margin: 0 auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 36px; margin-top: 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 50px; }
.footer__brand .logo { margin-bottom: 16px; }
.footer__brand p { font-size: 0.9rem; max-width: 280px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; font-weight: 500; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { color: var(--text-dim); font-size: 0.9rem; transition: color .2s; }
.footer ul a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 26px; font-size: 0.84rem; color: var(--text-mute); flex-wrap: wrap; }
.footer__bottom .made { font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* hero load animation */
.hero .anim { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) forwards; }
.hero .anim[data-d="1"] { animation-delay: .05s; }
.hero .anim[data-d="2"] { animation-delay: .15s; }
.hero .anim[data-d="3"] { animation-delay: .25s; }
.hero .anim[data-d="4"] { animation-delay: .35s; }
.hero .anim[data-d="5"] { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.window__float--tr { animation: floaty 5s ease-in-out infinite; }
.window__float--bl { animation: floaty 6s ease-in-out infinite .5s; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.note { font-size: 0.82rem; color: var(--text-mute); }
.tagcol { display:flex; flex-wrap:wrap; gap:8px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .grid-3, .grid-4, .prices, .stats { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .grid-4, .prices, .stats, .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .cta-band { padding: 48px 22px; }
  .window__float { display: none; }
  .step { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
