@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=IBM+Plex+Mono:wght@300;400;500&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink:       #0b0e17;
  --paper:     #f5f0e8;
  --gold:      #c9a84c;
  --gold-lt:   #e8c96a;
  --gold-dk:   #8a6a1f;
  --slate:     #1a2035;
  --slate-mid: #2a3350;
  --steel:     #8899b4;
  --green:     #1db87a;
  --red:       #e05252;
  --white:     #ffffff;
  --rule:      rgba(201,168,76,0.25);

  --serif:  'Playfair Display', Georgia, serif;
  --body:   'Source Serif 4', Georgia, serif;
  --mono:   'IBM Plex Mono', monospace;

  --max: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
img { display: block; max-width: 100%; }

/* ─── TICKER BAR ─────────────────────────────────────────────── */
.ticker-bar {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.35rem 0;
  position: relative;
  z-index: 100;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 45s linear infinite;
}
.ticker-inner span { margin: 0 2rem; }
.ticker-inner .up   { color: #1a5c38; }
.ticker-inner .down { color: #7a1a1a; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── MASTHEAD / NAV ─────────────────────────────────────────── */
.masthead {
  background: var(--slate);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 99;
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.masthead-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.masthead-logo em { color: var(--gold); font-style: normal; }
.masthead-logo span {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--steel);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: -3px;
}
nav { display: flex; gap: 1.75rem; align-items: center; }
nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }
nav a.cta-nav {
  background: var(--gold);
  color: var(--ink);
  padding: 0.4rem 1rem;
  font-weight: 500;
  transition: background 0.2s;
}
nav a.cta-nav:hover { background: var(--gold-lt); color: var(--ink); }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--paper); margin: 5px 0;
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--slate);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(29,184,122,0.05) 0%, transparent 60%);
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem,8vw,6rem) var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--steel);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 2rem;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-lt); color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── HERO ILLUSTRATION: TERMINAL CARD ──────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.terminal-card {
  background: var(--ink);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  font-family: var(--mono);
  font-size: 0.72rem;
  position: relative;
}
.terminal-card::before {
  content: '● ● ●';
  display: block;
  color: var(--gold-dk);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  font-size: 0.6rem;
}
.t-line { margin: 0.4rem 0; color: var(--steel); }
.t-line .label { color: var(--gold); }
.t-line .val   { color: var(--white); }
.t-line .val.up   { color: var(--green); }
.t-line .val.dn   { color: var(--red); }
.t-divider { border: none; border-top: 1px solid var(--rule); margin: 0.75rem 0; }
.t-headline {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.5rem 0;
}
.t-cursor {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--gold);
  animation: blink 1s step-end infinite;
  vertical-align: -1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── SECTION COMMONS ────────────────────────────────────────── */
section { padding: clamp(3rem, 7vw, 5rem) var(--gap); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-title em { color: var(--gold); font-style: italic; }
.section-lead {
  font-size: 1rem;
  color: var(--steel);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ─── STATS ROW ──────────────────────────────────────────────── */
.stats-row {
  background: var(--slate);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ─── COVERAGE GRID ──────────────────────────────────────────── */
.coverage { background: var(--ink); }
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.coverage-card {
  background: var(--slate);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.coverage-card:hover { background: var(--slate-mid); }
.cov-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.cov-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.cov-body {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.7;
}

/* ─── DOMAIN FEATURE ─────────────────────────────────────────── */
.domain-feature { background: var(--slate); }
.domain-box {
  border: 1px solid var(--gold);
  padding: 3rem;
  text-align: center;
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.domain-box::before,
.domain-box::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold-lt);
  border-style: solid;
}
.domain-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.domain-box::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.domain-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.domain-name em { color: var(--gold); font-style: normal; }
.domain-tagline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 2rem;
}
.domain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--steel);
  padding: 0.3rem 0.75rem;
}
.badge.highlight { border-color: var(--gold); color: var(--gold); }

/* ─── USE CASES ──────────────────────────────────────────────── */
.use-cases { background: var(--ink); }
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.use-item {
  background: var(--ink);
  padding: 2rem 2.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.use-item:hover { background: var(--slate); }
.use-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}
.use-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.use-body { font-size: 0.87rem; color: var(--steel); line-height: 1.7; }

/* ─── BLOG PREVIEW ───────────────────────────────────────────── */
.blog-preview { background: var(--slate); }
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.blog-card {
  background: var(--ink);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.blog-card:hover { background: var(--slate-mid); }
.blog-card.featured { background: var(--slate); }
.blog-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.blog-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  flex: 1;
}
.blog-card.featured .blog-title { font-size: 1.5rem; }
.blog-excerpt {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--gold-dk);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ─── OFFER / CTA ────────────────────────────────────────────── */
.offer-section {
  background: var(--ink);
  border-top: 1px solid var(--rule);
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.offer-price-card {
  border: 1px solid var(--gold);
  padding: 2.5rem;
  position: relative;
}
.price-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.price-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--steel);
  margin-bottom: 1.75rem;
}
.trust-list { list-style: none; margin-bottom: 1.75rem; }
.trust-list li {
  font-size: 0.85rem;
  color: var(--steel);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-list li::before { content: '✓'; color: var(--green); font-family: var(--mono); font-size: 0.7rem; }
.platforms {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem;
}
.platform-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  color: var(--steel);
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--slate);
  border-top: 1px solid var(--rule);
  padding: 3rem var(--gap) 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--steel);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-dk);
  text-transform: uppercase;
}

/* ─── PAGE-SPECIFIC HERO VARIANTS ────────────────────────────── */
.page-hero {
  background: var(--slate);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gap);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: attr(data-title);
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(201,168,76,0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  white-space: nowrap;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p {
  font-size: 1rem;
  color: var(--steel);
  max-width: 600px;
  line-height: 1.8;
}

/* ─── ARTICLE STYLES ─────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gap);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body p {
  font-size: 0.97rem;
  color: var(--steel);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.article-body p strong { color: var(--paper); }
.article-body .pullquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--paper);
  background: var(--slate);
}
.sidebar-widget {
  background: var(--slate);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.sidebar-link {
  display: block;
  font-size: 0.85rem;
  color: var(--steel);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}
.sidebar-link:hover { color: var(--paper); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; }
  .hero-visual      { display: none; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .coverage-grid    { grid-template-columns: 1fr 1fr; }
  .blog-grid        { grid-template-columns: 1fr; }
  .offer-grid       { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .article-grid     { grid-template-columns: 1fr; }
  .use-grid         { grid-template-columns: 1fr; }
  nav .hide-mobile  { display: none; }
  .hamburger        { display: block; }
}
@media (max-width: 600px) {
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .coverage-grid    { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr; }
  .domain-box       { padding: 1.75rem 1.25rem; }
}
