/* ─── Reset & base ─────────────────────────────────────────────────────────── */

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

:root {
  --bg:           #0F0F0A;
  --surface:      #1A1A12;
  --surface-hi:   #242418;
  --border:       #2E2E22;
  --text:         #F2EDE4;
  --text-muted:   #8A8478;
  --amber:        #E8A020;
  --green:        #5BAD6F;
  --error:        #E05252;
  --radius:       12px;
  --radius-pill:  999px;
  --max:          1100px;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ─── Layout helpers ───────────────────────────────────────────────────────── */

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--tight { padding: 48px 0; }

/* ─── Nav ──────────────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  border: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--amber); color: #000; }
.btn-secondary { background: var(--surface-hi); color: var(--text); border: 1px solid var(--border); }
.btn-green     { background: var(--green); color: #000; }
.btn-disabled  { background: var(--surface-hi); color: var(--text-muted); border: 1px solid var(--border); cursor: not-allowed; opacity: 0.5; }

/* ─── App cards ────────────────────────────────────────────────────────────── */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.app-card:hover { border-color: var(--amber); }
.app-card--green:hover { border-color: var(--green); }

.app-card-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.app-icon--amber { background: rgba(232,160,32,0.12); }
.app-icon--green { background: rgba(91,173,111,0.12); }

.app-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.app-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-dot--amber { background: var(--amber); }
.feature-dot--green { background: var(--green); }

/* Screenshot placeholder */
.screenshot-placeholder {
  background: var(--surface-hi);
  border-top: 1px solid var(--border);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.screenshot-placeholder .icon { font-size: 32px; opacity: 0.4; }

.app-card-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Video section placeholder ────────────────────────────────────────────── */

.video-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
}

.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* ─── Features strip ───────────────────────────────────────────────────────── */

.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-tile-icon { font-size: 24px; margin-bottom: 12px; }
.feature-tile h3   { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-tile p    { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Section headers ──────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Divider ──────────────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .app-card-header { padding: 24px 20px 20px; }
  .app-card-footer { padding: 16px 20px; }
  .nav-links { display: none; }
}
