/* ==========================================================================
   webbiz.dev — shared stylesheet
   Theme: dark-locked. Accent: acid lime (single accent, whole site).
   Type:  Clash Display (headlines) + Satoshi (body), self-hostable via Fontshare.
   Radius rule: cards 18px · inputs 12px · buttons/pills full.
   ========================================================================== */

@import url("https://api.fontshare.com/v2/css?f[]=clash-display@600,500,700&f[]=satoshi@400,500,700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --bg:        #0b0b0d;
  --bg-2:      #100f13;
  --surface:   #16151a;
  --surface-2: #1d1c22;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.16);
  --ink:       #f5f3ee;
  --muted:     #a6a5ad;
  --muted-2:   #78767f;
  --accent:    #d4ff3f;
  --accent-2:  #b9e62f;
  --accent-ink:#0b0b0d;

  --r-card: 18px;
  --r-input: 12px;
  --r-pill: 999px;

  --wrap: 1240px;
  --gap: clamp(1rem, 3vw, 2rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.1; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.accent { color: var(--accent); }
.italic { font-style: italic; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.stack > * + * { margin-top: 1.1rem; }
.divider { border: none; border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; }
.brand .dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.98rem; transition: color 0.2s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 1.25rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); padding: 0.4rem; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 40rem at 78% -10%, rgba(212, 255, 63, 0.10), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(212, 255, 63, 0.05), transparent 55%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { margin-bottom: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero__visual { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--r-card); border: 1px solid var(--line);
}
.hero__badge {
  position: absolute; left: -1.2rem; bottom: 1.6rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 1rem 1.25rem; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__badge .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.hero__badge .lbl { font-size: 0.82rem; color: var(--muted); max-width: 12ch; }

/* ---------- Section heading ---------- */
.head { max-width: 42ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.head .h2 { margin-bottom: 0.9rem; }
.head--between { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; flex-wrap: wrap; }

/* ---------- Marquee (max one per page) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 1.4rem; }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: scrollx 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--muted-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: 0.8em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Services grid (bento rhythm) ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.svc {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); padding: clamp(1.6rem, 3vw, 2.4rem); overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc--wide { grid-column: span 3; }
.svc--full { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.svc__index { font-family: var(--font-display); color: var(--muted-2); font-size: 0.95rem; }
.svc__title { margin: 1rem 0 0.6rem; }
.svc__price { color: var(--accent); font-weight: 700; margin-top: auto; padding-top: 1.4rem; font-size: 1.05rem; }
.svc__price small { color: var(--muted-2); font-weight: 500; }
.svc__media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/11; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.3rem 0.8rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--ink); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { border-top: 2px solid var(--accent); padding-top: 1.3rem; }
.step__k { font-family: var(--font-display); color: var(--muted-2); font-size: 0.9rem; }
.step__t { margin: 0.7rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Work grid ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.case {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case:hover { border-color: var(--line-2); transform: translateY(-4px); }
.case__media { aspect-ratio: 16/11; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__body { padding: 1.5rem clamp(1.2rem, 2vw, 1.8rem) 1.7rem; }
.case__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.case__cat { color: var(--muted-2); font-size: 0.85rem; }
.case__t { margin: 0.4rem 0 0.6rem; }
.case p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--r-card); border: 1px solid var(--line); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.checklist { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: 0.75rem; color: var(--ink); align-items: flex-start; }
.checklist .ck { color: var(--accent-ink); background: var(--accent); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.checklist .ck svg { width: 13px; height: 13px; }

/* ---------- Testimonial ---------- */
.quote { max-width: 26ch; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.quote__by { margin-top: 1.6rem; color: var(--muted); }
.quote__by strong { color: var(--ink); display: block; font-weight: 600; }

/* ---------- Pricing rows ---------- */
.plan {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.2rem); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plan__price { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--accent); }
.plan__price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted-2); display: block; font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta {
  border-radius: clamp(20px, 3vw, 30px); background: var(--accent); color: var(--accent-ink);
  padding: clamp(2.5rem, 6vw, 5rem); text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: var(--accent-ink); }
.cta p { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); max-width: 48ch; margin-inline: auto; margin-top: 0.9rem; }
.cta .btn--dark { background: var(--accent-ink); color: var(--accent); margin-top: 2rem; }
.cta .btn--dark:hover { background: #000; transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-input); padding: 0.85rem 1rem; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 255, 63, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form__note { color: var(--muted); font-size: 0.9rem; }
.form__status { font-weight: 600; padding: 0.6rem 0; min-height: 1.5rem; }
.form__status.ok { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.info-item .k { color: var(--muted-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.info-item .v { font-size: 1.15rem; margin-top: 0.3rem; }
.info-item .v:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer__blurb { color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 1rem; font-weight: 600; }
.footer__col a { display: block; color: var(--muted); padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 2rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .hero__img { aspect-ratio: 16/11; }
  .svc--full { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1.2rem clamp(1.1rem, 4vw, 2.5rem) 1.6rem; gap: 0.4rem;
  }
  .nav.open .nav__links a { padding: 0.7rem 0; font-size: 1.1rem; }
  .services, .stats, .steps, .work, .split, .contact-grid, .field--row, .footer__top { grid-template-columns: 1fr; }
  .svc--wide { grid-column: span 6; }
  .services > .svc { grid-column: span 6; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .head--between { align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
