:root {
  --bg: #0c0c0c;
  --bg-1: #161616;
  --bg-2: #1f1f1f;
  --text: #e6e5e2;
  --text-dim: #96938e;
  --text-faint: #56534f;
  --accent: #8b96a3;
  --accent-light: #a7b0bb;
  --accent-soft: rgba(139, 150, 163, 0.15);
  --accent-dim: #656e79;
  --accent-ink: #131313;
  --radius-lg: 12px;
  --radius: 7px;
  --radius-sm: 5px;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-raised: 0 1px 1px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-raised-active: inset 0 1px 2px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans);
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 10% -15%, rgba(139,150,163,0.06), transparent 60%),
    radial-gradient(900px 500px at 105% 15%, rgba(139,150,163,0.04), transparent 55%);
}

.icon { width: 1em; height: 1em; display: block; flex-shrink: 0; }

/* ---------- Topbar ---------- */

.landing-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 980px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 19px; height: 19px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: 3px; color: var(--text); }

.topbar-signin {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  box-shadow: var(--shadow-raised);
  transition: color .15s ease;
}

.topbar-signin:hover { color: var(--text); }
.topbar-signin:active { box-shadow: var(--shadow-raised-active); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 12vh 24px 8vh;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  background: var(--accent-light);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  transition: transform .1s ease, background .15s ease;
}

.signin-btn:hover { background: #b7c0ca; }
.signin-btn:active { box-shadow: var(--shadow-raised-active); transform: translateY(1px); }
.signin-btn .icon { width: 18px; height: 18px; }

.signin-link.is-loading {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Features ---------- */

.features {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 4vh 24px 12vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.feature-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--text);
}

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

/* ---------- Footer ---------- */

.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 9vh 20px 7vh;
  }
}
