/* ============================================================
   FreightX — promotional landing page
   Brand system mirrored from the Flutter app (lib/config/theme.dart)
   ============================================================ */

:root {
  --navy:        #12355B;
  --navy-deep:   #0C2440;
  --navy-mid:    #163C67;
  --blue:        #2A6DB0;
  --accent:      #F5A623;
  --accent-deep: #E08B12;
  --accent-hi:   #FBB94A;

  --canvas:      #EEF1F6;
  --card-border: #E6EAF1;
  --ink:         #16202E;
  --muted:       #6A7686;
  --white:       #ffffff;

  --grad-brand:  linear-gradient(135deg, #163C67 0%, #2A6DB0 100%);
  --grad-accent: linear-gradient(135deg, #FBB94A 0%, #EE8E12 100%);
  --grad-hero:   linear-gradient(150deg, #0C2440 0%, #12355B 45%, #1C4E86 100%);

  --shadow-sm: 0 2px 8px rgba(12, 36, 64, .06);
  --shadow-md: 0 12px 32px rgba(12, 36, 64, .12);
  --shadow-lg: 0 30px 70px rgba(12, 36, 64, .28);

  --radius:    16px;
  --radius-sm: 12px;
  --maxw:      1160px;

  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; color: var(--navy-deep); }

a { text-decoration: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.btn-accent { background: var(--grad-accent); color: #3a2600; box-shadow: 0 8px 20px rgba(224, 139, 18, .35); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(224, 139, 18, .45); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline { background: transparent; color: var(--navy); border-color: rgba(18,53,91,.28); }
.btn-outline:hover { border-color: var(--navy); background: rgba(18,53,91,.05); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 36, 64, .0);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(12, 36, 64, .92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 4px 24px rgba(12,36,64,.28);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: 0 6px 16px rgba(18,53,91,.35);
}
.brand-name { font-weight: 800; font-size: 1.32rem; color: var(--white); letter-spacing: -.01em; }
.brand-x { color: var(--accent); }

.nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.nav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--white); }

.header-cta { margin-left: auto; display: flex; gap: .6rem; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .25rem; padding: 0 24px; overflow: hidden; max-height: 0; transition: max-height .3s ease, padding .3s ease; background: var(--navy-deep); }
.mobile-nav.open { max-height: 420px; padding: 12px 24px 24px; }
.mobile-nav a { color: rgba(255,255,255,.9); font-weight: 600; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; padding-bottom: 3rem; overflow: hidden; margin-top: -72px; padding-top: 72px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(245,166,35,.22), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(42,109,176,.35), transparent 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center; padding: 3.5rem 24px 3rem;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); color: #fff; margin-bottom: 1.1rem; }
.hero-copy h1 .hl { color: var(--accent); }
.lede { font-size: 1.16rem; color: rgba(255,255,255,.85); max-width: 34rem; margin-bottom: 1.8rem; }
.lede strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: rgba(255,255,255,.6); }

/* Hero panel (floating marketplace card) */
.hero-panel { display: flex; justify-content: center; }
.quote-card {
  width: 100%; max-width: 400px; background: #fff; color: var(--ink);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.4rem;
  transform: rotate(.5deg);
}
.quote-card-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22,163,74,.16); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,.16);} 50% { box-shadow: 0 0 0 7px rgba(22,163,74,0);} }
.load-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .9rem; border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: .6rem; }
.route { font-weight: 700; color: var(--navy-deep); font-size: .98rem; }
.route-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.bid-pill { background: #EEF3FA; color: var(--blue); font-weight: 700; font-size: .82rem; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; }
.bid-pill.accent { background: #FFF3DE; color: var(--accent-deep); }
.bid-pill.live { background: #E7F6EE; color: #16A34A; }
.quote-card-cta { display: block; text-align: center; margin-top: .6rem; font-weight: 700; color: var(--blue); padding: .6rem; }

/* stat strip */
.stat-strip {
  position: relative; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 1rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.4rem 1rem; margin-top: 1rem;
  backdrop-filter: blur(4px);
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .6rem; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: #fff; line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: .35rem; }
.stat-div { width: 1px; height: 34px; background: rgba(255,255,255,.18); }

/* ---------- Trust band ---------- */
.trustband { background: var(--canvas); padding: 2.4rem 0; border-bottom: 1px solid var(--card-border); }
.trustband-label { text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: 1.2rem; }
.trustband-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; }
.trustband-tags span {
  font-family: var(--font-head); font-weight: 700; color: var(--navy); opacity: .7;
  font-size: 1.02rem; padding: .4rem .9rem; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--canvas); }
.section-dark { background: var(--grad-hero); color: #fff; }
.section-dark h2, .section-dark .section-head p { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.78); }

.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem;
}
.kicker-accent { color: var(--accent); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head .kicker { color: var(--accent); }
.section-cta { text-align: center; margin-top: 3rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step {
  position: relative; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1.1rem; box-shadow: 0 6px 14px rgba(18,53,91,.28);
}
.step h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* Split (transporters) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.checklist li { position: relative; padding-left: 2.4rem; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.checklist li strong { color: #fff; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad-accent);
  color: #3a2600; font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}
.earn-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.earn-card-head { font-family: var(--font-head); font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.earn-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--card-border); font-weight: 600; color: var(--navy-deep); }
.tag { font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.tag.won { background: #E7F6EE; color: #16A34A; }
.tag.pending { background: #FFF3DE; color: var(--accent-deep); }
.earn-divider { height: 1px; background: var(--card-border); margin: .8rem 0; }
.earn-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.earn-total span { color: var(--muted); font-size: .9rem; }
.earn-total strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-deep); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.feature {
  background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4deec; }
.feature-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--canvas); margin-bottom: 1rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .93rem; }

/* Value band */
.valueband { background: var(--grad-accent); color: #3a2600; padding: 4rem 0; }
.valueband-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.valueband h2 { color: #3a2600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .8rem; }
.valueband p { color: #5c4310; font-size: 1.1rem; }
.valueband p strong { color: #3a2600; }
.valueband-stats { display: flex; gap: 1.5rem; justify-content: space-between; }
.valueband-stats > div { text-align: center; flex: 1; }
.vb-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--navy-deep); line-height: 1; }
.vb-label { font-size: .85rem; color: #5c4310; font-weight: 600; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.2rem; }
.testimonial blockquote { font-size: 1.05rem; color: var(--navy-deep); font-weight: 500; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption strong { color: var(--navy); font-family: var(--font-head); }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq-wrap { max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-head); font-weight: 700; color: var(--navy-deep); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-deep); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: .8rem; }

/* CTA band */
.cta-band { background: var(--grad-hero); color: #fff; padding: 5rem 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.cta-inner p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 3.5rem 0 1.8rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-cols a { display: block; color: rgba(255,255,255,.66); font-size: .92rem; padding: .28rem 0; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 2.5rem; }
  .hero-panel { order: -1; }
  .quote-card { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .valueband-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 3.8rem 0; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .stat-div { display: none; }
  .stat-strip { gap: 1.2rem; }
  .stat { flex: 1 1 40%; }
  .hero-actions .btn { flex: 1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: .5rem; }
  .valueband-stats { flex-wrap: wrap; }
}
