/* ============================================================
   The Deep Synthesis — "The Observatory"
   Midnight Indigo void · Quantum Violet energy · Electric Teal
   insight · Dazzling Silver clarity.
   ============================================================ */

:root {
  --void: #080A1A;
  --void-soft: #0C0F26;
  --card: #0D1130;
  --violet: #6F1ACF;
  --violet-soft: rgba(111, 26, 207, 0.32);
  --teal: #00F0D8;
  --teal-dim: rgba(0, 240, 216, 0.55);
  --silver: #EBEBEB;
  --ink: rgba(235, 235, 235, 0.80);
  --ink-dim: rgba(235, 235, 235, 0.55);
  --line: rgba(235, 235, 235, 0.10);
  --line-bright: rgba(235, 235, 235, 0.22);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: var(--silver); }

/* ---------- atmosphere ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(111, 26, 207, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% 38%, rgba(111, 26, 207, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 40% at 8% 78%, rgba(0, 240, 216, 0.05), transparent 70%),
    var(--void);
}

.atmosphere::after {  /* fine grain */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.stars, .stars::after {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(235,235,235,.7), transparent),
    radial-gradient(1px 1px at 68% 12%, rgba(235,235,235,.5), transparent),
    radial-gradient(1.5px 1.5px at 84% 46%, rgba(0,240,216,.6), transparent),
    radial-gradient(1px 1px at 32% 64%, rgba(235,235,235,.4), transparent),
    radial-gradient(1px 1px at 54% 38%, rgba(235,235,235,.55), transparent),
    radial-gradient(1.5px 1.5px at 8% 88%, rgba(111,26,207,.8), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(235,235,235,.45), transparent),
    radial-gradient(1px 1px at 44% 92%, rgba(235,235,235,.35), transparent);
  background-size: 1100px 900px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars::after {
  content: '';
  background-position: 420px 260px;
  animation-delay: -3.5s;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--silver);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.18rem; }

h1 em { font-style: normal; color: var(--teal); }

.overline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

a { color: var(--teal); text-decoration: none; }

.teal { color: var(--teal); }
.violet { color: #A96BF0; }

/* ---------- entrance motion ---------- */

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .stars, .stars::after, .float-slow, .pulse-dot { animation: none; }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(8, 10, 26, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}

.nav-brand b { font-weight: 800; color: var(--teal); }
.nav-brand img { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.nav-links a { color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--teal-dim);
  border-radius: 999px;
  color: var(--teal) !important;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: rgba(0, 240, 216, 0.08);
  box-shadow: 0 0 18px rgba(0, 240, 216, 0.25);
}

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

.hero { padding: clamp(4rem, 10vh, 7rem) var(--pad) 3rem; }

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 34px rgba(111, 26, 207, 0.65)) drop-shadow(0 0 90px rgba(111, 26, 207, 0.3));
}

.float-slow { animation: floaty 7s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-sub {
  max-width: 620px;
  margin: 1.4rem auto 0;
  font-size: 1.22rem;
  font-weight: 300;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: #04251F;
  box-shadow: 0 0 24px rgba(0, 240, 216, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 240, 216, 0.55);
}

.btn-ghost {
  border: 1px solid var(--line-bright);
  color: var(--silver);
}

.btn-ghost:hover {
  border-color: var(--teal-dim);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ---------- divider ---------- */

.divider { max-width: 640px; margin: 1rem auto; padding: 0 var(--pad); }
.divider svg { width: 100%; display: block; }

.div-point {
  filter: drop-shadow(0 0 6px var(--teal));
  animation: pulse-pt 3.2s ease-in-out infinite;
}

@keyframes pulse-pt {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vh, 5.5rem) var(--pad); }

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.4rem;
  position: relative;
}

.all-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

@media (min-width: 720px) {
  .all-link { position: absolute; right: 0; bottom: 0.4rem; }
}

/* thesis */

.thesis-inner {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.8rem, 5vw, 3.2rem);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(111, 26, 207, 0.13), transparent 70%),
    var(--void-soft);
}

.thesis-cols {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.6rem;
  font-size: 1.1rem;
  font-weight: 300;
}

@media (min-width: 760px) { .thesis-cols { grid-template-columns: 1fr 1fr; } }

.thesis-names {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.thesis-point { color: var(--teal); font-weight: 700; white-space: nowrap; }

/* pillars */

.pillars {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pillar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.4rem;
  background: rgba(13, 17, 48, 0.55);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.pillar:hover {
  border-color: var(--teal-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 240, 216, 0.08);
}

.pillar-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--violet);
  display: block;
  margin-bottom: 0.8rem;
}

.pillar:hover .pillar-num { color: var(--teal); }

.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { font-size: 0.98rem; font-weight: 300; color: var(--ink-dim); }

