/* ── TOKENS ── */
:root {
  --ink:          #0d1117;
  --paper:        #f4f1eb;
  --paper2:       #ede9e0;
  --steel:        #4682b4;
  --steel-light:  #7aabcf;
  --steel-dark:   #2d5f8a;
  --accent:       #e05a2b;
  --gold:         #c9973a;
  --green:        #3a7a4a;
  --muted:        #7a7265;
  --border:       rgba(70,130,180,0.18);
  --card-bg:      rgba(255,255,255,0.55);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(244,241,235,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--steel-dark);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--steel); }
.nav-cta {
  background: var(--steel); color: white !important;
  padding: 0.45rem 1.1rem; border-radius: 4px;
}
.nav-cta:hover { background: var(--steel-dark) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 5px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-outline {
  background: transparent; color: var(--steel-dark);
  border: 1.5px solid var(--steel);
}
.btn-outline:hover { background: var(--steel); color: white; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color: white;
  box-shadow: 0 4px 18px rgba(224,90,43,0.25);
}
.btn-accent:hover { background: #c0461f; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(224,90,43,0.38); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 3rem 4rem; gap: 4rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -120px; top: -80px;
  width: 680px; height: 680px;
  background: radial-gradient(circle at 60% 40%, rgba(70,130,180,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--steel);
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--steel); }
.hero-sub {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--muted); max-width: 480px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero card */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-grid-card {
  background: var(--card-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); position: relative;
}
.hgc-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem;
}
.mesh-svg-wrap {
  width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #1a2a3a 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.mesh-svg-wrap svg { width: 85%; height: 85%; }
.gyroid-path {
  stroke: #4682b4; stroke-width: 0.8; fill: none;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: draw 3s ease forwards;
}
.gyroid-path:nth-child(2) { stroke: #7aabcf; animation-delay: 0.4s; }
.gyroid-path:nth-child(3) { stroke: #e05a2b; stroke-width: 0.5; animation-delay: 0.8s; }
.gyroid-path:nth-child(4) { stroke: #4682b4; animation-delay: 1.2s; }
.gyroid-path:nth-child(5) { stroke: #7aabcf; stroke-width: 0.5; animation-delay: 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hgc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.hgc-stat {
  background: var(--paper2); border-radius: 8px;
  padding: 0.6rem 0.5rem; text-align: center;
}
.hgc-stat-val {
  font-family: 'DM Mono', monospace; font-size: 1.1rem;
  font-weight: 500; color: var(--steel); display: block;
}
.hgc-stat-label { font-size: 0.68rem; color: var(--muted); }
.hero-badge {
  position: absolute; bottom: -18px; right: 12px;
  background: var(--ink); color: white;
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  padding: 0.45rem 0.8rem; border-radius: 6px;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-badge span { color: var(--steel-light); }

/* ── MARQUEE ── */
.marquee-section {
  background: var(--ink); padding: 0.9rem 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex; gap: 3rem; animation: marquee 28s linear infinite; white-space: nowrap;
}
.marquee-track span {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); flex-shrink: 0;
}
.marquee-track span.hi { color: var(--steel-light); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION COMMON ── */
section { padding: 6rem 3rem; }
.section-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--steel); }
.section-sub {
  font-size: 1rem; line-height: 1.75; color: var(--muted);
  max-width: 560px; margin-bottom: 3rem;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--ink);
  padding-bottom: 5rem;
}
.features-section .section-title { color: white; }
.features-section .section-eyebrow { color: var(--steel-light); }
.features-section .section-sub { color: rgba(255,255,255,0.5); max-width: 620px; }

.features-intro { margin-bottom: 3.5rem; }

/* feat-block wrapper */
.feat-block {
  margin-bottom: 2.5rem;
}
.feat-block-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.feat-block-label {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
}

/* ── ARCH GRID ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.arch-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1rem 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.arch-card:hover {
  background: rgba(70,130,180,0.1);
  border-color: rgba(70,130,180,0.3);
  transform: translateY(-3px);
}
.arch-card--accent {
  border-color: rgba(201,151,58,0.25);
  background: rgba(201,151,58,0.05);
}
.arch-card--accent:hover { border-color: rgba(201,151,58,0.5); background: rgba(201,151,58,0.1); }

.arch-icon { width: 40px; height: 40px; margin-bottom: 0.8rem; }
.arch-name {
  font-family: 'DM Serif Display', serif; font-size: 1rem;
  color: white; margin-bottom: 0.4rem;
}
.arch-desc {
  font-size: 0.76rem; line-height: 1.55;
  color: rgba(255,255,255,0.45); margin-bottom: 0.8rem;
}
.arch-nets { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.net-tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  background: rgba(70,130,180,0.15);
  border: 1px solid rgba(70,130,180,0.25);
  color: var(--steel-light);
  border-radius: 4px;
}
.net-tag--adv {
  background: rgba(201,151,58,0.15);
  border-color: rgba(201,151,58,0.3);
  color: var(--gold);
}

/* ── CAPABILITIES GRID ── */
.caps-grid {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}
.cap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cap-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1.1rem 1.3rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.cap-item:last-child { border-right: none; }
.cap-item:hover { background: rgba(255,255,255,0.04); }

.cap-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.cap-dot--both { background: #5cb85c; box-shadow: 0 0 6px rgba(92,184,92,0.5); }
.cap-dot--adv  { background: var(--gold); box-shadow: 0 0 6px rgba(201,151,58,0.5); }
.cap-dot--soon { background: rgba(255,255,255,0.15); border: 1px dashed rgba(255,255,255,0.25); box-shadow: none; }

.cap-item--soon { opacity: 0.45; }
.cap-item--soon:hover { opacity: 0.65 !important; }
.cap-title--soon {
  font-style: italic;
  color: rgba(255,255,255,0.4) !important;
  letter-spacing: 0.02em;
}

.cap-title { font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 500; margin-bottom: 0.15rem; }
.cap-note  { font-size: 0.74rem; color: rgba(255,255,255,0.35); line-height: 1.4; }

.cap-divider {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem 1.3rem;
  background: rgba(201,151,58,0.06);
  border-top: 1px solid rgba(201,151,58,0.12);
  border-bottom: 1px solid rgba(201,151,58,0.12);
}
.cap-divider span {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
}
.cap-adv { background: rgba(201,151,58,0.03); }
.cap-adv:hover { background: rgba(201,151,58,0.07) !important; }

/* ── TOPO CALLOUT ── */
.topo-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-top: 2rem;
}
.topo-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem; line-height: 1;
  color: var(--steel-light);
}
.topo-num--adv   { color: var(--gold); }
.topo-num--total { color: white; }
.topo-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.5;
}
.topo-label span { color: rgba(255,255,255,0.2); font-size: 0.72rem; }
.topo-sep {
  font-family: 'DM Serif Display', serif; font-size: 2rem;
  color: rgba(255,255,255,0.15);
}

