/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --border: rgba(255,255,255,0.07);
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --green: #22c55e;
  --radius: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--text);
  font-family: var(--mono);
}

.logo-dot {
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.nav-links a {
  transition: color 0.2s;
}

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

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-2);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 64px;
}

.cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Terminal ─────────────────────────────────────────── */
.terminal-wrap { margin-bottom: 0; }

.terminal {
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #111114;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.line { display: flex; gap: 10px; }

.prompt { color: var(--accent); user-select: none; }

.cmd { color: #e2e8f0; }

.output { color: var(--text-2); padding-left: 20px; }
.output.success { color: var(--green); }

.cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Story ────────────────────────────────────────────── */
.story {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 64px;
  align-items: start;
}

.story-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 8px;
  position: sticky;
  top: 100px;
}

.story-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 40px;
}

.story-text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 620px;
}

.story-text strong { color: var(--text); }
.story-text em { color: var(--text); font-style: italic; }

.story-closer {
  color: var(--text) !important;
  font-weight: 500;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 16px !important;
  margin-top: 32px !important;
}

/* ── Apps ─────────────────────────────────────────────── */
.apps {
  padding: 80px 0 120px;
}

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

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

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.app-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.app-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
}

.app-card--soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.app-card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.app-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color);
}

.app-icon {
  width: 26px;
  height: 26px;
}

.app-platform {
  display: block;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.app-meta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.app-meta p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.app-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.app-tag {
  padding: 3px 9px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-3);
}

.app-tag.muted { opacity: 0.5; }

.app-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.app-card:hover .app-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-logo .logo-mark {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links { display: none; }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-label { position: static; }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
