@font-face {
  font-family: "Merriweather";
  src: url("Merriweather.woff2") format("woff2"),
    url("Merriweather.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoMono";
  src: url("RobotoMono.woff2") format("woff2"),
    url("RobotoMono.ttf") format("truetype");
  font-style: normal;
}

:root {
  --ground: #0b0906;
  --surface: #161109;
  --surface-2: #1f180f;
  --ink: #ede3d0;
  --ink-dim: #96897a;
  --ink-faint: #655b4f;
  --brass: #c7a468;
  --brass-bright: #e6c68b;
  --oxblood: #7a2f37;
  --hairline: rgba(199, 164, 104, .16);
  --hairline-strong: rgba(199, 164, 104, .36);
  --shadow: rgba(0, 0, 0, .5);
  --font-mono: RobotoMono, ui-monospace, monospace;
  --font-serif: Merriweather, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --bg:          #0f0b07;   /* warm near-black for code blocks / hero fallback */
  --hero-bg:     #241610;   /* warm brown hero */
  --surface:     #faf6ec;   /* warm cream sections (was #ffffff) */
  --surface-2:   #f2ebd9;   /* slightly deeper cream */
  --border:      #e6ddc9;   /* warm hairline (was #e0e0e0) */
  --text:        #241a12;   /* warm dark brown (was #111111) */
  --muted:       #6b5d4c;   /* warm taupe (was #555555) */
  --muted-light: #9a8b77;   /* warm light taupe (was #8e8e93) */
  --accent:      #8a6626;   /* dark brass, readable on cream (was #c1662f) */
  --accent-dim:  rgba(138, 102, 38, 0.10);
  --rule:        #ddd2ba;
  --font-sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}


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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* ── Top nav ── */

.topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
}

.topnav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.topnav a:hover {
  color: var(--brass-bright);
}

.topnav a::before {
  content: "← ";
}

/* ── Hero ── */

.hero {
  position: relative;
  background: var(--hero-bg);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--brass);
}

.hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.hero-publisher {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 56ch;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-tagline strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.platform-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ── Content sections ── */

.section {
  background: var(--surface);
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
}

.section p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.65;
  margin-bottom: 1rem;
}


.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 1.25rem;
}

.data-table thead tr {
  background: #2b2118;
}

.data-table thead th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.data-table tbody tr:hover {
  background: var(--accent-dim);
}

.data-table tbody tr.highlight {
  background: var(--accent-dim);
  box-shadow: inset 3px 0 0 var(--accent);
}

.data-table tbody tr.highlight td {
  font-weight: 600;
  color: var(--text);
}

.data-table td {
  padding: 0.55rem 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}

.data-table td:last-child {
  white-space: nowrap;
  font-family: var(--font-mono);
}

.table-note {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 0.9rem;
  line-height: 1.55;
}

/* ── Code blocks ── */

.code-block {
  background: var(--bg);
  color: #e8dfce;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.5rem;
  white-space: pre;
}

.code-block .cmt {
  color: var(--muted-light);
}

.code-block .prompt {
  color: var(--accent);
}

.hero-terminal {
  max-width: 640px;
  width: 100%;
  margin: 0 0 2.5rem;
  background: #16100c;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: block;
}

.hero-terminal pre {
  margin: 0;
  padding: 1.1rem 1.25rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #d8d0c8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-terminal .cmt { color: #87786a; }
.hero-terminal .prompt { color: var(--accent); }
.hero-terminal .out { color: #f5eee6; }

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.feature-grid p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Inquire strip ── */

.inquire-strip {
  background: var(--hero-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.inquire-inner {
  max-width: 560px;
  margin: 0 auto;
}

.inquire-inner h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.inquire-inner p {
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.link-accent, a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

footer {
  padding: 2.6rem clamp(1.5rem, 5vw, 4rem) 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--hairline);
}

footer .mark {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-faint);
}

footer .mark svg {
  width: 15px;
  height: 15px;
  opacity: .7;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero {
    padding: 6rem 1.25rem 5rem;
    min-height: 80vh;
  }

  .section, .inquire-strip {
    padding: 2.5rem 1.25rem;
  }

  footer {
    text-align: left;
    padding: 1.25rem;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* **************************** */
#term {
  background: #0c0c0c;
  color: #33ff33;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.4;
  padding: 1rem;
  height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #333;
  border-radius: 4px;
}

#term:focus {
  outline: 2px solid #33ff33;
  outline-offset: -1px;
}

#term::after {
  content: "\2588"; /* U+2588 FULL BLOCK */
  color: #33ff33;
  animation: term-cursor-blink 1s steps(1, end) infinite;
}

#term:not(:focus)::after {
  opacity: 0.35;
  animation: none;
}

@keyframes term-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* **************************** */

.beta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.75rem;
  position: relative;
  top: -0.6rem;
}

 /* ── Purchase strip ── */

.buy-strip {
  max-width: 760px;
  margin: 1rem auto;
  padding: 1rem 2rem;
  text-align: center;
  animation: slide-in-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.buy-strip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}

.buy-strip h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.buy-strip p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* ── Screenshot ── */

.screenshot-section {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
  animation: slide-in-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1b1410;
  border: 1px solid #2a2018;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a3d2e;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

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

.screenshot-grid img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}


/* features */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-item {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
}

.faq-item dt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.faq-item dd {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}


.timeline {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.command-line {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--ink);
  margin: 1rem 0 1rem 0;
  padding: .5rem;
}

/* Burin Button */

.manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.manual-btn:hover {
  color: var(--bg);
  border-color: var(--accent);
}

.manual-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 3D Viewer */

.viewer-container {
  position: relative;
   max-width: 760px;
    margin: 0 auto 2.5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

.viewer-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  z-index: 10;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.viewer-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinner ring */
.viewer-spinner {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 1.5rem;
}

.viewer-spinner::before,
.viewer-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.viewer-spinner::before {
  border-top-color: var(--accent);
  animation: viewer-spin 0.8s linear infinite;
}

.viewer-spinner::after {
  border-bottom-color: rgba(0, 160, 172, 0.25);
  animation: viewer-spin 1.2s linear infinite reverse;
}

@keyframes viewer-spin {
  to { transform: rotate(360deg); }
}

/* Loading text */
.viewer-loading-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.3rem;
}

.viewer-loading-file {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #555;
  margin-bottom: 1.25rem;
}

/* Progress bar */
.viewer-progress-track {
  width: 200px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.viewer-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.viewer-progress-pct {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 0.05em;
}

/* Status badge (shown after load) */
.viewer-status {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.viewer-status.hidden {
  opacity: 0;
}
