/*
  Design plan
  -----------
  Layout: dark "command deck" hero (navy, live ticket-queue mockup) giving way to a light,
  airy body — the premium-SaaS pattern of a confident dark open + calm, scannable sections below.
  Color: --ink (near-navy text), --bg/--bg-soft (white / blue-tinted neutral), --accent (FasTicks
  blue, matches the product itself), --navy-deep + --navy-mid (the hero's own dark gradient).
  Type: Sora for display/headings (confident, geometric), IBM Plex Sans for body (clean,
  technical without being cold), IBM Plex Mono for ticket IDs/eyebrows/tags — a real detail from
  the product's own vocabulary (ticket numbers are genuinely monospaced in the app).
*/

:root {
  --accent: #2f6fed;
  --accent-dark: #1f4fc4;
  --accent-light: #eaf1ff;
  --ink: #0b1220;
  --ink-soft: #525b74;
  --ink-faint: #8891a8;
  --bg: #ffffff;
  --bg-soft: #f3f6fc;
  --border: #e3e8f3;
  --navy-deep: #060b1c;
  --navy-mid: #0f1a3d;
  --navy-line: rgba(255,255,255,.12);
  --radius: 14px;
  --max: 1160px;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -.015em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -8px rgba(47,111,237,.65); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark { background: transparent; color: #fff; border-color: var(--navy-line); }
.btn-on-dark:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,11,28,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', var(--font-display); font-weight: 800; font-style: italic; font-size: 27px; letter-spacing: -.01em; text-decoration: none; color: #7fa3ff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  font-family: var(--font-display);
}
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 14px; color: rgba(255,255,255,.72); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; }

/* Hero (dark) */
.hero {
  background: radial-gradient(1100px 500px at 15% -10%, #16255e 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-mid), var(--navy-deep) 65%);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47,111,237,.16); color: #a9c3ff;
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; padding: 7px 13px;
  border-radius: 100px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.08);
}
.eyebrow .dot-live { width: 6px; height: 6px; border-radius: 50%; background: #58e091; box-shadow: 0 0 0 3px rgba(88,224,145,.22); }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 20px; color: #fff; }
.hero h1 span { color: #7fa3ff; }
.hero p.lead { font-size: 18.5px; color: rgba(255,255,255,.72); margin: 0 0 32px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: #58e091; flex-shrink: 0; }

.hero-art {
  background: linear-gradient(180deg, #121d44, #0c1530);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06) inset;
}
.hero-art .browser-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 16px; }
.hero-art .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero-art .browser-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.35); }
.hero-card { background: #0b1430; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 6px; }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 12px; color: rgba(255,255,255,.4); font-family: var(--font-mono); border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.hero-row:last-child { border-bottom: none; }
.hero-row .id { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4); width: 72px; flex-shrink: 0; }
.hero-row .desc { flex: 1; color: rgba(255,255,255,.88); }
.tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 6px; flex-shrink: 0; }
.tag-open { background: rgba(255,159,67,.15); color: #ffb673; }
.tag-progress { background: rgba(47,111,237,.18); color: #8fb2ff; }
.tag-closed { background: rgba(88,224,145,.15); color: #6fe3a3; }

/* Section shell */
section { padding: 100px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-kicker { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; display: block; }
.section-head h2 { font-size: 34px; letter-spacing: -.015em; margin: 0 0 14px; color: var(--ink); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
.soft { background: var(--bg-soft); }

/* Value strip (new) */
.value-strip { padding: 64px 0; border-bottom: 1px solid var(--border); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); background: var(--accent-light); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; }
.value-item h4 { margin: 2px 0 6px; font-size: 16.5px; }
.value-item p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { border-color: #cdd9f5; box-shadow: 0 16px 36px -22px rgba(16,24,55,.25); transform: translateY(-2px); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; margin: 0 0 9px; font-family: var(--font-display); font-weight: 600; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 1px; background: var(--border); z-index: 0; }
.step { position: relative; padding: 0 20px 0 0; z-index: 1; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy-deep); color: #fff;
  font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 20px;
  border: 3px solid var(--bg-soft);
}
.step h3 { font-size: 16.5px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; padding-right: 12px; }

/* Trust / security */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trust-item { text-align: left; padding: 30px 26px; background: #fff; }
.trust-item .ico { width: 38px; height: 38px; margin-bottom: 16px; border-radius: 9px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); }
.trust-item h4 { font-size: 15px; margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; }
.trust-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 22px 4px; font-weight: 600; font-family: var(--font-display); font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .15s ease; color: var(--ink-faint); flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin: 0 0 22px; padding: 0 4px; color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  color: #fff; text-align: center; border-radius: 22px; padding: 64px 32px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%); opacity: .6;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: 32px; margin: 0 0 12px; }
.cta-band p { margin: 0 0 30px; color: rgba(255,255,255,.72); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-faint); border-top: 1px solid var(--border); padding-top: 26px; flex-wrap: wrap; gap: 12px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  section { padding: 64px 0; }
  .feature-grid, .steps, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
