
/* ============================================================
   PROFIT ENGINE — editorial intelligence terminal
   Display: Fraunces · Body: Newsreader · Data/UI: JetBrains Mono
   ============================================================ */
:root {
  --bg:        #0a0c0b;
  --bg-1:      #0f1311;
  --bg-2:      #141917;
  --bg-3:      #1a201d;
  --ink:       #eae3d6;
  --paper:     #ece7da;
  --fg:        #e7e3d8;
  --fg-dim:    #9aa39a;
  --fg-faint:  #5d655d;
  --accent:    #4fe08a;
  --accent-dk: #2fae63;
  --accent-gl: rgba(79,224,138,.14);
  --amber:     #f3b34a;
  --rose:      #ff7a6b;
  --line:      #20262300;
  --hair:      #232a26;
  --hair-2:    #2f3833;
  --radius:    3px;
  --maxw:      1080px;
  --read:      710px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
/* atmospheric depth: faint top glow + grid + vignette */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(79,224,138,.07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.014) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.014) 39px 40px);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(130% 110% at 50% 30%, transparent 60%, rgba(0,0,0,.55));
  pointer-events: none;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #8af0b4; }
::selection { background: var(--accent-gl); color: #fff; }

/* ── Header / terminal topbar ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10,12,11,.72);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.brand:hover { color: var(--ink); }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-gl);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,224,138,.5); }
  70% { box-shadow: 0 0 0 9px rgba(79,224,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,224,138,0); }
}
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-header nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--fg-dim);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-transform: lowercase;
}
.site-header nav a:hover { color: var(--ink); background: var(--bg-2); }

/* ── Layout containers ────────────────────────────────── */
main.prose { max-width: var(--read); margin: 0 auto; padding: 40px clamp(18px,4vw,24px) 80px; }
main.wide  { max-width: var(--maxw); margin: 0 auto; padding: 24px clamp(18px,4vw,40px) 80px; }

main.prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 8px 0 20px; color: var(--ink); }
main.prose h2 { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.01em; margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--ink); }
main.prose h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 30px 0 8px; color: var(--ink); }
main.prose p { margin: 16px 0; color: var(--fg); }
main.prose ul, main.prose ol { padding-left: 22px; }
main.prose li { margin: 7px 0; }
main.prose > p:first-of-type::first-letter,
article > p:first-of-type::first-letter { /* drop cap on lead para */ }

.meta { color: var(--fg-faint); font-size: 13px; font-family: var(--mono); letter-spacing: .02em; }
.breadcrumb { font-family: var(--mono); font-size: 12.5px; text-transform: lowercase; margin-bottom: 4px; }
.breadcrumb a { color: var(--fg-dim); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(40px, 9vw, 96px) 0 36px; position: relative; }
.hero .kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
}
.hero .kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 8.5vw, 92px);
  line-height: .96;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .lead {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Ticker ───────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--bg-1);
  overflow: hidden; white-space: nowrap;
  margin: 40px 0 0;
}
.ticker-inner { display: inline-flex; gap: 0; padding: 11px 0; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-item { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); padding: 0 22px; border-right: 1px solid var(--hair); display: inline-flex; align-items: center; gap: 8px; }
.ticker-item b { color: var(--ink); font-weight: 500; }
.ticker-item .up { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section headings (wide) ──────────────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 64px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.sec-head h2 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.sec-head .more { font-family: var(--mono); font-size: 12.5px; text-transform: lowercase; color: var(--fg-dim); }
.sec-head .more:hover { color: var(--accent); }

/* ── Feed / cards ─────────────────────────────────────── */
.feed { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.feed .card { background: var(--bg-1); border: 0; border-radius: 0; padding: 22px 22px 20px; transition: background .18s ease, transform .18s ease; position: relative; }
.feed .card:hover { background: var(--bg-2); }
.feed .card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .2s ease; }
.feed .card:hover::before { transform: scaleY(1); }
.card .ctag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 11px; display: block; }
.card h3, .card strong { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; display: block; margin: 0 0 12px; color: var(--ink); }
.card a { color: var(--ink); }
.card a:hover { color: var(--accent); }
.card .meta { display: block; margin-top: 10px; }

