*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0e0e0c;
  --bg-2:      #141412;
  --bg-3:      #1c1c19;
  --bg-4:      #242420;
  --rule:      #2e2e2a;
  --rule-lt:   #3a3a35;
  --gold:      #c4973f;
  --gold-lt:   #d4aa5a;
  --gold-dim:  #7a5c24;
  --text:      #e8e4dc;
  --text-mid:  #8a8578;
  --text-dim:  #8a8478;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(14,14,12,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}
.nav-logo-name span { color: var(--gold); }
.nav-logo-tagline {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}
.nav-center {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-right a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 8px 18px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-right a:hover { background: var(--gold); color: var(--bg); }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  padding: 152px 48px 96px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 40px;
}
.hero-stats { display: flex; gap: 48px; }
.stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ─── FRAMEWORK CARDS ─────────────────────────────── */
.frameworks-list { max-width: 1440px; margin: 0 auto; }

.framework-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  min-height: 600px;
}
.framework-entry:nth-child(even) .entry-visual { order: -1; }

.entry-info {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.entry-number {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  color: var(--rule-lt);
  line-height: 1;
  margin-bottom: 24px;
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.entry-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-3);
  border: 1px solid var(--rule-lt);
  padding: 4px 10px;
  border-radius: 2px;
}
.entry-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.entry-link-out {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-top: 6px;
  transition: color 0.2s;
}
.entry-link-out:hover { color: var(--gold-lt); }
.entry-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text);
}
.entry-subtitle {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.entry-url {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-family: 'Courier New', monospace;
  margin-bottom: 32px;
  display: block;
}
.entry-body h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  margin-top: 28px;
}
.entry-body h4:first-child { margin-top: 0; }
.entry-body p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.75;
}
.entry-body ul { list-style: none; padding: 0; }
.entry-body ul li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 3px 0 3px 14px;
  position: relative;
}
.entry-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 10px;
}
.entry-best-for {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.best-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(196,151,63,0.08);
  border: 1px solid rgba(196,151,63,0.2);
  padding: 4px 10px;
  border-radius: 2px;
}
.entry-cta {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn-primary {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); }


/* ─── PREVIEW PANEL ───────────────────────────────── */
.entry-visual {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.framework-entry:nth-child(even) .entry-visual {
  border-left: none;
}
.preview-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border-radius: 10px 10px 0px 0px;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rule-lt);
}
.preview-url-bar {
  flex: 1;
  margin: 0 14px;
  background: var(--bg-4);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
}
.preview-open {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.preview-open:hover { color: var(--gold-lt); }

/* iframe-clip / template-iframe — exact match to LaunchMD reference */
.iframe-clip {
  height: 365px;
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0px 0px 10px 10px;
}
.template-iframe {
  border: none;
  width: calc(100% / 0.445312);
  height: calc(365px / 0.445312);
  transform: scale(0.445312);
  transform-origin: left top;
  display: block;
  pointer-events: none;
}
.iframe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(14,14,12,0.5) 0%, transparent 60%);
}
.iframe-cta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(14,14,12,0.75);
  border: 1px solid var(--rule-lt);
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.iframe-cta:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ─── COMPARISON TABLE ────────────────────────────── */
.comparison-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
}
.comparison-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.comparison-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1.1;
}
.comparison-title em { font-style: italic; color: var(--gold); }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--rule-lt); }
thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 16px 12px 0;
  font-weight: 400;
}
tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
tbody tr:hover { background: var(--bg-3); }
tbody td {
  padding: 16px 16px 16px 0;
  font-size: 13px;
  color: var(--text-mid);
  vertical-align: middle;
}
td:first-child {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}
.tbl-num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
  margin-right: 8px;
}
.tbl-link {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.tbl-link:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

/* ─── CTA SECTION ─────────────────────────────────── */
.cta-section {
  background: var(--bg-3);
  border-top: 1px solid var(--rule);
  padding: 96px 48px;
  text-align: center;
}
.cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-body {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.btn-cta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--gold-lt); }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.footer-brand {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.footer-brand span { color: var(--gold); }
.footer-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.footer-nav { display: flex; gap: 32px; position: sticky; }
.footer-nav a {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-center { display: none; }
  .hero { grid-template-columns: 1fr; padding: 120px 24px 64px; }
  .framework-entry { grid-template-columns: 1fr; }
  .framework-entry:nth-child(even) .entry-visual { order: unset; }
  .framework-entry .entry-visual,
  .framework-entry:nth-child(even) .entry-visual {
    border-left: none; border-right: none;
    border-top: 1px solid var(--rule);
  }
  .entry-info { padding: 48px 24px; }
  .comparison-section { padding: 64px 24px; }
  .cta-section { padding: 64px 24px; }
  footer { flex-direction: column; gap: 24px; padding: 32px 24px; text-align: center; }
  .footer-nav { justify-content: center; }
  table { display: block; overflow-x: auto; }
}
