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

:root {
  --bg:          #0d0d0d;
  --hero-bg:     #241610;
  --surface:     #ffffff;
  --border:      #e0e0e0;
  --text:        #111111;
  --muted:       #555555;
  --muted-light: #8e8e93;
  --accent:      #c1662f;
  --accent-dim:  rgba(193, 102, 47, 0.12);
  --rule:        #d1d1d6;
  --font-mono:   "SF Mono", "Fira Mono", "Cascadia Code", ui-monospace, monospace;
  --font-sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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(--accent);
}

.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(--accent);
}

.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(--accent);
  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 tables ── */

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

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

.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: #f5f5f7;
}

.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: #e5e5e7;
  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: #6b6b6b; }
.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 ── */

footer {
  padding: 1.5rem 2rem;
  text-align: right;
}

footer small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ── 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; }
}
/* **************************** */
