/* Bastion — bastionprivate.ai
   Dark, warm, cinematic — the stronghold outside, the app's warm paper inside.
   Same DNA as the app: terracotta, Instrument Serif, earthy warmth.
   No JavaScript, no cookies, no third-party requests. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #171210;            /* deep warm ink */
  --bg-band: #1d1714;       /* raised band */
  --card: #231c18;          /* card fill */
  --border: #2e2620;        /* hairlines */
  --cream: #f4ede4;         /* headline text */
  --soft: #cbbfb2;          /* body text */
  --muted: #8d8074;         /* captions, labels */
  --accent: #BC5436;        /* terracotta (fills) */
  --accent-bright: #e0876a; /* terracotta (text on dark) */
  --on-accent: #FFF6EF;
  --sage: #a9b884;          /* calm green, lightened for dark */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- header ---------- */

header { position: relative; z-index: 2; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--cream);
}
.brand svg { width: 26px; height: 26px; }
.brand span { font-family: var(--serif); font-size: 27px; line-height: 1; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--accent-bright); }

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

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 48px 0 96px;
}
.kicker {
  display: block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 20px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  line-height: 1.03; letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 22px;
}
.lede { font-size: 19px; max-width: 32em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 13px 24px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--muted); filter: none; }
.micro-strip {
  margin-top: 38px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* floating phone */

.phone-col { display: flex; justify-content: center; position: relative; }
.phone-float { position: relative; animation: float 6s ease-in-out infinite; }
.phone-float::before {
  content: ""; position: absolute; inset: -48px; border-radius: 4rem;
  background: radial-gradient(circle, rgba(188, 84, 54, 0.32), transparent 68%);
  filter: blur(28px); z-index: -1;
}
.phone {
  width: min(320px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: #0e0b09;
  border: 1px solid #3a2f27;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 35px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- stats band ---------- */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-band);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 0; text-align: center;
}
.stat-num {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--cream); line-height: 1.1;
}
.stat-label {
  margin-top: 6px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

/* ---------- story / prose sections ---------- */

.story { padding: 96px 0; }
h2.section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12;
  color: var(--cream); margin-bottom: 26px;
}
.story p { font-size: 18px; margin-bottom: 18px; }
.story p:last-child { margin-bottom: 0; }
.story strong { color: var(--cream); font-weight: 600; }

/* ---------- feature cards ---------- */

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 0 0 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 24px;
}
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(224, 135, 106, 0.12);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  color: var(--cream); margin-bottom: 8px;
}
.card p { font-size: 15.5px; color: var(--soft); }
.card .models { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--soft);
  background: var(--bg-band); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
}

/* ---------- proof band ---------- */

.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-band);
  text-align: center;
  padding: 88px 0;
}
.proof .kicker { margin-bottom: 16px; }
.proof h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1;
  color: var(--cream);
  max-width: 22ch; margin: 0 auto 18px;
}
.proof p { max-width: 38em; margin: 0 auto; font-size: 18px; }

/* ---------- gallery ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 44px;
  justify-content: center; padding: 96px 24px 40px;
}
.gallery figure { text-align: center; }
.gallery .phone { width: 100%; }
.gallery figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- honest ---------- */

.honest { padding: 88px 0 96px; text-align: center; }
.honest h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream); margin-bottom: 18px;
}
.honest p { max-width: 44em; margin: 0 auto; }

/* ---------- prose pages (privacy / support) ---------- */

.prose { padding: 56px 24px 90px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 8px; }
.prose .date { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: 27px;
  color: var(--cream); margin: 40px 0 12px;
}
.prose p, .prose li { color: var(--soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--cream); }
.prose a { color: var(--accent-bright); }
.prose .aside {
  background: rgba(169, 184, 132, 0.1); color: var(--sage);
  border: 1px solid rgba(169, 184, 132, 0.25);
  border-radius: 14px; padding: 14px 18px; font-size: 15.5px;
  margin: 24px 0;
}
.prose .aside a { color: var(--sage); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 58px;
  text-align: center;
  color: var(--muted); font-size: 14.5px;
}
footer .quiet { margin-top: 8px; font-size: 13.5px; }
footer a { color: var(--soft); }

/* ---------- motion & small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  .phone-float { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 24px 0 72px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phone-col { margin-top: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}