/* simple cards grid (lists) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cards .card { background: var(--bg-1); border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px; transition: border-color .18s ease, transform .18s ease; }
.cards .card:hover { border-color: var(--hair-2); transform: translateY(-2px); }
.cards .card strong { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; display: block; margin-bottom: 8px; color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: .01em;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--accent); color: #07140c; font-weight: 700;
  border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: #07140c; background: #6cf0a2; transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent-gl); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent); }

/* ── Inline subscribe (footer CTA) ────────────────────── */
.cta { margin: 72px 0 0; padding: 40px clamp(22px,4vw,44px); background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--hair); border-radius: var(--radius); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, var(--accent-gl), transparent 70%); pointer-events: none; }
.cta h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.cta p { color: var(--fg-dim); margin: 0 0 20px; font-size: 16px; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.signup label { flex: 1 1 220px; }
.signup input[type=email] { width: 100%; padding: 13px 15px; border: 1px solid var(--hair-2); background: var(--bg); color: var(--ink); border-radius: var(--radius); font-family: var(--mono); font-size: 14px; }
.signup input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-gl); }
.signup button { padding: 13px 22px; background: var(--accent); color: #07140c; border: 0; border-radius: var(--radius); cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 13.5px; transition: background .15s ease; }
.signup button:hover { background: #6cf0a2; }
.signup .meta { flex-basis: 100%; margin-top: 4px; }

/* ── Pricing ──────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.tier { background: var(--bg-1); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.tier h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 40px -16px var(--accent-gl); }
.tier.featured h3 { color: var(--accent); }
.tier .price { font-family: var(--display); font-size: 40px; font-weight: 600; color: var(--ink); margin: 0 0 16px; letter-spacing: -.02em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.tier li { padding: 8px 0 8px 22px; position: relative; color: var(--fg); font-size: 15.5px; border-bottom: 1px solid var(--hair); }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* ── Article prose niceties ───────────────────────────── */
article.body, main.prose article { }
main.prose blockquote { margin: 22px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--fg-dim); font-style: italic; font-size: 17px; }
main.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 36px 0; }
main.prose a { border-bottom: 1px solid var(--accent-gl); }
main.prose a:hover { border-bottom-color: var(--accent); }
pre { background: var(--bg-1); border: 1px solid var(--hair); padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 13.5px; }
code { font-family: var(--mono); background: var(--bg-2); padding: 2px 6px; border-radius: var(--radius); font-size: .86em; color: #cfe9d6; }
pre code { background: transparent; padding: 0; color: var(--fg); }

/* ── Tables (status) ──────────────────────────────────── */
table.stats { width: 100%; border-collapse: collapse; margin: 14px 0 30px; font-family: var(--mono); font-size: 13px; }
table.stats th, table.stats td { padding: 11px 12px; border-bottom: 1px solid var(--hair); text-align: left; }
table.stats th { color: var(--fg-dim); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 500; }
table.stats td { color: var(--fg); }
table.stats td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
table.stats tr:hover td { background: var(--bg-1); }

/* ── Product page ─────────────────────────────────────── */
.product-cover { width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--radius); margin: 8px 0 20px; display: block; }
.buybar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 28px; padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--hair); border-radius: var(--radius); }
.btn.buy { font-size: 15px; padding: 14px 26px; }
.buybar .secure { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }

/* ── Ad zone ──────────────────────────────────────────── */
.ad-zone { margin: 30px 0; padding: 16px; border: 1px dashed var(--hair-2); border-radius: var(--radius); min-height: 60px; text-align: center; color: var(--fg-faint); font-family: var(--mono); font-size: 12px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hair); margin-top: 80px; background: var(--bg-1); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px clamp(18px,4vw,40px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-inner .fbrand { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--ink); }
.footer-inner p { color: var(--fg-faint); font-size: 14px; margin: 12px 0 0; max-width: 36ch; }
.fcol h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; }
.fcol a { display: block; color: var(--fg-dim); font-size: 14px; padding: 5px 0; }
.fcol a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid var(--hair); padding: 18px clamp(18px,4vw,40px); max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-base, .footer-base a { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }
.footer-base a:hover { color: var(--accent); }

/* ── Load reveal ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal:nth-child(2){ animation-delay:.06s } .reveal:nth-child(3){ animation-delay:.12s }
  .reveal:nth-child(4){ animation-delay:.18s } .reveal:nth-child(5){ animation-delay:.24s }
  .reveal:nth-child(6){ animation-delay:.3s }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 13vw, 56px); }
}
