/* The Dev's Desk — brand site
   Look: Dev's room at night. Deep plum base, soft plum / violet / teal glows
   (the same lights that sit behind Dev), mustard for actions (his mug),
   teal for highlights (his drawstrings). */

@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #150e22;
  --night-2: #1d1430;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f0fa;
  --soft: #b9afcb;
  --plum: #7a2f6b;
  --violet: #5b3fa8;
  --teal: #5fd8d2;
  --teal-deep: #1f8a8a;
  --mustard: #f0b431;
  --pink: #f27aa6;
  --gold: #f6cf6b;
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 1.04rem; line-height: 1.6; overflow-x: hidden; }
a { color: var(--teal); text-underline-offset: 3px; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* The room's lights: soft blurred glows behind everything */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow .g1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: var(--plum); }
.glow .g2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 18vh; background: var(--violet); opacity: .45; }
.glow .g3 { width: 40vmax; height: 40vmax; left: 20vw; bottom: -22vmax; background: var(--teal-deep); opacity: .4; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 26px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; margin: 0 0 26px; }
.hero h1 .line2 { display: block; color: transparent; background: linear-gradient(90deg, var(--teal), #a9e7c9 45%, var(--mustard)); -webkit-background-clip: text; background-clip: text; }
.hero .lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--soft); max-width: 31em; margin: 0 0 30px; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: .98rem; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--line); color: var(--text); background: var(--panel); }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.primary { background: var(--mustard); color: #24160a; border-color: var(--mustard); box-shadow: 0 10px 30px -10px rgba(240,180,49,.6); }
.btn.primary:hover { background: #f6c14c; }

/* The reel frame with Dev breathing in it: the one bold thing */
.reel { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 540 / 750; border-radius: 30px; overflow: hidden; background: #2a1736; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.8), 0 0 120px -20px rgba(95,216,210,.35); transform: rotate(2deg); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--head); font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: rgba(21,14,34,.72); color: var(--text); backdrop-filter: blur(6px); }
.reel .tag b { color: var(--teal); }

section { padding: 72px 0; }
.section-head { margin-bottom: 30px; }
h2 { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 10px; }
.section-head p { color: var(--soft); margin: 0; max-width: 38em; }

/* What this is */
.what .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.what p { margin: 0 0 16px; max-width: 34em; }
.what .points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.what .points li { padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.what .points b { display: block; font-family: var(--head); font-weight: 700; margin-bottom: 2px; }
.what .points span { color: var(--soft); }

/* The revenue counter, styled like the one on Dev's wall */
.counter { text-align: left; }
.board { display: inline-flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; padding: 26px 28px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.digits { display: flex; gap: 6px; font-family: var(--head); font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.digits span { display: grid; place-items: center; min-width: .78em; padding: .14em .08em; border-radius: 10px; background: #0e0918; box-shadow: inset 0 -2px 0 rgba(255,255,255,.06), inset 0 1px 0 rgba(0,0,0,.5); color: var(--teal); text-shadow: 0 0 18px rgba(95,216,210,.55); }
.digits span.sym, .digits span.sep { background: none; box-shadow: none; min-width: auto; padding: 0; color: var(--soft); text-shadow: none; }
.board .of { font-family: var(--head); font-weight: 600; color: var(--soft); font-size: 1.1rem; padding-bottom: 8px; }
.progress { margin-top: 26px; max-width: 760px; }
.bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: visible; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; min-width: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--mustard)); box-shadow: 0 0 16px rgba(95,216,210,.5); }
.marks { position: relative; height: 40px; margin-top: 8px; font-size: .8rem; color: var(--soft); }
.marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.marks span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 2px; height: 8px; background: rgba(255,255,255,.25); }
.marks span.hit { color: var(--mustard); font-weight: 600; }
.counter .note { color: var(--soft); font-size: .92rem; margin: 6px 0 0; }

/* Businesses */
.biz { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.biz li { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.biz .num { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: rgba(255,255,255,.25); width: 2.2ch; }
.biz h3 { font-family: var(--head); font-weight: 700; font-size: 1.18rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.biz p { margin: 0; color: var(--soft); font-size: .97rem; }
.biz .links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.biz .links a { font-family: var(--head); font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
.biz .links a.go { background: var(--mustard); border-color: var(--mustard); color: #24160a; }
.status { font-family: var(--head); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.status.live { background: rgba(95,216,210,.16); color: var(--teal); }
.status.next { background: rgba(240,180,49,.16); color: var(--mustard); }
.status.dead { background: rgba(255,255,255,.08); color: var(--soft); }
.biz li.grave { background: none; border-style: dashed; }

/* How every business is built: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; font-family: var(--head); font-weight: 800; background: var(--teal); color: var(--night); }
.steps h3 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--soft); }

/* Max's corner */
.max .card { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; padding: 26px; border-radius: 28px; background: linear-gradient(135deg, rgba(242,122,166,.16), rgba(246,207,107,.12)); border: 1px solid rgba(246,207,107,.25); }
.max img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; transform: rotate(-2deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.max blockquote { margin: 0 0 12px; font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--gold); }
.max .who { margin: 0 0 16px; color: var(--soft); }
.max .rule { margin: 0; font-weight: 600; }

/* Build log pages */
.log-hero { padding: 24px 0 40px; }
.log-hero .crumb { font-size: .92rem; margin: 0 0 16px; }
.log-hero .crumb a { color: var(--soft); }
.log-hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; }
.log-hero .lede { color: var(--soft); font-size: 1.15rem; max-width: 34em; margin: 0 0 20px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 0; }
.facts div { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--soft); }
.facts dd { margin: 2px 0 0; font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.log section { padding: 34px 0; }
.log h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.log p, .log li { max-width: 40em; }
.log ol, .log ul { padding-left: 22px; }
.log li { margin-bottom: 8px; }
.ledger { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .98rem; }
.ledger th, .ledger td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { font-family: var(--head); font-weight: 600; color: var(--soft); font-size: .85rem; }
.ledger td.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.small { font-size: .88rem; color: var(--soft); }
.lesson { padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.lesson b { font-family: var(--head); display: block; margin-bottom: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--soft); font-size: .92rem; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer p { margin: 0; max-width: 40em; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }

/* Phones */
@media (max-width: 880px) {
  .hero .wrap, .what .wrap { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding-bottom: 56px; }
  .reel { width: min(78%, 320px); }
  .steps { grid-template-columns: 1fr; }
  .max .card { grid-template-columns: 1fr; }
  .max img { max-width: 260px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  section { padding: 56px 0; }
  .biz li { grid-template-columns: 1fr; gap: 10px; }
  .biz .num { display: none; }
  .biz .links { justify-content: flex-start; }
  .board { padding: 20px; gap: 14px; }
  .ledger { font-size: .9rem; }
  .ledger td.amt { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
