/* ============================================================================
   VERZIFY — styles.css
   Mobile-first. Designed at 375px, enhanced at 768px and 1100px+.
   Type: Bricolage Grotesque (display) / Manrope (body).
   Purple #7B6FE6 is reserved for CTAs, key numbers, and two subtle glows.
   Contrast notes (AA on #0A0A0C): body text 15.9:1, muted text 8.4:1,
   accent-bright small text 7.4:1, dark-on-purple buttons 5.0:1.
   ========================================================================== */

:root {
  --bg: #0A0A0C;
  --surface: #121217;
  --surface-2: #17171F;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #F4F3F9;
  --muted: #A8A6B8;
  --accent: #7B6FE6;
  --accent-soft: #8D82EE;
  --accent-bright: #9D93F2;
  --ink-on-accent: #0A0A0C;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1100px;
  --radius: 18px;
  --radius-btn: 12px;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety net: decorative glows/mockups never cause sideways scroll */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; }
::selection { background: var(--accent); color: var(--ink-on-accent); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Layout primitives ---------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(4.25rem, 10vw, 8rem); }

/* ---- Type ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 6vw + 0.9rem, 4.25rem);
  line-height: 1.04;
  max-width: 16ch;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw + 0.6rem, 2.9rem);
  line-height: 1.08;
  max-width: 22ch;
  margin-bottom: 1rem;
}
h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.55rem; }

.accent { color: var(--accent-bright); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.1rem;
}
.lede {
  font-size: clamp(1.05rem, 1.2vw + 0.85rem, 1.3rem);
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1.4rem;
}
.section-lede {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* ---- Buttons & links -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius-btn);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: 0 10px 32px -12px rgba(123, 111, 230, 0.65);
}
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; }
.btn-sm { min-height: 48px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-decoration: none;
  min-height: 44px; /* comfortable tap target */
}
.text-link .icon { width: 17px; height: 17px; transition: transform 0.15s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- Header ------------------------------------------------------------ */
.site-header { padding-block: 0.9rem; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.site-nav { display: none; }

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .site-nav { display: flex; gap: 1.9rem; }
  .site-nav a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 0.6rem 0;
    transition: color 0.15s ease;
  }
  .site-nav a:hover { color: var(--text); }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 9vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 78% -10%, rgba(123, 111, 230, 0.20), transparent 70%),
    radial-gradient(420px 320px at -10% 50%, rgba(123, 111, 230, 0.07), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) {
  .cta-row .btn { flex: 0 0 auto; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}
.stat { background: var(--surface); padding: 1.2rem 1.3rem; }
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
}
.stat dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Work / mockups ------------------------------------------------------ */
.work-mockups {
  position: relative;
  margin-top: 2.75rem;
}
.browser-mock {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.85);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1B1B23;
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2F2F3A; }
.url-pill {
  flex: 1;
  max-width: 250px;
  margin-inline: auto;
  background: #26262F;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
}
.phone-mock {
  width: min(220px, 55vw);
  background: #15151B;
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.9);
  margin: -3.25rem 1.25rem 0 auto;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 13px;
  background: #15151B;
  border-radius: 999px;
  z-index: 1;
}
.phone-screen { border-radius: 26px; overflow: hidden; }
@media (min-width: 900px) {
  .browser-mock { width: 86%; }
  .phone-mock {
    position: absolute;
    right: 0; bottom: -3rem;
    margin: 0;
    width: 230px;
  }
  .work-mockups { margin-bottom: 3rem; }
}
.case-study { margin-top: 2.5rem; max-width: 62ch; }
.case-study p { color: var(--muted); margin-bottom: 0.9rem; }

/* ---- Offer ---------------------------------------------------------------- */
.offer-steps {
  display: grid;
  gap: 1rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.step-card p:last-child { color: var(--muted); font-size: 0.975rem; }
@media (min-width: 900px) {
  .offer-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.offer-note {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(123, 111, 230, 0.13), rgba(123, 111, 230, 0.04));
  border: 1px solid rgba(123, 111, 230, 0.3);
}
.offer-note p { color: var(--muted); max-width: 52ch; }
.offer-note strong { color: var(--text); }
@media (min-width: 768px) {
  .offer-note {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.9rem 2.1rem;
  }
  .offer-note .btn { flex: none; }
}

/* ---- Services -------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(123, 111, 230, 0.45); transform: translateY(-2px); }
.card-icon { color: var(--accent-bright); width: 28px; height: 28px; margin-bottom: 1.1rem; }
.card > p { color: var(--muted); font-size: 0.975rem; }
.feature-list {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  display: grid;
  gap: 0.45rem;
}
.feature-list li {
  font-size: 0.9375rem;
  font-weight: 600;
  padding-left: 1.15rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.55rem; height: 2px;
  background: var(--accent);
}
.card .text-link { margin-top: auto; font-size: 0.9375rem; }
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---- Process ------------------------------------------------------------------ */
.process-grid {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
.process-step { border-top: 1px solid var(--border); padding-top: 1.3rem; }
.proc-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45; /* decorative ghost numeral, duplicated by the heading order */
  margin-bottom: 0.7rem;
}
.process-step p:last-child { color: var(--muted); font-size: 0.975rem; }
@media (min-width: 900px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ---- Why + FAQ ------------------------------------------------------------------- */
.why-grid {
  display: grid;
  gap: 1.9rem;
  margin-top: 0.5rem;
}
.why-item h3 { font-size: 1.1rem; }
.why-item p { color: var(--muted); font-size: 0.975rem; }
.why-item .card-icon { margin-bottom: 0.85rem; }
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2.5rem; }
}