/* ══════════════════════════════════════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════════════════════════════════════ */
.pricing-section { background: var(--paper2); }

/* single-line title variant */
.section-title--inline { white-space: nowrap; }

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
}

/* card shell — now horizontal */
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.pricing-card--adv {
  background: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 40px rgba(201,151,58,0.18);
}

/* golden ambient glow */
.pc-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle at 0% 50%, rgba(201,151,58,0.12) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* left column — identity + CTA */
.pc-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 210px;
  max-width: 210px;
  padding: 1.4rem 1.4rem 1.4rem;
  border-right: 1px solid var(--border);
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.pricing-card--adv .pc-left { border-color: rgba(255,255,255,0.07); }

.pc-header { margin-bottom: 1.2rem; }

.pc-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.65rem;
}
.pc-badge--free { background: var(--paper2); color: var(--muted); }
.pc-badge--adv  { background: rgba(201,151,58,0.2); color: var(--gold); border: 1px solid rgba(201,151,58,0.3); }

.pc-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--ink); margin-bottom: 0.3rem; line-height: 1.1;
}
.pricing-card--adv .pc-name { color: white; }

.pc-price {
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem; font-weight: 500; color: var(--ink);
}
.pricing-card--adv .pc-price { color: white; }
.pc-price sub { font-size: 0.72rem; color: var(--muted); font-weight: 300; }
.pricing-card--adv .pc-price sub { color: rgba(255,255,255,0.35); }

