/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #F6F6F3;
  --dark: #0B0D12;
  --dark-2: #14161D;
  --text: #14161B;
  --muted: #656B76;
  --muted-2: #9A9FA8;
  --border: #E7E7E2;
  --border-dark: rgba(255,255,255,0.1);
  --accent: #FF6A3D;
  --accent-dim: #FFEDE5;
  --radius: 2px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1200px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.wrap.narrow { max-width: 760px; }
.wrap.center { text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 20px;
  height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 10px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { opacity: 0.9; }

.btn-ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex: 1;
  justify-content: center;
}
.nav-links a:hover { color: var(--text); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(255,106,61,0.28) 0%, transparent 65%);
  filter: blur(10px);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 42%, transparent 78%);
}
.hero-inner {
  position: relative;
  padding-top: 140px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #FFB199;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,106,61,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,106,61,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255,106,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); }
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 900px;
}
.hero-title .highlight {
  position: relative;
  color: #fff;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 6px;
  height: 0.28em;
  background: rgba(255,106,61,0.55);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.stat-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.stat {
  padding: 20px 12px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat-label {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 15px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.ticker-track span::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  margin-left: 40px;
  background: var(--accent);
  vertical-align: middle;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #fff; border-color: var(--border-dark); }
.section.dark .eyebrow { color: #FFB199; }
.section.dark .section-sub,
.section.dark p { color: rgba(255,255,255,0.6); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.section-title {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 780px;
}
.section-sub {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Pillars */
.pillar-grid {
  margin-top: 56px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 800px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.pillar:hover { background: var(--bg-alt); }
.icon-box {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  color: var(--accent);
}
.pillar-tag {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.pillar h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.pillar p { margin-top: 12px; font-size: 0.94rem; line-height: 1.6; color: var(--muted); }

/* Split sections */
.split-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split-inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-inner.rev { grid-template-columns: 1fr 1fr; }
}

.visual-card {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--dark);
  border: 1px solid var(--border);
  overflow: hidden;
}
.visual-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px 4px rgba(255,106,61,0.5);
}
.n1 { top: 18%; left: 13%; } .n2 { top: 48%; left: 48%; width:16px; height:16px; }
.n3 { top: 20%; left: 84%; } .n4 { top: 78%; left: 14%; }
.n5 { top: 76%; left: 84%; } .n6 { top: 48%; left: 48%; opacity: 0; }
.node-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.node-lines line { stroke: rgba(255,106,61,0.35); stroke-width: 1.2; }
.visual-tag {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  padding: 7px 12px;
  backdrop-filter: blur(6px);
}
.visual-tag .dot { width:6px; height:6px; border-radius:50%; background: var(--accent); }

.feature-list { margin-top: 44px; display: grid; gap: 30px; }
@media (min-width: 600px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
.feature { display: flex; gap: 14px; }
.feature svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.feature h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin-top: 6px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* Hardware mini + spec */
.mini-grid { margin-top: 40px; display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.mini { border-left: 2px solid var(--accent); padding-left: 16px; }
.mini svg { color: var(--text); }
.mini h4 { margin-top: 12px; font-size: 1rem; font-weight: 700; }
.mini p { margin-top: 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.spec-sheet { border: 1px solid var(--border); background: var(--bg); }
.spec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.spec-head svg { color: var(--accent); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.spec { background: var(--bg); padding: 20px 22px; }
.spec-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.spec-val { margin-top: 8px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.spec-note { margin-top: 3px; font-size: 0.78rem; color: var(--muted-2); }

/* Use cases */
.usecase-grid {
  margin-top: 48px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase { background: var(--bg); padding: 30px 28px; transition: background 0.2s ease; }
.usecase:hover { background: var(--bg-alt); }
.usecase h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; }
.usecase p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* Process */
.process-list { margin-top: 48px; }
.process-row {
  display: grid;
  gap: 8px;
  padding: 30px 0;
  border-top: 1px solid var(--border-dark);
}
@media (min-width: 720px) {
  .process-row { grid-template-columns: 70px 220px 1fr; align-items: baseline; gap: 32px; }
}
.p-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.process-row h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.process-row p { font-size: 0.92rem; line-height: 1.6; max-width: 480px; }

/* Testimonial */
.quote-mark { color: var(--accent); margin: 0 auto; }
blockquote {
  margin-top: 24px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote-attr {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Contact */
.contact-section { border-bottom: none; }
.contact-inner { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.contact-meta {
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--muted-2); }

/* Footer */
.site-footer { background: var(--bg); padding: 40px 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--muted-2); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Article (Founder's Note) ---------- */
.article-header { padding: 88px 0 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }
.article-header h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 820px;
}
.article-dek {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.5;
}

.article-body {
  padding: 56px 0 100px;
}
.article-body .wrap { max-width: 720px; }
.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-body h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.numbered-list {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px;
}
.numbered-list .item { display: flex; gap: 16px; }
.numbered-list .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.numbered-list p { margin: 0; font-size: 0.98rem; line-height: 1.65; }
.numbered-list strong { color: var(--text); }

.condition-grid {
  margin: 32px 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .condition-grid { grid-template-columns: 1fr 1fr; } }
.condition-grid .cond { background: var(--bg); padding: 22px; }
.condition-grid .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.condition-grid p { margin: 10px 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.article-signoff {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Comparison table ---------- */
.compare-scroll {
  margin-top: 48px;
  overflow-x: auto;
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--bg);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.compare-table td:nth-child(2) { color: var(--muted); }
.compare-table th.highlight, .compare-table td.highlight {
  background: var(--accent-dim);
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid var(--border);
}
.compare-table thead th.highlight { color: var(--accent); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
}
