/* ------------------------------------------------------------------
   B2B Startup Marketing — dark theme
   bg        #050708   near-black ground
   panel     #0C1113   raised surfaces
   border    rgba(255,255,255,.08) hairlines
   text      #F2F5F4 primary / #9AA7A3 muted
   teal      #00C49B brand accent, glows + gradients to #3DDCCB
   Type: Geist. White primary buttons, ghost secondaries.
-------------------------------------------------------------------*/
:root {
  --bg: #050708;
  --panel: #0C1113;
  --panel-2: #10171A;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #F2F5F4;
  --muted: #9AA7A3;
  --teal: #00C49B;
  --teal-soft: #3DDCCB;
  --max: 1160px;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-soft); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.025em; }
::selection { background: rgba(0, 196, 155, .35); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0A0C0D;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 24px; border-radius: 999px;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { opacity: .88; }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { opacity: 1; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.btn--sm { padding: 8px 18px; font-size: 14px; }

/* Pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; color: var(--muted);
  background: rgba(255,255,255,.03); text-decoration: none;
}
.pill b { color: var(--text); font-weight: 500; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
a.pill:hover { border-color: rgba(0,196,155,.5); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5,7,8,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { text-decoration: none; color: var(--text); font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.wordmark i {
  width: 13px; height: 20px; background: linear-gradient(180deg, var(--teal-soft), var(--teal));
  display: inline-block;
  clip-path: polygon(0 100%, 0 45%, 50% 0, 100% 45%, 100% 100%, 50% 62%);
  filter: drop-shadow(0 0 8px rgba(0,196,155,.6));
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------------- Hero ---------------- */
.hero { position: relative; text-align: center; padding: 110px 0 90px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 35%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,196,155,.22), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; margin: 26px auto 0;
  max-width: 16em; text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255,255,255,.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .dek { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 38em; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* The book — CSS object with glow */
.book-stage { display: flex; justify-content: center; perspective: 1500px; margin-top: 74px; position: relative; }
.book-stage::before {
  content: ""; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,196,155,.30), transparent 72%);
  filter: blur(34px);
}
.book {
  position: relative; width: 290px; height: 425px;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(4deg);
  animation: book-in 1.2s cubic-bezier(.2,.7,.2,1) both;
  transition: transform .5s ease;
}
.book-stage:hover .book { transform: rotateY(-10deg) rotateX(2deg); }
@keyframes book-in {
  from { transform: rotateY(-70deg) rotateX(8deg) translateY(20px); opacity: 0; }
  to   { transform: rotateY(-24deg) rotateX(4deg) translateY(0); opacity: 1; }
}
.book .cover {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #121A1E, #0A0F12 60%);
  border: 1px solid rgba(0,196,155,.35);
  border-radius: 4px 12px 12px 4px;
  padding: 26px 24px; display: flex; flex-direction: column;
  box-shadow: inset 5px 0 14px rgba(0,0,0,.6), 0 0 60px rgba(0,196,155,.14);
  backface-visibility: hidden;
}
.book .spine {
  position: absolute; left: 0; top: 0; width: 40px; height: 100%;
  background: #070B0D; border: 1px solid rgba(0,196,155,.25);
  transform: rotateY(-90deg) translateZ(20px) translateX(-20px);
  border-radius: 4px 0 0 4px;
}
.book .pages {
  position: absolute; right: 0; top: 5px; width: 36px; height: calc(100% - 10px);
  background: repeating-linear-gradient(to right, #E9E6DD 0 2px, #C9C6BC 2px 3px);
  transform: rotateY(90deg) translateZ(calc(290px - 18px)) translateX(18px);
  border-radius: 0 2px 2px 0;
}
.cover .bars { display: flex; align-items: flex-end; gap: 7px; height: 88px; margin-bottom: 28px; }
.cover .bars i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--teal-soft), var(--teal)); box-shadow: 0 0 12px rgba(0,196,155,.5); }
.cover .bars i:nth-child(1) { height: 22%; opacity: .4; box-shadow: none; }
.cover .bars i:nth-child(2) { height: 38%; opacity: .55; box-shadow: none; }
.cover .bars i:nth-child(3) { height: 55%; opacity: .7; }
.cover .bars i:nth-child(4) { height: 74%; opacity: .85; }
.cover .bars i:nth-child(5) { height: 100%; }
.cover .t { color: #fff; font-weight: 700; font-size: 32px; line-height: 1.06; letter-spacing: -0.02em; }
.cover .s { color: var(--teal-soft); font-weight: 500; font-size: 15px; margin-top: 12px; }
.cover .a { margin-top: auto; color: rgba(255,255,255,.6); font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }

/* ---------------- Sections ---------------- */
section { position: relative; }
.section-pad { padding: 104px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 700;
  background: linear-gradient(180deg, #FFFFFF 40%, rgba(255,255,255,.6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel), rgba(12,17,19,.6));
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px; transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: rgba(0,196,155,.45); background: var(--panel-2); }
.card .ic {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(0,196,155,.10); border: 1px solid rgba(0,196,155,.3);
  color: var(--teal-soft);
}
.card .ic svg { width: 18px; height: 18px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------- Award band ---------------- */
.award { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.award .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.award h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700;
  background: linear-gradient(90deg, #FFFFFF, rgba(255,255,255,.55));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.award .lede { color: var(--muted); font-size: 17px; margin: 0 0 30px; }
.award ul { list-style: none; margin: 0; padding: 0; }
.award li {
  position: relative; padding: 14px 0 14px 32px; font-size: 16.5px; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.award li:first-child { border-top: 1px solid var(--border); }
.award li::before {
  content: ""; position: absolute; left: 0; top: 23px; width: 13px; height: 13px;
  background: linear-gradient(180deg, var(--teal-soft), var(--teal));
  clip-path: polygon(0 100%, 0 45%, 50% 0, 100% 45%, 100% 100%, 50% 62%);
  filter: drop-shadow(0 0 6px rgba(0,196,155,.6));
}

/* ---------------- Author ---------------- */
.author-card {
  position: relative; border-radius: 16px; padding: 1px; overflow: hidden;
  background: linear-gradient(140deg, rgba(0,196,155,.5), rgba(255,255,255,.08) 40%, rgba(255,255,255,.08) 60%, rgba(61,220,203,.35));
}
.author-card > div { background: var(--panel); border-radius: 15px; padding: 56px; }
.author-card .who { color: var(--teal-soft); font-weight: 500; font-size: 15px; margin: 0 0 10px; }
.author-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.author-card .bio { color: #C5CFCB; font-size: 17.5px; line-height: 1.7; margin: 18px 0 0; }
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ledger div { border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; background: rgba(255,255,255,.02); }
.ledger b {
  display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--teal-soft), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ledger span { color: var(--muted); font-size: 13.5px; }

/* ---------------- Final CTA ---------------- */
.buy { text-align: center; padding: 130px 0 120px; overflow: hidden; border-top: 1px solid var(--border); }
.buy::before {
  content: ""; position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,196,155,.2), transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.buy .wrap { position: relative; }
.buy h2 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 700;
  background: linear-gradient(180deg, #FFFFFF 35%, rgba(255,255,255,.5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.buy p { color: var(--muted); font-size: 17px; margin: 0 auto 34px; max-width: 32em; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--text); }
.site-footer svg { width: 18px; height: 18px; display: block; }

/* ---------------- Blog ---------------- */
.page-head { padding: 84px 0 36px; }
.page-head h1 {
  font-size: clamp(38px, 5vw, 60px); font-weight: 700; margin: 0;
  background: linear-gradient(180deg, #FFFFFF 40%, rgba(255,255,255,.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-list { list-style: none; margin: 0 0 100px; padding: 0; display: grid; gap: 14px; }
.post-list a {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: baseline;
  padding: 26px 28px; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), rgba(12,17,19,.5));
  transition: border-color .2s ease, background .2s ease;
}
.post-list a:hover { border-color: rgba(0,196,155,.45); background: var(--panel-2); }
.post-meta { font-size: 13.5px; color: var(--muted); }
.post-meta .cat { color: var(--teal-soft); font-weight: 500; display: block; margin-bottom: 2px; }
.post-list h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; margin: 0 0 6px; letter-spacing: -0.015em; }
.post-list p { margin: 0; color: var(--muted); font-size: 15px; max-width: 48em; }

/* ---------------- Article ---------------- */
.article { padding: 72px 0 110px; }
.article .wrap { max-width: 740px; }
.article h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; margin: 14px 0 14px;
  background: linear-gradient(180deg, #FFFFFF 40%, rgba(255,255,255,.6));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.article .byline { color: var(--muted); font-size: 14.5px; margin-bottom: 42px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article .byline b { color: var(--teal-soft); font-weight: 500; }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; font-weight: 650; margin-top: 1.7em; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 1.5em; }
.prose p, .prose li { color: #C5CFCB; }
.prose a { color: var(--teal-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose .btn { text-decoration: none; color: #0A0C0D; }
.prose img { border-radius: var(--r); border: 1px solid var(--border); }
.book-promo {
  margin-top: 64px; border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 34px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), rgba(12,17,19,.4));
}
.book-promo::before {
  content: ""; position: absolute; top: -90px; right: -60px; width: 300px; height: 220px;
  background: radial-gradient(closest-side, rgba(0,196,155,.18), transparent 70%); filter: blur(24px);
}
.book-promo h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.book-promo p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------------- 404 ---------------- */
.notfound { text-align: center; padding: 150px 0; }
.notfound h1 {
  font-size: 110px; font-weight: 700; margin: 0;
  background: linear-gradient(180deg, var(--teal-soft), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound p { color: var(--muted); font-size: 18px; margin: 6px 0 34px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .award .wrap { grid-template-columns: 1fr; gap: 40px; }
  .author-card > div { padding: 36px 28px; }
}
@media (max-width: 620px) {
  .hero { padding: 72px 0 70px; }
  .grid, .ledger { grid-template-columns: 1fr; }
  .section-pad { padding: 72px 0; }
  .book { width: 240px; height: 352px; }
  .book .pages { transform: rotateY(90deg) translateZ(calc(240px - 18px)) translateX(18px); }
  .cover .t { font-size: 26px; }
  .cover .bars { height: 64px; margin-bottom: 20px; }
  .post-list a { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .buy { padding: 90px 0; }
  .nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .book { animation: none; }
  .book-stage:hover .book { transform: rotateY(-24deg) rotateX(4deg); }
  html { scroll-behavior: auto; }
}
