*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --amber: #d4921f;
  --amber2: #e8a82a;
  --amber-light: #2a2010;
  --bg: #141210;
  --bg2: #1c1914;
  --bg3: #221e18;
  --ink: #f0e8d8;
  --ink2: #a89470;
  --ink3: #6a5c44;
  --border: rgba(180, 140, 60, 0.15);
  --border2: rgba(180, 140, 60, 0.08);
  --slate: #e8a82a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&display=swap');

/* subtle paper texture */
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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 58px;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-brand .dot {
  color: var(--amber);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--bg2);
}

.nav-cta {
  background: var(--amber);
  color: #141210 !important;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--amber2);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 2.5rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* decorative rule */
.hero::after {
  content: "";
  position: fixed;
  top: 0;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 120, 30, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease both;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
}

.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-title span {
  color: var(--amber);
  font-style: italic;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink2);
  max-width: 400px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.3s ease both;
}

.btn-primary {
  background: var(--amber);
  color: #141210;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--amber2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--amber);
  transform: translateY(-1px);
}

/* ── TERMINAL ── */
.hero-terminal {
  margin-top: 5rem;
  width: min(680px, 90vw);
  background: #0c0a08;
  border: 1px solid rgba(90,70,30,0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 32px 64px rgba(26, 22, 16, 0.14);
  animation: fadeUp 0.6s 0.4s ease both;
}

.terminal-bar {
  background: #231f18;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tdot:nth-child(1) { background: #ff5f57; }
.tdot:nth-child(2) { background: #febc2e; }
.tdot:nth-child(3) { background: #28c840; }
.terminal-title {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.25);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 1.1rem 1.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}
.log-line {
  display: flex;
  gap: 0.8rem;
}
.log-time { color: rgba(255,255,255,0.22); }
.log-ok   { color: #86efac; }
.log-info { color: #93c5fd; }
.log-msg  { color: rgba(255,255,255,0.55); }
.log-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--amber2);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 3px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── STATS ── */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  text-align: left;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: "DM Serif Display", serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--ink3);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── FEATURES ── */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

.section-eye {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eye::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--ink2);
  max-width: 380px;
  margin-bottom: 3.5rem;
  font-weight: 400;
  line-height: 1.75;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
}

.feat-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
}
.feat-card:hover {
  background: var(--amber-light);
}

.feat-num {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}
.feat-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feat-desc {
  font-size: 0.8rem;
  color: var(--ink2);
  line-height: 1.7;
  font-weight: 400;
}

/* ── CTA ── */
.cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem 7rem;
}
.cta-box {
  background: #0c0a08;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.cta-left { flex: 1; min-width: 220px; }
.cta-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.cta-sub {
  font-size: 0.85rem;
  color: var(--ink3);
}
.cta-box .btn-primary {
  background: var(--amber);
  color: #141210;
  white-space: nowrap;
}
.cta-box .btn-primary:hover {
  background: var(--amber2);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: "DM Serif Display", serif;
  font-size: 0.9rem;
  color: var(--ink3);
}
.footer-brand span { color: var(--amber); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--ink3);
  letter-spacing: 0.03em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
  }
  .feat-grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 1.5rem 4rem; }
  nav { padding: 0 1.5rem; }
  .cta-box { padding: 2.25rem 1.75rem; }
  footer { max-width: 100%; padding: 1.25rem 1.5rem; }
  .features { padding: 4.5rem 1.5rem; }
  .cta { padding: 0 1.5rem 4.5rem; }
}