
/* ─── RESET ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}

/* ─── TOKENS ─── */
:root{
  --bg:        #0c0e0b;
  --bg2:       #111410;
  --bg3:       #161a13;
  --border:    rgba(255,255,255,.06);
  --border2:   rgba(255,255,255,.10);
  --text:      #dde5d4;
  --muted:     #b7ff85;
  --hint:      #d7d7d7;
  --accent:    #8ecf7e;
  --accent2:   #b6e0a8;
  --accent-bg: rgba(142,207,126,.08);
  --accent-bd: rgba(142,207,126,.18);
  --mono:      'JetBrains Mono', monospace;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'Onest', sans-serif;
  --r:         10px;
  --r-lg:      16px;
}

/* ─── BASE ─── */
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── BACKGROUND GRID ─── */
body::before{
  content:'';
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(142,207,126,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,207,126,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:none;
  z-index:0;
}

/* ─── NOISE GRAIN ─── */
body::after{
  content:'';
  position:fixed;
  inset:-200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain{
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-2%,-3%)}
  20%{transform:translate(3%,2%)}
  30%{transform:translate(-1%,4%)}
  40%{transform:translate(4%,-1%)}
  50%{transform:translate(-3%,1%)}
  60%{transform:translate(2%,3%)}
  70%{transform:translate(-4%,-2%)}
  80%{transform:translate(1%,-4%)}
  90%{transform:translate(3%,4%)}
}

/* ─── LAYOUT ─── */
.page{
  position:relative;
  z-index:1;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ─── NAV ─── */
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  margin-bottom: 72px;
}
.nav-logo{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
  text-decoration: none;
}
.nav-logo span{color: var(--muted)}
.nav-tag{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
  letter-spacing: .06em;
}

/* ─── HERO ─── */
.hero{ margin-bottom: 64px; }

.hero-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}
.hero-label::before{
  content:'';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(.8)}
}

.hero-title{
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 49px);
  font-weight: 400;
  line-height: 1.1;
  color: #f0f5eb;
  margin-bottom: 24px;
  letter-spacing: -.02em;
  animation: fadeUp .7s .1s ease both;
}
.hero-title em{
  font-style: italic;
  color: var(--accent);
}
.hero-title .line-dim{
  color: var(--muted);
  display: block;
}

.hero-sub{
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
  animation: fadeUp .7s .2s ease both;
}
.hero-sub strong{
  color: var(--text);
  font-weight: 500;
}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

/* ─── DIVIDER ─── */
.sep{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0;
  animation: fadeUp .7s .3s ease both;
  opacity: 0;
  animation-fill-mode: both;
}
.sep-line{ flex:1; height:1px; background: var(--border); }
.sep-label{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hint);
  letter-spacing: .08em;
}

/* ─── WHAT YOU GET ─── */
.items{
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 48px;
  animation: fadeUp .7s .35s ease both;
  opacity:0;animation-fill-mode:both;
}

.item{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.item::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width: 2px;
  background: transparent;
  transition: background .2s;
}
.item:hover{ background: var(--bg3); border-color: var(--border2); }
.item:hover::before{ background: var(--accent); }
.item:first-child{ border-radius: var(--r) var(--r) 4px 4px; }
.item:last-child{ border-radius: 4px 4px var(--r) var(--r); }

.item-icon{
  width: 36px; height: 36px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.item-content{ flex:1 }
.item-title{
  font-size: 15px;
  font-weight: 500;
  color: #eef3e8;
  margin-bottom: 3px;
  line-height: 1.35;
}
.item-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.item-tag{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--hint);
  letter-spacing: .06em;
  margin-top: 6px;
  display: block;
}

/* ─── STATS ROW ─── */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 48px;
  animation: fadeUp .7s .4s ease both;
  opacity:0;animation-fill-mode:both;
}
.stat{
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.stat-val{
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-lbl{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* ─── FORM BLOCK ─── */
.form-block{
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: fadeUp .7s .45s ease both;
  opacity:0;animation-fill-mode:both;
  box-shadow: 0 0 0 1px rgba(142,207,126,.04), 0 32px 64px rgba(0,0,0,.4);
    margin: 0 0 20px;
}
.form-header{
  padding: 28px 28px 0;
  margin-bottom: 4px;
}
.form-pretitle{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-title{
  font-family: var(--serif);
  font-size: 22px;
  color: #f0f5eb;
  margin-bottom: 8px;
  line-height: 1.25;
}
.form-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: normal;
    margin-bottom: 7px;
}

/* ─── SUBSTACK IFRAME WRAPPER ─── */
.substack-wrap{
  padding: 16px 16px 16px;
}

/* Override Substack embed styles */
.substack-wrap iframe{
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  background: transparent !important;
  min-height: 180px;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
}

/* ─── GUARANTEE ─── */
.guarantee{
  padding: 14px 28px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.guarantee-icon{ font-size: 14px; color: var(--muted); flex-shrink:0; }
.guarantee-text{
  font-size: 12px;
  color: var(--hint);
  line-height: 1.5;
}
.guarantee-text strong{ color: var(--muted); font-weight:500; }

/* ─── WHO IS THIS FOR ─── */
.who{
  margin: 56px 0;
  animation: fadeUp .7s .5s ease both;
  opacity:0;animation-fill-mode:both;
}
.who-title{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hint);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.who-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.who-card{
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
}
.who-card::before{
  content: '//';
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hint);
  margin-right: 6px;
}

/* ─── AUTHOR ─── */
.author{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 56px;
  animation: fadeUp .7s .55s ease both;
  opacity:0;animation-fill-mode:both;
}
.author-avatar{
  width: 48px; height: 48px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  font-style: italic;
}
.author-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px;
}
.author-bio a {
    color: antiquewhite;
}
.author-content{ flex:1 }
.author-name{
  font-size: 14px;
  font-weight: 500;
  color: #eef3e8;
  margin-bottom: 2px;
}
.author-role{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hint);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.author-bio{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer{
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeUp .7s .6s ease both;
  opacity:0;animation-fill-mode:both;
}
.footer-copy{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hint);
}
.footer-link{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover{ color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 480px){
  .nav{ margin-bottom: 48px; }
  .hero-title{ font-size: 36px; }
  .stats{ grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat{ padding: 12px 8px; }
  .stat-val{ font-size: 20px; }
  .stat-lbl{ font-size: 10px; }
  .who-grid{ grid-template-columns: 1fr; }
  .form-header{ padding: 20px 20px 0; }
  .substack-wrap{ padding: 16px 12px 12px; }
  .guarantee{ padding: 12px 20px 16px; }
  .author{ flex-direction: column; gap: 12px; }
  .footer{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px){
  .stats{ grid-template-columns: 1fr; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar{ width: 4px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--border2); border-radius: 2px; }