/* ============================================
   AuthState — Global Styles
   Bold/vibrant, Stripe-inspired palette
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #0A0A0F;
  --bg-raised: #12121A;
  --bg-card: #16161F;
  --accent: #635BFF;
  --accent-bright: #7C75FF;
  --accent-dim: rgba(99, 91, 255, 0.12);
  --accent-glow: rgba(99, 91, 255, 0.35);
  --cyan: #00D4FF;
  --gradient: linear-gradient(135deg, #635BFF, #00D4FF);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 91, 255, 0.15), rgba(0, 212, 255, 0.08));
  --white: #FFFFFF;
  --white-dim: rgba(255, 255, 255, 0.7);
  --white-muted: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 91, 255, 0.4);
  --coral: #FF5C5C;
  --green: #3ECF8E;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1140px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

/* --- Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: var(--section-pad) 0; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--white-dim); max-width: 60ch; }

.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
}

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

.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--white);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white-dim);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent-dim);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav .btn { padding: 0.55rem 1.3rem; font-size: 0.88rem; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.12) 0%, rgba(0, 212, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

/* Grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 30% 45%, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 30% 45%, black 10%, transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(99, 91, 255, 0.15));
}

.hero h1 { margin-bottom: 1.25rem; }

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Social Proof --- */
.social-proof {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.social-proof-text {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin: 0 auto 1.5rem;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.proof-stat { text-align: center; }

.proof-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.2;
}

.proof-stat-label {
  font-size: 0.85rem;
  color: var(--white-muted);
}

/* --- Section Divider --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Problem Section --- */
.problem-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.problem-stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent-bright);
  flex-shrink: 0;
  line-height: 1;
}

.problem-stat-text {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: none;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 91, 255, 0.08);
}

.problem-card h3 { margin-bottom: 0.75rem; }
.problem-card p { font-size: 0.93rem; }

.problem-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent-bright);
}

/* --- Deliverables --- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.deliverable {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.deliverable:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 91, 255, 0.08);
}

.deliverable-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent-bright);
}

.deliverable-icon svg { width: 22px; height: 22px; }

.deliverable h3 { margin-bottom: 0.4rem; }
.deliverable p { font-size: 0.92rem; }

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: var(--gradient);
  opacity: 0.4;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--accent);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; margin: 0 auto; max-width: 30ch; }

/* --- Pricing --- */
.pricing-card {
  max-width: 520px;
  margin: 2.5rem auto 0;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 40%, transparent 60%, rgba(0, 212, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Subtle glow behind pricing card */
.pricing-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin: 1rem 0 0.25rem;
  letter-spacing: -0.02em;
  position: relative;
}

.pricing-amount span { font-size: 1.2rem; font-weight: 600; color: var(--white-dim); }

.pricing-note {
  font-size: 0.9rem;
  color: var(--white-muted);
  margin-bottom: 2rem;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  position: relative;
}

.pricing-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  position: relative;
  font-size: 1rem;
  padding: 1rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover { color: var(--accent-bright); }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--white-dim);
  max-width: 60ch;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 26px;
  width: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.footer-brand p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-muted);
  letter-spacing: 0.06em;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-muted);
  margin: 0 auto;
}

.footer a { color: var(--accent-bright); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

/* --- Scope Page Form --- */
.scope-page {
  padding-top: 7rem;
  min-height: 100vh;
}

.scope-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFFFFF' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.checkbox-group label, .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--white-dim);
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.checkbox-group label:hover, .radio-group label:hover {
  border-color: var(--border-hover);
}

.checkbox-group input:checked + span,
.radio-group input:checked + span { color: var(--white); }

.checkbox-group label:has(input:checked),
.radio-group label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.checkbox-group input, .radio-group input {
  accent-color: var(--accent);
}

.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.form-submit .btn { min-width: 240px; justify-content: center; }

/* Loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Status message */
.status-message {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.status-message.error { color: var(--coral); }
.status-message.success { color: var(--green); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .pricing-card { padding: 2rem; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .checkbox-group, .radio-group { flex-direction: column; }
  .social-proof-stats { gap: 2rem; }
  .problem-stat { flex-direction: column; gap: 0.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .nav .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .social-proof-stats { flex-direction: column; gap: 1rem; }
}
