/* ============================================================
   TripShare Atlas — landing site styles
   Palette mirrors the in-app "Atlas" dark theme.
   ============================================================ */

:root {
  --bg:       #0A0E14;
  --bg-2:     #10151F;
  --surface:  #161C28;
  --surface-2:#1C2433;
  --line:     #2A3346;
  --primary:  #4E8CFF;
  --primary-d:#2A6FFF;
  --mint:     #3FE5B0;
  --coral:    #FF6B6B;
  --text:     #E8EEFB;
  --muted:    #8A93A6;
  --radius:   20px;
  --shadow:   0 24px 60px -20px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- animated aurora backdrop ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: drift 22s ease-in-out infinite;
}
.aurora span:nth-child(1) { width: 460px; height: 460px; background: var(--primary); top: -120px; left: -80px; }
.aurora span:nth-child(2) { width: 380px; height: 380px; background: var(--mint);    bottom: -140px; right: -60px; animation-delay: -7s; }
.aurora span:nth-child(3) { width: 320px; height: 320px; background: #8A5CFF;        top: 40%; left: 55%; animation-delay: -13s; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,40px) scale(1.15); }
  66%     { transform: translate(-50px,30px) scale(.9); }
}

/* ---- layout ---- */
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
section { padding: 96px 0; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,14,20,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---- the receipt mark (CSS-drawn app logo) ---- */
.mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--primary), var(--primary-d));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px var(--primary);
}
.mark::before {
  content: "";
  width: 18px; height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(var(--mint),var(--mint)) 4px 5px/4px 4px no-repeat,
    linear-gradient(var(--text),var(--text)) 10px 6px/6px 2px no-repeat,
    linear-gradient(var(--mint),var(--mint)) 4px 11px/4px 4px no-repeat,
    linear-gradient(var(--text),var(--text)) 10px 12px/6px 2px no-repeat,
    #fff;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 34px -12px var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px var(--primary); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled], .btn.is-soon { opacity: .65; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; box-shadow: 0 14px 34px -12px var(--primary); }

/* Official Google Play badge (local SVG, 180×53 natural) */
.badge-link { display: inline-flex; align-items: center; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-2px); }
.play-badge { height: 54px; width: auto; display: block; }

/* ---- hero ---- */
.hero { padding-top: 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(63,229,176,.1);
  border: 1px solid rgba(63,229,176,.35);
  color: var(--mint);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(63,229,176,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,229,176,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(63,229,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,229,176,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 22px 0 18px;
  letter-spacing: -.02em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.soon-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---- floating phone / receipt card ---- */
.hero-art { display: grid; place-items: center; }
.phone {
  width: 280px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-18px) rotate(1deg); }
}
.phone .screen {
  background: var(--bg);
  border-radius: 22px;
  padding: 18px 16px;
  border: 1px solid var(--line);
}
.screen .s-title { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.screen .s-total { font-size: 1.9rem; font-weight: 800; margin: 4px 0 16px; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.row .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .95rem; }
.row .nm { flex: 1; font-size: .9rem; }
.row .amt { font-weight: 700; font-size: .9rem; }
.amt.cr { color: var(--mint); }
.amt.dr { color: var(--coral); }

/* ---- section headings ---- */
.head { text-align: center; margin-bottom: 56px; }
.head .eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin: 12px 0 10px; letter-spacing: -.02em; }
.head p { color: var(--muted); max-width: 56ch; margin: 0 auto; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--primary); background: var(--surface-2); }
.card .emoji {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(78,140,255,.12);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { text-align: center; padding: 8px; }
.step .num {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  box-shadow: 0 10px 26px -10px var(--primary);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.qa .q {
  width: 100%; text-align: left;
  background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 600;
  padding: 20px 22px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit;
}
.qa .q .chev { transition: transform .3s ease; color: var(--primary); flex: none; }
.qa.open .q .chev { transform: rotate(45deg); }
.qa .a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  color: var(--muted);
}
.qa .a p { padding: 0 22px 20px; font-size: .95rem; }

/* ---- final CTA ---- */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(78,140,255,.16), rgba(63,229,176,.1));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 60px 28px;
}
.cta-box h2 { font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: 28px; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: .9rem;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 22px; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---- privacy / document page ---- */
.doc { width: min(820px, 92vw); margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.doc .updated { color: var(--muted); margin: 8px 0 40px; font-size: .92rem; }
.doc h2 {
  font-size: 1.3rem; margin: 36px 0 12px;
  padding-top: 8px;
}
.doc h2 .n { color: var(--primary); margin-right: 8px; }
.doc p, .doc li { color: #C3CBDA; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 8px 0 16px 22px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--text); }
.doc a { color: var(--primary); }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); margin-bottom: 28px; font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { max-width: none; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
}