/* body — the feature list */
.pc-body {
  flex: 1;
  padding: 1.4rem 1.6rem;
  position: relative; z-index: 1;
  display: flex; align-items: flex-start;
}

.pc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  width: 100%;
}
.pc-list li {
  font-size: 0.82rem; line-height: 1.4;
  display: flex; align-items: flex-start; gap: 0.45rem;
}
.pc-list li::before { flex-shrink: 0; margin-top: 1px; font-size: 0.78rem; }
.pc-list li.yes { color: var(--muted); }
.pc-list li.yes::before { content: '✓'; color: var(--green); }
.pc-list li.no  { color: rgba(0,0,0,0.2); }
.pc-list li.no::before  { content: '–'; color: rgba(0,0,0,0.15); }
/* advanced card list */
.pricing-card--adv .pc-list li.yes { color: rgba(255,255,255,0.55); }
.pricing-card--adv .pc-list li.yes::before { color: #5cb85c; }
.pricing-card--adv .pc-list li.yes.adv { color: rgba(255,255,255,0.85); }
.pricing-card--adv .pc-list li.yes.adv::before { content: '✦'; color: var(--gold); }

/* footer CTA */
.pc-footer { position: relative; z-index: 1; }
.pc-btn { width: 100%; justify-content: center; font-size: 0.82rem; padding: 0.6rem 1rem; }

/* ══════════════════════════════════════════════════════════════════════
   DEMOS SECTION
══════════════════════════════════════════════════════════════════════ */
.demos-section {
  background: var(--paper);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.demo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

.demo-video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d1117 0%, #12202e 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.demo-card:hover .demo-video-placeholder {
  background: linear-gradient(135deg, #12202e 0%, #1a2f45 100%);
}
.demo-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(70,130,180,0.25);
  border: 1px solid rgba(70,130,180,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-light); font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  padding-left: 3px; /* optical center */
}
.demo-card:hover .demo-play {
  background: rgba(70,130,180,0.45);
  transform: scale(1.08);
}
.demo-placeholder-label {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

.demo-meta { padding: 1rem 1.1rem 1.2rem; }
.demo-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  background: rgba(70,130,180,0.1);
  border: 1px solid rgba(70,130,180,0.2);
  color: var(--steel); border-radius: 4px;
  margin-bottom: 0.5rem;
}
.demo-tag--adv {
  background: rgba(201,151,58,0.1);
  border-color: rgba(201,151,58,0.25);
  color: var(--gold);
}
.demo-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem; color: var(--ink);
  margin-bottom: 0.3rem; line-height: 1.3;
}
.demo-desc {
  font-size: 0.78rem; color: var(--muted); line-height: 1.55;
}

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 3rem; }
.footer-inner {
  display: flex; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-brand .nav-logo { display: block; margin-bottom: 0.7rem; font-size: 1.5rem; }
.footer-brand p {
  font-size: 0.82rem; line-height: 1.7;
  color: rgba(255,255,255,0.35); max-width: 280px;
}
.footer-links { display: flex; gap: 3rem; }
footer h5 {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: 'DM Mono', monospace; color: rgba(255,255,255,0.7); margin-bottom: 1rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
footer ul li a {
  text-decoration: none; font-size: 0.85rem;
  color: rgba(255,255,255,0.4); transition: color 0.2s;
}
footer ul li a:hover { color: var(--steel-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
  font-family: 'DM Mono', monospace;
}

/* ── SCROLL FADE ── */
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .arch-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-row { grid-template-columns: 1fr 1fr; }
  .section-title--inline { white-space: normal; }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 5rem 1.5rem 3rem; }
  .hero-visual { display: none; }
  section { padding: 4rem 1.5rem; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  /* stack cards vertically on mobile */
  .pricing-card { flex-direction: column; }
  .pc-left { min-width: unset; max-width: unset; border-right: none; border-bottom: 1px solid var(--border); }
  .pricing-card--adv .pc-left { border-color: rgba(255,255,255,0.07); }
  .pc-list { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr 1fr; }
  .cap-row { grid-template-columns: 1fr; }
  .topo-callout { flex-wrap: wrap; gap: 1rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 600px) {
  .arch-grid { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; }
}