* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(ellipse at top, #1a1f2e 0%, #0b0d14 55%);
  color: #e8eaf0;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Sticky frosted header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(14, 17, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7c8cff 0%, #b38cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header nav { display: flex; gap: 10px; align-items: center; }
header nav a { font-weight: 500; color: #c8ccd8; padding: 10px 16px; border-radius: 10px; }
header nav a:hover { color: #fff; }

.btn-primary {
  background: linear-gradient(135deg, #6a7cff 0%, #9d70ff 100%);
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(122, 140, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(122, 140, 255, 0.4); }
.btn-ghost {
  background: transparent;
  color: #c8ccd8;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.2); }

main { max-width: 1180px; margin: 0 auto; padding: 40px 40px 80px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 72px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #b0b8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero .sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: #9ba3bc;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7185;
  letter-spacing: 0.01em;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 140, 255, 0.25);
  background: rgba(255,255,255,0.04);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(122, 140, 255, 0.18) 0%, rgba(157, 112, 255, 0.18) 100%);
  border: 1px solid rgba(157, 112, 255, 0.22);
  color: #c5cdff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #fff; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: #9ba3bc; line-height: 1.55; }

/* How it works */
.how-it-works {
  margin-top: 96px;
  padding: 20px 0 20px;
}
.how-it-works h2 {
  text-align: center;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
  color: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px 26px 30px;
}
.step-num {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.step p { font-size: 14px; color: #9ba3bc; }

/* Pull quote */
.pull-quote {
  margin: 104px auto 40px;
  max-width: 880px;
  text-align: center;
  padding: 0 20px;
}
.pull-quote .quote {
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #b6bfe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pull-quote .attribution {
  margin-top: 18px;
  color: #6b7185;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 80px;
  padding: 48px 0 24px;
  color: #9ba3bc;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: #9ba3bc; transition: color 0.15s ease; }
.footer-col ul a:hover { color: #fff; }
.footer-col.brand .logo { margin-bottom: 10px; }
.footer-col.brand p { font-size: 14px; color: #9ba3bc; max-width: 360px; }
.footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #6b7185;
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .header-inner { padding: 18px 22px; }
  main { padding: 30px 22px 60px; }
  .hero { padding: 48px 0 56px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .how-it-works { margin-top: 72px; }
  .pull-quote { margin: 80px auto 24px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 22px;
    gap: 28px;
  }
  .footer-col.brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 20px 22px 0; }
}
@media (max-width: 520px) {
  header nav a[href="/login"] { padding: 10px 10px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Auth pages */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
}
.auth-card .logo { margin-bottom: 8px; font-size: 20px; }
.auth-card h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card .sub { color: #9ba3bc; margin-bottom: 28px; font-size: 14px; }
.auth-card label { display: block; font-size: 13px; font-weight: 500; color: #c8ccd8; margin-bottom: 6px; }
.auth-card input {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.auth-card input:focus {
  outline: none;
  border-color: #7c8cff;
  background: rgba(0,0,0,0.35);
}
.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
  padding: 13px 22px !important;
}
.auth-card button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-card .alt {
  text-align: center;
  margin-top: 22px;
  color: #9ba3bc;
  font-size: 14px;
}
.auth-card .alt a { color: #a5b0ff; font-weight: 500; }
.auth-card .alt a:hover { text-decoration: underline; }
.auth-error {
  background: rgba(255, 88, 88, 0.08);
  border: 1px solid rgba(255, 88, 88, 0.25);
  color: #ff9a9a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }
.auth-hint { font-size: 12px; color: #7d859c; margin-top: -10px; margin-bottom: 16px; }
