/* =========================================================================
   Flexra — premium design system (dark + orange).
   Hand-built, no framework. Same class names used across all pages.
   ========================================================================= */

:root {
  /* surfaces — deep, slightly warm near-black */
  --bg:        #0A0B0D;
  --bg-1:      #101318;
  --bg-2:      #161A21;
  --bg-3:      #1E242D;
  --border:    rgba(255, 255, 255, .07);
  --border-2:  rgba(255, 255, 255, .13);

  /* text */
  --text:      #F6F8FB;
  --muted:     #9AA5B4;
  --faint:     #626D7D;

  /* brand */
  --brand:     #FF6A1A;
  --brand-2:   #FF9147;
  --brand-3:   #FFB27A;
  --brand-soft: rgba(255, 106, 26, .12);
  --brand-line: rgba(255, 106, 26, .30);

  --ok:        #3DDC97;

  /* geometry */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --maxw: 1140px;

  --shadow-sm: 0 4px 16px -6px rgba(0,0,0,.5);
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-brand: 0 14px 40px -14px rgba(255, 106, 26, .55);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

::selection { background: rgba(255,106,26,.28); color: #fff; }

/* layered ambient glows for depth */
body::before, body::after {
  content: ""; position: fixed; pointer-events: none; z-index: 0;
}
body::before {
  top: -34vh; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,106,26,.18), transparent 70%);
  filter: blur(10px);
}
body::after {
  top: 30vh; right: -20vw; width: 620px; height: 620px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(70,110,180,.10), transparent 70%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- type ---- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h3 { font-size: 1.18rem; letter-spacing: -.015em; }

.grad {
  background: linear-gradient(100deg, var(--brand-3), var(--brand) 55%, #FF5A00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 15px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.2rem); max-width: 58ch; line-height: 1.7; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -14px rgba(255,106,26,.7), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-2); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 11, 13, .6);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(10, 11, 13, .82); border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.35);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---- hero ---- */
.hero { padding: 92px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero h1 { margin: 0 0 22px; }
.hero .lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* phone mockup — premium */
.phone {
  justify-self: center; position: relative;
  width: 300px; max-width: 82vw; aspect-ratio: 300 / 612;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(155deg, #2a3038, #0c0f13);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.14);
}
.phone::after {
  content: ""; position: absolute; inset: -1px; border-radius: 46px; pointer-events: none;
  background: radial-gradient(60% 40% at 50% -5%, rgba(255,106,26,.35), transparent 60%);
  z-index: -1; filter: blur(24px);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 116px; height: 26px; background: #05070a; border-radius: 999px; z-index: 3; }
.phone-screen {
  height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #182430 0%, #0b0f14 55%);
  display: flex; flex-direction: column;
}
.phone-top { padding: 46px 22px 14px; }
.phone-top .st { font-size: .72rem; color: var(--brand-2); font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; }
.phone-top .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,106,26,.2); }
.phone-top .title { font-size: 1.25rem; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; }
.phone-body { flex: 1; padding: 10px 16px; display: flex; flex-direction: column; gap: 11px; }
.phone-card { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: 16px; padding: 13px 15px; transition: transform .2s; }
.phone-card.hot { border-color: var(--brand-line); background: linear-gradient(180deg, rgba(255,106,26,.12), rgba(255,255,255,.03)); box-shadow: 0 10px 30px -14px rgba(255,106,26,.5); }
.phone-card .row { display: flex; justify-content: space-between; align-items: center; }
.phone-card .wh { font-weight: 600; font-size: .92rem; }
.phone-card .pay { color: var(--ok); font-weight: 700; font-size: 1rem; }
.phone-card .meta { color: var(--faint); font-size: .78rem; margin-top: 4px; }
.phone-pill { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.phone-fab { margin: 6px 16px 22px; text-align: center; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---- sections ---- */
.band { padding: 104px 0; }
.band-head { max-width: 660px; margin: 0 auto 58px; }
.band-head.center { text-align: center; }
.band-head h2 { margin: 0 0 16px; }
.band-head .eyebrow { margin-bottom: 18px; }

/* ---- feature cards ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), rgba(16,19,24,.4));
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,106,26,.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,106,26,.22), rgba(255,106,26,.06));
  border: 1px solid var(--brand-line); color: var(--brand-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---- CTA ---- */
.cta {
  position: relative; text-align: center; padding: 84px 40px; border-radius: var(--r-xl); margin: 0 auto; overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255,106,26,.20), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
}
.cta h2 { margin-bottom: 16px; }
.cta .hero-actions { justify-content: center; margin-top: 30px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); padding: 56px 0 44px; margin-top: 40px; }
.foot .brand { font-size: 1.15rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--faint); font-size: .88rem; }
.foot-bottom a { transition: color .15s; }
.foot-bottom a:hover { color: var(--text); }
.disclaimer { color: var(--faint); font-size: .84rem; line-height: 1.65; max-width: 74ch; }

/* ---- legal / long-form ---- */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 0 40px; }
.doc h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom: 12px; letter-spacing: -.03em; }
.doc .updated { color: var(--faint); font-size: .9rem; margin-bottom: 46px; }
.doc h2 { font-size: 1.42rem; margin: 42px 0 13px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); margin-bottom: 13px; line-height: 1.75; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 18px; }
.doc a { color: var(--brand-2); text-underline-offset: 3px; }
.doc a:hover { text-decoration: underline; }

/* ---- FAQ accordion ---- */
.faq { max-width: 780px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border); }
.qa button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; transition: color .2s; }
.qa button:hover { color: var(--brand-2); }
.qa button .plus { flex: none; color: var(--brand-2); transition: transform .3s var(--ease); }
.qa.open button .plus { transform: rotate(45deg); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); color: var(--muted); }
.qa.open .ans { max-height: 460px; }
.qa .ans p { padding-bottom: 24px; line-height: 1.72; }

/* ---- scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 12px 24px; text-align: left; }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .band { padding: 72px 0; }
  .cta { padding: 60px 26px; }
}
@media (max-width: 480px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
