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

:root {
  --amber: #f5a623;
  --amber-light: #ffc857;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --amber-border: rgba(245, 166, 35, 0.25);
  --glass: rgba(12, 12, 14, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-light: rgba(255, 255, 255, 0.03);
  --text: #f0f0f0;
  --text-dim: #8a8a8e;
  --bg: #08080a;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--amber), #e08a10);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.3);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 30%, var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Download buttons ── */
.download-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), #e08a10);
  color: #0a0a0a;
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border-color: var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--amber-border);
  background: rgba(20, 20, 22, 0.9);
  transform: translateY(-1px);
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.note a {
  color: var(--amber);
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.feature {
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--amber-dim);
  color: var(--amber);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ── Demo window ── */
.demo {
  max-width: 480px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.demo-window {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(30px);
}

.demo-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.demo-dots span:first-child { background: rgba(255, 80, 80, 0.5); }
.demo-dots span:nth-child(2) { background: rgba(245, 166, 35, 0.5); }
.demo-dots span:nth-child(3) { background: rgba(80, 200, 80, 0.5); }

.demo-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
}

.demo-user {
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  color: var(--amber-light);
  align-self: flex-end;
}

.demo-assistant {
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  align-self: flex-start;
}

.demo-assistant strong {
  color: var(--text);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 48px 24px 32px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .hero { padding: 48px 20px 32px; }
  .download-row { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .features { padding: 0 20px; }
  .demo { padding: 0 20px; }
}
