/* -------------------------------------------------------
   Convoya Landing Theme — “Slate + Warm Red + Soft Cream”
   Inspired by your screenshot’s UI kit vibe:
   - Dark slate surfaces
   - Warm red primary
   - Soft cream/gray cards
   - Thick borders + rounded corners
   - Subtle texture + soft shadows
-------------------------------------------------------- */

:root{
  /* Core palette */
  --bg: #0b0f14;            /* near-black */
  --panel: #1d2733;         /* slate */
  --panel-2: #17212b;       /* deeper slate */
  --cream: #f2f0ea;         /* soft off-white */
  --ink: #0b0f14;           /* dark text on cream */
  --text: #f5f7ff;          /* light text */
  --muted: rgba(245,247,255,.72);

  /* Accent palette */
  --red: #b8453a;           /* warm red */
  --red-2: #a23b32;         /* deeper */
  --blue: #bcd2ea;          /* airy light blue */
  --line: rgba(255,255,255,.12);

  /* Sizing */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  /* Shadow + border */
  --border: 1.5px solid rgba(255,255,255,.14);
  --border-strong: 2px solid rgba(255,255,255,.18);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.28);
}

/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
}

/* Background texture + subtle color sweep */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 18% 12%, rgba(188,210,234,.18), transparent 60%),
    radial-gradient(900px 520px at 78% 58%, rgba(184,69,58,.18), transparent 62%),
    radial-gradient(1200px 800px at 50% 110%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 35%);
  opacity: 1;
  z-index: -2;
}
body::after{
  /* lightweight “grain” */
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0, rgba(0,0,0,.06) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  opacity: .10;
  z-index: -1;
}

/* Layout helpers */
.container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}
.section{
  padding: 64px 0;
}
.section--dark{
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border-top: var(--border);
  border-bottom: var(--border);
}

/* Top nav */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,20,.72);
  backdrop-filter: blur(16px);
  border-bottom: var(--border);
}
.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.logo{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--blue), rgba(255,255,255,.55));
  box-shadow: 0 10px 26px rgba(188,210,234,.18);
  border: 1px solid rgba(255,255,255,.18);
}

/* Hero */
.hero{
  padding: 76px 0 44px;
  border-bottom: var(--border);
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255,255,255,.03);
}

h1{
  font-size: 62px;
  line-height: 1.02;
  margin: 14px 0 12px;
  letter-spacing: -1px;
}
@media (max-width: 560px){
  h1{ font-size: 44px; }
}

h2{
  font-size: 34px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.subhead{
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 62ch;
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Buttons — thick outline, warm red primary */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  border: 2px solid rgba(0,0,0,.35);
  background: var(--red);
  color: var(--cream);
  box-shadow:
    0 10px 26px rgba(184,69,58,.22),
    inset 0 0 0 1px rgba(255,255,255,.12);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0px); filter: brightness(.98); }

.btn--ghost{
  background: rgba(255,255,255,.03);
  border: var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

/* “UI kit” style cards */
.card, .feature, .form, .hero__card{
  border-radius: var(--radius-lg);
  border: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

/* Right-side preview panel */
.hero__card{
  background: linear-gradient(180deg, rgba(29,39,51,.85), rgba(23,33,43,.75));
  padding: 16px;
}
.fineprint{
  margin: 10px 0 0;
  color: rgba(245,247,255,.62);
  font-size: 12px;
}

/* Grid of features */
.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 920px){
  .grid3{ grid-template-columns: 1fr; }
}

.feature{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  padding: 18px;
}
.feature h3{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.feature p{
  margin: 0;
  color: rgba(245,247,255,.72);
  line-height: 1.6;
}

/* Waitlist block */
.waitlist{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px){
  .waitlist{ grid-template-columns: 1fr; }
}

.bullets{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(245,247,255,.72);
  line-height: 1.7;
}

/* Form */
.form{
  background: linear-gradient(180deg, rgba(242,240,234,.08), rgba(242,240,234,.04));
  padding: 16px;
}
.label{
  display: block;
  font-size: 13px;
  color: rgba(245,247,255,.72);
  margin-bottom: 8px;
}

.row{
  display: flex;
  gap: 10px;
  align-items: center;
}

input{
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(242,240,234,.92);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
input::placeholder{ color: rgba(11,15,20,.55); }
input:focus{
  border-color: rgba(188,210,234,.65);
  box-shadow: 0 0 0 6px rgba(188,210,234,.12), inset 0 0 0 1px rgba(0,0,0,.08);
}

/* Make the submit button feel like the screenshot: thick and “poppable” */
form .btn{
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

/* FAQ */
/* Section-level collapsible wrapper (matches site card language) */
.faq__section{
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(29,39,51,.85), rgba(23,33,43,.75));
  overflow: hidden;
}

.faq__sectionTitle{
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.4px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* Remove default markers */
.faq__sectionTitle::-webkit-details-marker{ display: none; }
.faq__sectionTitle::marker{ content: ""; }

/* Chevron */
.faq__sectionTitle::after{
  content: "▾";
  opacity: .75;
  transform: rotate(0deg);
  transition: transform .15s ease, opacity .15s ease;
}
.faq__section[open] > .faq__sectionTitle::after{
  transform: rotate(180deg);
  opacity: .95;
}

/* Inner list spacing */
.faq{
  padding: 0 18px 18px;
}

/* Individual Q/A items */
.faq details{
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  margin-top: 12px;
}
.faq details:first-child{ margin-top: 0; }

.faq summary{
  cursor: pointer;
  font-weight: 800;
}

.faq__answer,
.faq p{
  margin: 10px 0 0;
  color: rgba(245,247,255,.72);
  line-height: 1.6;
}

/* Hover polish */
.faq__sectionTitle:hover{
  background: rgba(255,255,255,.03);
}
.faq details:hover{
  border-color: rgba(255,255,255,.22);
}

/* Footer */
.footer{
  padding: 26px 0;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: var(--border);
  padding-top: 18px;
}
.footer__links{
  display: flex;
  gap: 14px;
  color: rgba(245,247,255,.7);
}
.footer__links a:hover{ color: var(--text); }

/* Small polish */
a { color: inherit; }
b { color: rgba(242,240,234,.92); }