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

:root {
  --bg:        #0A0A0F;
  --surface:   #13131A;
  --surface-2: #1A1A26;
  --border:    #1E1E2E;
  --border-2:  #2A2A3E;
  --primary:   #6C63FF;
  --primary-h: #8B85FF;
  --text:      #F0F0F5;
  --muted:     #8A8A9A;
  --success:   #4ADE80;
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ── Typography helpers ───────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 56px;
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-sm:hover {
  background: var(--border-2);
  border-color: var(--primary);
  color: var(--primary-h);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.35);
}
.btn-lg:hover {
  background: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(108, 99, 255, 0.5);
}

.btn-primary {
  padding: 0 28px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Spinner ──────────────────────────────────────────────── */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.logo-dot {
  color: var(--primary);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108, 99, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 40%, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── Cards ────────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .cards-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.card-icon {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 20px;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Problems ─────────────────────────────────────────────── */
.problems {
  border-top: 1px solid var(--border);
}

/* ── How it works ─────────────────────────────────────────── */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 800px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
}
.step {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 32px;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.step-arrow {
  font-size: 20px;
  color: var(--border-2);
  padding-top: 48px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Cases ────────────────────────────────────────────────── */
.case-persona {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.case-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Roles ────────────────────────────────────────────────── */
.roles {
  border-top: 1px solid var(--border);
}
.roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.role-chip:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  color: var(--primary-h);
}
.role-icon {
  font-size: 16px;
}

/* ── Signup ───────────────────────────────────────────────── */
.signup {
  border-top: 1px solid var(--border);
}
.signup-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.signup-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.signup-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.signup-form {}
.form-row {
  display: flex;
  gap: 12px;
}
@media (max-width: 520px) {
  .form-row { flex-direction: column; }
  .btn-primary { height: 52px; }
}
.form-input {
  flex: 1;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.form-field-error {
  display: block;
  font-size: 13px;
  color: #f87171;
  margin-top: 8px;
  min-height: 0;
}

/* ── Success state ────────────────────────────────────────── */
.signup-success {
  padding: 40px 32px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius);
  animation: fadeUp 0.4s ease;
}
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 8px;
}
.success-text {
  font-size: 15px;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-copy {
  font-size: 13px;
  color: var(--border-2);
}

/* ── Reveal animations ────────────────────────────────────── */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible,
.reveal-stagger > *.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
