/* HumanKey landing — deep cosmos palette, amber accents. */

:root {
  --bg: #0A0614;
  --surface: #141022;
  --surface-alt: #1B1630;
  --text: #EBE7F4;
  --text-muted: #A39BC0;
  --text-dim: #6E668A;
  --amber: #F59E0B;
  --amber-light: #FDE68A;
  --amber-bright: #FBBF24;
  --primary: #7C5CFF;
  --shadow: #E85A8C;
  --border: rgba(245, 158, 11, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: radial-gradient(ellipse at top, #1E1B4B 0%, #0A0614 60%);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

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

h1, h2, h3 {
  font-family: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  color: var(--text);
  margin-top: 0;
}

/* ------------------- NAV ------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 6, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; font-size: 17px;
  letter-spacing: 0.5px;
}
.brand-mark {
  display: inline-block; width: 28px; height: 28px;
  line-height: 28px; text-align: center;
  color: var(--amber);
  font-size: 22px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ------------------- HERO ------------------- */
.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }

.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--amber-light);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  max-width: 560px;
}
.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  background: var(--amber-bright);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }
.btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}
.hero-meta {
  color: var(--text-dim);
  font-size: 13px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.dot { color: var(--text-dim); }

/* Hero visual — simplified wheel */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; height: 340px;
}
.wheel {
  position: relative;
  width: 300px; height: 300px;
  animation: slowspin 120s linear infinite;
}
.wheel-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3),
              inset 0 0 24px rgba(245, 158, 11, 0.1);
}
.wheel-outer { width: 300px; height: 300px; }
.wheel-middle { width: 220px; height: 220px; opacity: 0.7; border-width: 1px; }
.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.2), transparent 70%);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}
@keyframes slowspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ------------------- SECTIONS ------------------- */
section { padding: 60px 24px; }
section h2 {
  max-width: 1120px; margin: 0 auto 30px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.3px;
}

.features .feature-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.feature p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* How */
.how-steps {
  max-width: 900px; margin: 0 auto;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.how-steps li {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
}
.step-n {
  flex: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 700;
}
.how-steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
.how-steps p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Quote */
.quote {
  text-align: center;
  padding: 80px 24px;
}
.quote blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--amber-light);
  margin: 0;
  max-width: 700px;
  margin-inline: auto;
}

/* Download */
.download-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.os-icon {
  font-size: 42px;
  color: var(--amber);
  margin-bottom: 10px;
}
.download-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.download-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.download-card .small {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12px;
}

/* Promise */
.promise-list {
  max-width: 900px; margin: 0 auto;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.promise-list li {
  padding: 16px 18px;
  background: rgba(245, 158, 11, 0.05);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  color: var(--text-muted);
}
.promise-list strong { color: var(--text); }

/* Footer */
footer {
  border-top: 1px solid rgba(124, 92, 255, 0.15);
  margin-top: 40px;
  padding: 32px 24px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--amber); }
.footer-copy { color: var(--text-dim); }

/* Legal pages */
.legal {
  max-width: 780px;
  margin: 40px auto;
  padding: 40px 24px;
}
.legal h1 { font-size: 32px; font-weight: 300; margin-bottom: 10px; }
.legal .meta { color: var(--text-dim); font-size: 13px; margin-bottom: 30px; }
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--amber-light);
}
.legal p { color: var(--text-muted); }
.legal ul { color: var(--text-muted); padding-left: 22px; }
.legal a { color: var(--amber); }
