/* Longwing: Vision / Discovery-Phase Page
   Brand colors sampled from the Longwing logo mark. */

:root {
  --blue-deep: #0071bc;
  --blue-light: #29abe2;
  --green-teal: #22b573;
  --green: #39b54a;
  --ink: #11212e;
  --ink-soft: #3c4c58;
  --paper: #fbfaf6;
  --paper-alt: #f2f1ea;
  --line: #e3e0d5;
  --white: #ffffff;

  --gradient-wing: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue-light) 35%, var(--green-teal) 68%, var(--green) 100%);

  --max-width: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -25px rgba(17, 33, 46, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-wing);
  display: inline-block;
  border-radius: 2px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; }

.hero-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  max-width: 720px;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 620px;
}

.lede-big {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  max-width: 640px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 500px;
  background: radial-gradient(60% 60% at 20% 20%, rgba(41, 171, 226, 0.16), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, rgba(57, 181, 74, 0.14), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-copy .btn-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-copy p.lede { margin-top: 16px; }

.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 181, 74, 0.18);
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--gradient-wing);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-visual .card-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metric-chip {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  backdrop-filter: blur(6px);
}

.metric-chip .num { font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 4px; }
.metric-chip .lbl { font-size: 0.85rem; opacity: 0.9; line-height: 1.4; }

/* Generic section */
section { padding: 60px 0; }

.diff-section { background: var(--paper-alt); }

/* Essay-style prose blocks */
.essay {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.essay p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Dispatch cards */
.dispatch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 720px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dispatch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.dispatch-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.dispatch-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.dispatch-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }

.dispatch-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}
.dispatch-link:hover { text-decoration: underline; }

.dispatches-foot {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--blue-light);
  padding-left: 16px;
}

/* Connect */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.connect-panel {
  background: var(--paper-alt);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.connect-panel h3 { font-size: 1.2rem; }
.connect-panel > p { color: var(--ink-soft); font-size: 0.95rem; }

.contact-detail {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-detail strong { color: var(--ink); }

.substack-embed-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.substack-embed {
  width: 100%;
  max-width: 420px;
  height: 320px;
  border-radius: 12px;
  background: var(--white);
}

.social-block {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-btn svg { width: 18px; height: 18px; color: var(--blue-deep); }

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { height: 22px; }
.footer-brand span { font-size: 0.85rem; color: var(--ink-soft); }

footer .footer-note { font-size: 0.82rem; color: var(--ink-soft); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .connect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 44px 0; }
  .connect-panel { padding: 24px; }
}