/* griff */

.griff {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) { .griff { grid-template-columns: 1.15fr 1fr; } }

.griff-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line-bright);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(111, 26, 207, 0.18);
}

.griff-text h2 { margin-bottom: 1.1rem; }
.griff-text p { margin-bottom: 1rem; font-weight: 300; }
.griff-text .btn { margin-top: 0.6rem; }

/* ---------- post cards ---------- */

.latest .post-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 17, 48, 0.55);
  color: var(--ink);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(0, 240, 216, 0.07);
}

.author-strip {
  display: flex;
  align-items: stretch;
  background: #060818;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.author-strip figure {
  flex: 1;
  min-width: 0;
  position: relative;
}

.author-strip figure + figure { border-left: 1px solid rgba(0, 240, 216, 0.35); }

.author-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: filter 0.3s, transform 0.4s;
}

.post-card:hover .author-strip img { filter: saturate(1.1); }

.author-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.6rem 0.45rem;
  background: linear-gradient(transparent, rgba(6, 8, 24, 0.92));
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-x {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 2.1rem; height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 240, 216, 0.3);
}

.post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.post-meta {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.7rem;
}

.kicker { color: var(--teal); }

.post-card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }

.post-excerpt {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink-dim);
  margin-bottom: 1.1rem;
  flex: 1;
}

.read-more {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.read-more span { display: inline-block; transition: transform 0.2s; }
.post-card:hover .read-more span { transform: translateX(4px); }

/* ---------- blog index / page head ---------- */

.page-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 1rem;
}

.page-sub {
  max-width: 580px;
  margin: 1.2rem auto 0;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--ink-dim);
}

/* ---------- post page ---------- */

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad) 1rem;
}

.post-head { text-align: center; margin-bottom: 2.6rem; }

.strip-large { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 1.8rem; }
.strip-large img { height: clamp(170px, 30vw, 260px); }
.strip-large[data-count="6"] img, .strip-large[data-count="5"] img { height: clamp(120px, 18vw, 190px); }
.strip-large[data-count="6"] figcaption, .strip-large[data-count="5"] figcaption { font-size: 0.5rem; letter-spacing: 0.08em; }

.post-head h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }

.post-dek {
  max-width: 600px;
  margin: 1.2rem auto 0;
  font-size: 1.16rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-dim);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  margin-bottom: 2.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-soon {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px dashed var(--line-bright);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.8rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-dim);
  background: rgba(13, 17, 48, 0.4);
}

.video-soon strong { color: var(--silver); font-weight: 700; }

.pulse-dot {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse-pt 2s ease-in-out infinite;
}

/* longform body */

.post-body {
  font-size: 1.17rem;
  font-weight: 300;
  line-height: 1.85;
  counter-reset: section;
}

.post-body p { margin-bottom: 1.4rem; }

.post-body h2 {
  counter-increment: section;
  font-size: 1.55rem;
  margin: 3rem 0 1.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.post-body h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.post-body h3 { margin: 2rem 0 0.9rem; }

.post-body strong { color: var(--silver); font-weight: 500; }
.post-body em { color: var(--silver); }

.post-body blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 2px solid var(--teal);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--silver);
}

.post-body blockquote p { margin-bottom: 0.4rem; }

.post-body ul, .post-body ol { margin: 0 0 1.4rem 1.4rem; }
.post-body li { margin-bottom: 0.6rem; }

.post-body hr {
  border: 0;
  height: 1px;
  margin: 2.6rem auto;
  width: 50%;
  background: linear-gradient(90deg, transparent, var(--violet-soft), rgba(0,240,216,.4), var(--violet-soft), transparent);
}

/* ---------- reading list ---------- */

.reading-list {
  max-width: 820px;
  margin: 0 auto;
}

.affiliate-note {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-dim);
  background: rgba(111, 26, 207, 0.08);
  border: 1px solid var(--violet-soft);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 3rem;
}

.affiliate-note strong { color: var(--silver); font-weight: 600; }

.rl-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
}

.rl-author {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.rl-books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.rl-book a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.rl-book a:hover {
  border-color: var(--teal-dim);
  background: rgba(0, 240, 216, 0.05);
  transform: translateX(2px);
}

.rl-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--silver);
}

.rl-go {
  flex: none;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}

.rl-book a:hover .rl-go { opacity: 1; color: var(--teal); }

@media (max-width: 560px) {
  .rl-book a { flex-direction: column; gap: 0.3rem; }
  .rl-go { opacity: 1; color: var(--ink-dim); }
}

.tag-row { margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

/* prev / next */

.post-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem var(--pad) 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 680px) { .post-nav { grid-template-columns: 1fr 1fr; } }

