@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --brand: #f36527;
  --brand-2: #ff8a4c;
  --brand-ink: #1a0c04;
  --bg: #0b0b0e;
  --bg-2: #111116;
  --card: #15151c;
  --card-2: #1b1b24;
  --text: #ececf0;
  --muted: #9d9daa;
  --line: #24242f;
  --ok: #3ccf7a;
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(1160px, 100% - 32px); margin: 0 auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.15rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); color: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,14,.78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 550; font-size: .94rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 40px; height: 38px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Hero */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(243,101,39,.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--brand-2);
  border: 1px solid rgba(243,101,39,.35); background: rgba(243,101,39,.08);
  padding: 6px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(60,207,122,.15); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.025em; margin: 20px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 560px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--brand); }

/* Ticket illustration */
.ticket {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.ticket-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ticket-bar b { color: var(--text); font-weight: 600; }
.ticket-bar .tag { margin-left: auto; color: var(--ok); }
.ticket-body { padding: 18px 16px 20px; display: grid; gap: 16px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.avatar.you { background: #2b2d3a; color: #c8c9d6; }
.avatar.us { background: var(--brand); color: var(--brand-ink); }
.msg-name { font-weight: 650; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.msg-name small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.staff { font-size: .65rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: rgba(243,101,39,.18); color: var(--brand-2); }
.msg p { margin: 3px 0 0; color: #cfcfd8; font-size: .92rem; }
.sys { font-family: var(--mono); font-size: .8rem; color: var(--ok); border: 1px dashed rgba(60,207,122,.35); border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-family: var(--mono); font-size: .78rem; color: var(--brand-2); letter-spacing: .06em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.service-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(243,101,39,.12); color: var(--brand); margin-bottom: 18px; }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.35rem; margin: 0 0 6px; }
.service > p { color: var(--muted); margin: 0 0 18px; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: #d6d6de; font-size: .95rem; }
.checks svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.service .btn { margin-top: auto; align-self: flex-start; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--card); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--brand); font-size: .85rem; font-weight: 600; }
.step h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Pricing */
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 26px; }
.tab { font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); background: none; border: 0; padding: .6rem 1.1rem; border-radius: 9px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plans[hidden] { display: none; }
.plans-label { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 0 0 14px; display: none; }
.no-js .plans-label { display: block; }
.no-js .tabs { display: none; }
.no-js .plans[hidden] { display: grid; margin-top: 0; }
.no-js .plans + .plans-label { margin-top: 36px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(243,101,39,.55); background: linear-gradient(180deg, rgba(243,101,39,.07), var(--card) 45%); }
.plan .badge { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); padding: 4px 8px; border-radius: 6px; }
.plan h3 { margin: 0; font-size: 1.1rem; }
.price { margin: 14px 0 4px; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.specs { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 10px 0 18px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.specs b { color: var(--text); font-weight: 600; }
.plan .checks { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.pricing-note { color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: #34343f; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand); font-size: 1.15rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta { text-align: center; padding: 90px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 100%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(243,101,39,.18), transparent 70%); pointer-events: none; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid img { height: 22px; width: auto; margin-bottom: 14px; }
.footer-grid h4 { color: var(--text); font-size: .85rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 18px; }
.legal h2 { font-size: 1.25rem; margin: 38px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: #c9c9d3; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal .updated { margin-top: 48px; font-size: .85rem; color: var(--muted); font-family: var(--mono); }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.legal-nav a { font-size: .85rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--text); border-color: var(--brand); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ticket { max-width: 520px; }
  .plans, .steps { grid-template-columns: 1fr; }
  .services, .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .service, .plan { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Language switch */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; font-family: var(--mono); font-size: .75rem; }
.lang a { color: var(--muted); padding: 4px 7px; border-radius: 7px; font-weight: 600; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--card-2); color: var(--text); }

.footer-bottom-legal { margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 520px) {
  .nav { gap: 8px; }
  .nav-logo img { height: 20px; }
  .nav-actions { gap: 8px; }
  .hide-sm { display: none; }
  .nav-actions .btn-sm { padding: .5rem .75rem; }
}

/* ---------- Mobile polish ---------- */
.lang-menu { display: none; }
.mobile-cta { display: none; }

@media (max-width: 820px) {
  /* Language switch moves into the menu on the homepage */
  .nav-links ~ .nav-actions .lang { display: none; }
  .nav-links.open .lang-menu { display: inline-flex; align-self: flex-start; margin-top: 14px; font-size: .85rem; }
  .nav-links.open .lang-menu a { padding: 10px 16px; border-bottom: 0; }
  .nav-links.open a { padding: 14px 0; font-size: 1rem; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-actions .btn-sm { min-height: 44px; }
}

@media (max-width: 640px) {
  /* Plans become a swipeable row with the next card peeking in */
  .plans {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 6px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 84%; scroll-snap-align: center; }
  .plans[hidden] { display: none; }
  .no-js .plans[hidden] { display: flex; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; min-height: 44px; }
  .swipe-hint { display: block; }

  /* Tighter sections */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 1rem; }
  .services, .steps, .faq { gap: 12px; }
  .step { padding: 20px; }
  .step h3 { margin-top: 6px; }
  .checks { gap: 8px; }
  .faq summary { padding: 16px 0; min-height: 44px; }

  /* Compact ticket illustration */
  .ticket-body { padding: 14px 12px 16px; gap: 12px; }
  .msg { grid-template-columns: 30px 1fr; gap: 10px; }
  .avatar { width: 30px; height: 30px; font-size: .75rem; }
  .msg p { font-size: .88rem; }
  .facts { gap: 8px 16px; margin-top: 26px; }

  .cta { padding: 64px 0; }
  .footer-grid { gap: 22px; }

  /* Sticky order bar */
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11,11,14,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: translateY(0); }
  .mobile-cta .btn { min-height: 48px; }
  body.has-mobile-cta .site-footer { padding-bottom: 100px; }
}

.swipe-hint { display: none; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: -8px 0 10px; }
@media (max-width: 640px) { .swipe-hint { display: block; } }