.faq { margin-top: clamp(3.5rem, 7vw, 5rem); max-width: 760px; }
.faq-title { font-size: 1.45rem; margin-bottom: 0.75rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.03rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-x {
  flex: none;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-bright);
  transition: transform 0.2s ease;
}
.faq details[open] .faq-x { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 60ch; }

/* ---- Final CTA + form ----------------------------------------------------------- */
.final-cta { position: relative; }
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 380px at 50% 20%, rgba(123, 111, 230, 0.14), transparent 70%);
  pointer-events: none;
}
.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: clamp(1.6rem, 5vw, 3rem);
  max-width: 720px;
  margin-inline: auto;
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.field .optional { color: var(--muted); font-weight: 500; }
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 111, 230, 0.25);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A8A6B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field select:invalid { color: var(--muted); }
.field option { color: #1A1A21; background: #fff; }

#demo-form .btn-block { margin-top: 1.4rem; }
.form-error {
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #FFB3B3;
  font-size: 0.9375rem;
}
.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-alt {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-alt a { color: var(--accent-bright); font-weight: 700; text-decoration: none; }
.form-alt a:hover { text-decoration: underline; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.75rem 5.5rem; /* extra bottom room so the sticky bar never covers content */
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-brand .tagline {
  margin-top: 0.9rem;
  font: 700 0.8rem/1.4 var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.copyright { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) {
  .site-footer { padding-block: 2.75rem; }
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ---- Sticky mobile CTA bar ----------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1.1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-strong);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta p {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.sticky-cta .btn { flex: 1; min-height: 48px; white-space: nowrap; }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---- Intro (lightning-strike entrance) -------------------------------------------------
   Timeline: bolt zaps in with a flicker (0.1–0.7s), screen flash (0.5s), the
   white stroke draws in (0.6–1s), wordmark + tagline track in (0.85–1.45s),
   overlay fades out (1.7–2.1s). The fade-out runs on pure CSS so the page is
   never blocked even if JS fails; script.js only handles the once-per-session
   flag and click-to-skip. Disabled for prefers-reduced-motion. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  animation: intro-out 0.4s ease 1.7s forwards;
}
.intro.done { display: none; }
.intro-skip .intro { display: none; }

.intro-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: intro-flash 0.22s ease-out 0.5s;
}
.intro-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-mark { width: clamp(96px, 22vw, 150px); height: auto; }
.intro-bolt {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: intro-bolt-zap 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) 0.12s forwards;
}
.intro-stroke {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: intro-stroke-draw 0.4s ease-out 0.6s forwards;
}
.intro-word {
  margin-top: 1.5rem;
  font: 800 clamp(1.6rem, 5vw, 2.2rem)/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-left: 0.26em; /* optically recenters tracked text */
  opacity: 0;
  animation: intro-text-in 0.45s ease 0.85s forwards;
}
.intro-tag {
  margin-top: 0.9rem;
  font: 700 clamp(0.65rem, 1.8vw, 0.8rem)/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  color: var(--accent-bright);
  opacity: 0;
  animation: intro-text-in 0.4s ease 1.05s forwards;
}

@keyframes intro-bolt-zap {
  0%   { opacity: 0; transform: scale(1.9) translateY(-8px); }
  12%  { opacity: 1; }
  22%  { opacity: 0.25; }
  34%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes intro-flash {
  0%   { opacity: 0; }
  35%  { opacity: 0.85; }
  100% { opacity: 0; }
}
@keyframes intro-stroke-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes intro-text-in {
  from { opacity: 0; letter-spacing: 0.5em; }
  to   { opacity: 1; }
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---- Scroll-reveal -------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sticky-cta { transition: none; }
  .btn, .card, .text-link .icon, .faq-x { transition: none !important; }
  .btn-primary:hover, .card:hover { transform: none; }
}