.post-nav-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.post-nav-link:hover { border-color: var(--teal-dim); }
.post-nav-link span {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.post-nav-link strong { font-family: var(--font-head); font-size: 0.92rem; font-weight: 600; color: var(--silver); }
.post-nav-link.next { text-align: right; }

/* ---------- newsletter ---------- */

.newsletter { padding-top: clamp(3rem, 8vh, 5rem); }

.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  padding: clamp(2.2rem, 6vw, 3.6rem);
  background:
    radial-gradient(ellipse 90% 110% at 50% -10%, rgba(111, 26, 207, 0.22), transparent 65%),
    radial-gradient(ellipse 60% 60% at 50% 115%, rgba(0, 240, 216, 0.07), transparent 70%),
    var(--void-soft);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.newsletter-sub {
  max-width: 480px;
  margin: 1rem auto 1.8rem;
  font-weight: 300;
  color: var(--ink-dim);
}

.signup {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
}

.signup input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 10, 26, 0.8);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup input:focus {
  border-color: var(--teal-dim);
  box-shadow: 0 0 0 3px rgba(0, 240, 216, 0.12);
}

.signup input::placeholder { color: rgba(235, 235, 235, 0.35); }

.signup button {
  background: var(--teal);
  color: #04251F;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 216, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.signup button:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 240, 216, 0.5); }
.signup button:disabled { opacity: 0.55; cursor: wait; transform: none; }

@media (max-width: 540px) {
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
}

.signup-msg {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}

.signup-msg.error { color: #FF7A9E; }

.signup-fine {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(235, 235, 235, 0.4);
}

/* ---------- lead magnet ---------- */

.lm-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse 80% 120% at 85% -10%, rgba(111, 26, 207, 0.24), transparent 62%),
    radial-gradient(ellipse 60% 80% at 0% 120%, rgba(0, 240, 216, 0.07), transparent 68%),
    var(--void-soft);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lm-cover {
  position: relative;
  line-height: 0;
}

.lm-cover img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-bright);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 240, 216, 0.06);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.lm-inner:hover .lm-cover img { transform: rotate(0deg) translateY(-4px); }

.lm-badge {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04251F;
  background: var(--teal);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(0, 240, 216, 0.4);
}

.lm-body h2 { margin: 0.3rem 0 0; }
.lm-body .lm-sub {
  margin: 0.9rem 0 1.1rem;
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 46ch;
}

.lm-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.lm-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--silver);
}

.lm-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--teal);
  font-size: 0.8rem;
}

.lm-body .signup { margin: 0; max-width: 440px; }
.lm-body .signup-msg,
.lm-body .signup-fine { text-align: left; }

.lm-download[hidden] { display: none; }

.lm-download {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(0, 240, 216, 0);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

/* Locked: visible so people see the reward, but not clickable until they subscribe. */
.lm-download.locked {
  color: var(--ink-dim);
  border: 1px solid var(--line-bright);
  cursor: not-allowed;
  opacity: 0.65;
}

.lm-download.locked::before {
  content: "🔒 ";
  font-size: 0.85em;
}

.lm-download.locked:hover {
  border-color: var(--teal-dim);
  color: var(--ink);
  opacity: 0.8;
}

/* Active: unlocked after a successful signup. */
.lm-download.active {
  color: var(--teal);
  border: 1px solid var(--teal-dim);
  animation: lm-pop 0.45s ease both;
}

.lm-download.active:hover {
  background: rgba(0, 240, 216, 0.1);
  box-shadow: 0 0 26px rgba(0, 240, 216, 0.3);
  transform: translateY(-2px);
}

@keyframes lm-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .lm-inner { grid-template-columns: 1fr; text-align: center; }
  .lm-cover { max-width: 240px; margin: 0 auto; }
  .lm-body .lm-sub { margin-left: auto; margin-right: auto; }
  .lm-points { text-align: left; max-width: 360px; margin-inline: auto; margin-bottom: 1.5rem; }
  .lm-body .signup { margin-inline: auto; }
  .lm-body .signup-msg,
  .lm-body .signup-fine { text-align: center; }
}

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

.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 2rem;
  background: linear-gradient(rgba(13, 17, 48, 0.3), rgba(6, 8, 24, 0.8));
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 480px; }
.footer-brand img { flex: 0 0 auto; filter: drop-shadow(0 0 16px rgba(111, 26, 207, 0.5)); }
.footer-brand p { font-size: 0.95rem; font-weight: 300; font-style: italic; color: var(--ink-dim); }

.footer-links {
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.footer-links a { color: var(--ink-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

.footer-line {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 235, 235, 0.35);
}

/* small screens */

@media (max-width: 640px) {
  .nav-brand span { display: none; }
  .nav-links a:not(.nav-cta) { font-size: 0.78rem; }
}
