@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --dark:   #2C2418;
  --dark2:  #3A3128;
  --light:  #F5F0E8;
  --light2: #EDE6DA;
  --ink:    #3B2F20;
  --muted:  #8C7E6E;
  --red:    #B5651D;
  --red2:   #C87533;
  --white:  #FFFDF8;
  --border-dark:  rgba(255,245,230,0.12);
  --border-light: rgba(60,47,32,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--light);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* custom cursor */
.cursor {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s, height 0.2s;
}
.cursor.hover {
  width: 36px; height: 36px;
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: 50%;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(44,36,24,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
}
.nav-logo span { color: var(--red2); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--red);
  color: #fff !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red2) !important; color: #fff !important; }

/* ── HERO (dark) ── */
.hero {
  background: var(--dark);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

/* subtle grid bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-right: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 1.8rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red2);
}

.hero-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.8rem;
}
.hero-title .accent { color: var(--red2); display: block; }

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 44ch;
  margin-bottom: 2.8rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO RIGHT ── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 4rem 3rem;
  position: relative;
  z-index: 1;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-img-wrap img {
  width: 100%; display: block;
  border: 1px solid var(--border-dark);
}
/* red accent line */
.hero-img-wrap::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 1px solid var(--red);
  opacity: 0.3;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--red);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 3rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 1;
  animation: nudge 2.5s ease-in-out infinite;
}
@keyframes nudge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--red);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-dark {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--dark2); }

.btn-outline-dark {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-dark:hover { border-color: var(--ink); }

/* ── SECTION BASE ── */
.section {
  padding: 6rem 3rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* light section */
.section-light { background: var(--light); }
/* slightly off-white */
.section-off   { background: var(--light2); }
/* dark section */
.section-dark  { background: var(--dark2); color: #fff; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--red);
}

.section-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--red); }
.section-dark .section-title { color: #fff; }

.section-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 60ch;
}
.section-dark .section-body { color: rgba(255,255,255,0.55); }

/* ── SPLIT LAYOUT (image + text) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-img {
  position: relative;
}
.split-img img {
  width: 100%; display: block;
  border: 1px solid var(--border-light);
}
.section-dark .split-img img { border-color: var(--border-dark); }

.split-img::after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 60%; height: 60%;
  border: 1px solid var(--red);
  opacity: 0.25;
  pointer-events: none;
}

.split-text { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── FEATURE CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  margin-top: 3rem;
}
.section-dark .card-grid {
  background: var(--border-dark);
  border-color: var(--border-dark);
}

.card {
  background: var(--light);
  padding: 2rem;
}
.section-dark .card { background: var(--dark); }

.card-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.card-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.section-dark .card-title { color: #fff; }
.card-body {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
}
.section-dark .card-body { color: rgba(255,255,255,0.45); }

/* ── SCREENSHOT STRIP ── */
.screenshot-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  margin-top: 3rem;
}
.section-dark .screenshot-strip {
  background: var(--border-dark);
  border-color: var(--border-dark);
}

.shot {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.8);
  min-height: 200px;
}
.shot:hover img { transform: scale(1.04); filter: brightness(1); }
.shot-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.shot:hover .shot-label { opacity: 1; transform: translateY(0); }

/* ── RULE LIST ── */
.rule-list { list-style: none; border-top: 1px solid var(--border-light); }
.section-dark .rule-list { border-top-color: var(--border-dark); }
.rule-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  align-items: start;
}
.section-dark .rule-list li { border-bottom-color: var(--border-dark); color: rgba(255,255,255,0.5); }
.rule-list li .num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  padding-top: 3px;
}

/* ── INFO BOX ── */
.info-box {
  border: 1px solid var(--border-light);
  padding: 2rem 2.5rem;
  background: var(--light2);
}
.info-box .box-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.info-box p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ── CTA BAND (dark) ── */
.cta-band {
  background: var(--dark);
  padding: 5rem 3rem;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}

/* ── INNER PAGE WRAPPER ── */
.page-hero {
  background: var(--dark);
  padding: 9rem 3rem 5rem;
  border-bottom: 1px solid var(--border-dark);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }

.page-hero h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--red2); }
.page-hero .subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1.2rem;
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}
.footer-left strong { color: rgba(255,255,255,0.7); font-weight: 700; }
.footer-right {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
  line-height: 1.7;
}

/* ── PAGE TRANSITION ── */
.page-transition-overlay {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9000;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 0 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .hero-left { padding-right: 0; }
  .hero-right { display: none; }
  .section { padding: 4rem 1.5rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr; }
  .screenshot-strip { grid-template-columns: 1fr; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 4rem 1.5rem; }
}
