/* Keychains Landing Page — Terminal/Developer Aesthetic */

/* ─── Reset & Base ──────────────────────────────────────────────────── */

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

:root {
  --bg:          #0d1117;
  --bg-surface:  #161b22;
  --bg-card:     #1c2230;
  --border:      #30363d;
  --border-dim:  #21262d;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --text-dim:    #6e7681;
  --accent:      #58a6ff;
  --accent-dim:  #1f4f8e;
  --green:       #3fb950;
  --green-dim:   #1a4d2b;
  --red:         #f85149;
  --yellow:      #d29922;
  --white:       #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1100px;
  --section-gap: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent);
}

/* ─── Utilities ─────────────────────────────────────────────────────── */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-form {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* ─── Navigation ────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  font-size: 1.3rem;
  color: var(--accent);
}

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

.hero {
  padding: 80px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.terminal-prompt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 8px;
}

.prompt-user  { color: var(--green); }
.prompt-sep   { color: var(--text-muted); }
.prompt-dir   { color: var(--accent); }
.prompt-dollar { color: var(--text-muted); margin: 0 6px; }
.prompt-cmd   { color: var(--text); }

.terminal-output {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.output-ok {
  color: var(--green);
  margin-right: 6px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  margin-bottom: 32px;
}

.hero-cta-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.social-proof {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  padding: 6px 16px;
}

.proof-count {
  font-weight: 700;
  color: var(--text);
}

/* ─── Benefits ──────────────────────────────────────────────────────── */

.benefits {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-dim);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

.benefit-card:hover {
  border-color: var(--accent-dim);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.benefit-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefit-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.benefit-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.benefit-comparison {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.comparison-bad,
.comparison-good {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
}

.comparison-bad  { background: rgba(248, 81, 73, 0.07);  border-color: var(--red); }
.comparison-good { background: rgba(63, 185, 80, 0.07);  border-color: var(--green); }

.comparison-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 3px;
}

.comparison-label.bad  { background: rgba(248,81,73,0.15);  color: var(--red); }
.comparison-label.good { background: rgba(63,185,80,0.15);  color: var(--green); }

/* ─── Terminal Demo Strip ───────────────────────────────────────────── */

.demo-strip {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.demo-terminal {
  max-width: 680px;
  margin: 0 auto;
  background: #010409;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.terminal-bar-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

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

.terminal-line {
  display: block;
}

.t-prompt { color: var(--green); margin-right: 8px; }
.t-cmd    { color: var(--text); }
.t-output { color: var(--text-muted); padding-left: 18px; }
.t-muted  { color: var(--text-dim); }
.t-ok     { color: var(--green); margin-right: 6px; }

/* ─── Waitlist Form ─────────────────────────────────────────────────── */

.waitlist {
  padding: var(--section-gap) 0;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.waitlist-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.waitlist-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.form-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.form-fine-print {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
}

.waitlist-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

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

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-dim);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

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

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

@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .terminal-prompt {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

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

  .form-row {
    flex-direction: column;
  }

  .btn-form {
    width: 100%;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 36px;
  }
}

@media (max-width: 400px) {
  .hero-headline {
    font-size: 1.75rem;
  }
}
