/* Landing page. Tokens and shared parts live in base.css. */

/* -- hero ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 { margin-bottom: 1.2rem; }

/* The one typographic flourish: the promise is set in the accent, in the
   display face, so the eye lands on it before anything else. */
.hero h1 em {
  display: block;
  color: var(--amber);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

/* -- hero card: one real exchange, not a screenshot ------------------------ */

.sample {
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper-raised);
  box-shadow: var(--lift-high);
}

.sample-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* -- before / after -------------------------------------------------------- */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-head { max-width: 52ch; margin-bottom: 2.2rem; }
.section-head p { margin-top: 0.7rem; color: var(--ink-soft); }

.swap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.swap-card {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.swap-then {
  background: var(--paper-sunk);
  color: var(--ink-soft);
}

.swap-now {
  border-color: color-mix(in srgb, var(--amber) 40%, var(--rule));
  background: var(--paper-raised);
  box-shadow: var(--lift);
}

.swap-card h3 { margin-bottom: 0.8rem; }
.swap-now h3 { color: var(--amber); }

.swap-card ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.94rem;
}

.swap-card li { margin-bottom: 0.4rem; }
.swap-card li:last-child { margin-bottom: 0; }

/* -- three pillars --------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--rule);
}

.pillar {
  padding: 1.8rem 1.6rem;
  background: var(--paper-raised);
  transition: background 0.2s ease;
}

.pillar:hover { background: var(--paper); }

.pillar-no {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-soft); font-size: 0.93rem; }

/* -- the demo invitation: the whole point of this page --------------------- */

.invite {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: clamp(2.4rem, 6vw, 3.6rem);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--teal), color-mix(in srgb, var(--teal) 70%, #000));
  color: #f3efe8;
  box-shadow: var(--lift-high);
}

/* A quiet amber wash bleeding in from the corner, so the band reads as part
   of the palette rather than a pasted-in block of colour. */
.invite::after {
  content: "";
  position: absolute;
  inset: auto -12% -55% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 131, 36, 0.42), transparent 68%);
  pointer-events: none;
}

.invite-inner { position: relative; max-width: 40ch; }
.invite h2 { color: #fff; margin-bottom: 0.8rem; }
.invite p { color: rgba(243, 239, 232, 0.82); }

.invite .btn-primary {
  margin-top: 1.6rem;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.invite .btn-primary:hover {
  color: var(--teal);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.invite-meta {
  position: relative;
  margin-top: 1.1rem;
  color: rgba(243, 239, 232, 0.6);
  font-size: 0.82rem;
}

/* -- limits ---------------------------------------------------------------- */

.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  padding: 1.8rem;
  border: 1px dashed var(--rule);
  border-radius: 16px;
}

.limit h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.limit p { color: var(--ink-soft); font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
}
