/* Nacelle marketing site - shared stylesheet.
   Plain CSS, no framework, no build step. Linked by every page in site/. */

:root {
  --ink: #14122b;
  --ink-soft: #4a4763;
  --ink-faint: #6f6b87;
  --indigo: #4f46e5;
  --indigo-deep: #3730a3;
  --violet: #7c6cf0;
  --line: #e7e5f0;
  --surface: #ffffff;
  --surface-tint: #f6f5fb;
  --surface-deep: #f0eefa;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,18,43,.06), 0 1px 3px rgba(20,18,43,.05);
  --shadow-md: 0 4px 16px rgba(20,18,43,.08), 0 2px 6px rgba(20,18,43,.05);
  --shadow-lg: 0 18px 50px rgba(55,48,163,.16);
  --maxw: 1120px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header__logo { height: 30px; width: auto; display: block; }
.site-header__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-header__cta:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(124,108,240,.16), transparent 60%),
    radial-gradient(700px 400px at 12% 0%, rgba(79,70,229,.10), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--indigo-deep);
  background: var(--surface-deep);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 22px 0 0;
  max-width: 16ch;
}
.hero__subhead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 46ch;
}
.hero__points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.hero__points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.check {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface-deep);
  color: var(--indigo);
  display: grid;
  place-items: center;
}
.check svg { width: 12px; height: 12px; }
.hero__meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.hero__meta .sep { width: 1px; height: 16px; background: var(--line); }

/* Form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}
.form-card__tag {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 22px; }
.form-card__lead {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.form-card__note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.form-card__alt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
}
.form-card__alt a { font-weight: 500; }
.lead-form { margin-top: 20px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.form-field .hint { font-weight: 400; color: var(--ink-faint); }
.required-marker { color: var(--indigo); }
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-tint);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,108,240,.18);
}
.form-field textarea { min-height: 84px; resize: vertical; }
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  box-shadow: var(--shadow-md);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
  width: 100%;
}
.btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(1px); }
.btn--secondary {
  display: inline-block;
  width: auto;
  color: var(--indigo-deep);
  background: var(--surface-deep);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn--secondary:hover { filter: none; background: #e8e5f6; box-shadow: var(--shadow-sm); text-decoration: none; }
.fine {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
  line-height: 1.5;
}
.fine a { color: var(--ink-faint); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; }

.callout {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 15px;
}

/* Generic section */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section--tint { background: var(--surface-tint); }
.section--book {
  background:
    radial-gradient(700px 400px at 50% -5%, rgba(201,162,77,.10), transparent 60%),
    #14122b;
  border-bottom: none;
  color: #efedf7;
}
.section--book .section__head h2 { color: #fff; }
.section--book .section__lead { color: #c7c3e6; }
.section--book .section__eyebrow { color: #d4af5a; }
.section--book .book h3 { color: #fff; }
.section--book .book__body p { color: #c7c3e6; }
.section--book .book__author { border-top-color: rgba(255,255,255,.14); }
.section--book .book__author .name { color: #fff; }
.section--book .book__author .role { color: #9d99bd; }
.section--book .btn--secondary {
  color: #14122b;
  background: linear-gradient(180deg, #e6c77a 0%, #c9a24d 100%);
  border-color: transparent;
}
.section--book .btn--secondary:hover { filter: brightness(1.05); background: linear-gradient(180deg, #ecd08a 0%, #d0aa55 100%); }
.section__head { max-width: 60ch; margin: 0 auto; text-align: center; }
.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet);
}
.section__head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 12px;
}
.section__lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Demo */
.video-frame {
  margin: 32px auto 0;
  max-width: 880px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #0e0c1f;
}
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  color: #c7c3e6;
  font-size: 14px;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(124,108,240,.30), transparent 70%),
    #0e0c1f;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.video-placeholder .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

/* Feature chips under demo */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 760px;
}
.chip {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Book */
.book {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 32px auto 0;
}
.book__cover-wrap { perspective: 1000px; }
.book__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-8deg);
  transition: transform .3s ease;
}
.book__cover:hover { transform: rotateY(0deg); }
.book__cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px 10px 10px 6px;
  box-shadow: var(--shadow-lg);
}
.book__byline {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 8px;
  font-weight: 500;
}
.book h3 { font-size: clamp(22px, 2.4vw, 28px); }
.book__body p { color: var(--ink-soft); font-size: 16.5px; margin-top: 14px; }
.book__author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.book__author .name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.book__author .role { font-size: 13.5px; color: var(--ink-faint); }
.book__actions { margin-top: 22px; }

/* Footer */
.site-footer { padding: 40px 0; background: var(--surface); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-faint); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 36px; }
  .form-card { order: -1; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card__tag { position: static; display: inline-block; margin-bottom: 12px; }
  .book { grid-template-columns: 1fr; gap: 24px; text-align: center; max-width: 460px; }
  .book__cover-wrap { max-width: 180px; margin: 0 auto; }
  .book__author { justify-content: center; }
  .section { padding: 40px 0; }
  .hero h1 { margin-top: 18px; }
  .hero__subhead { margin-top: 16px; }
  .hero__points { margin-top: 22px; }
  .hero__meta { margin-top: 24px; }
  .video-frame { margin-top: 28px; }
  .chips { margin-top: 20px; }
  .book { margin-top: 32px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .section { padding: 32px 0; }
  .hero__subhead { font-size: 17px; }
  .section__lead { font-size: 15.5px; }
}
