/* ─── Ideakicks Design System (Strict Light Mode) ─────────────────────────── */
:root {
  color-scheme: light;
  --font-heading: 'Clash Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --navy: #082D4D;
  --navy-dark: #051E34;
  --green: #6FD179;
  --green-hover: #5bc468;
  --green-dark: #2A7A37;
  --mint-bg: #E8F8EA;

  --border: #DFE3E7;
  --border-light: #E8EBEE;
  --muted: #6B7681;
  --error: #C2412D;

  --radius-card: 20px;
  --radius-input: 8px;
  --radius-pill: 9999px;
}

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

/* ─── Page Body with Exact Website Aurora Gradient ───────────────────────── */
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(ellipse 65% 55% at 10% 12%, rgba(111, 209, 121, 0.45) 0%, rgba(167, 243, 208, 0.22) 35%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 16%, rgba(56, 189, 248, 0.38) 0%, rgba(186, 230, 253, 0.20) 40%, transparent 72%),
    radial-gradient(ellipse 50% 35% at 50% 6%, rgba(255, 255, 255, 0.95) 0%, transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Page Layout Shell ───────────────────────────────────────────────────── */
.page-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Centered Brand Header ───────────────────────────────────────────────── */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  max-width: 640px;
}

.brand-link {
  display: inline-block;
  margin-bottom: 24px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

@media (min-width: 640px) {
  .brand-logo {
    height: 40px;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

.hero-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Form Container & Card ───────────────────────────────────────────────── */
.form-container {
  width: 100%;
  max-width: 580px;
  margin-bottom: 48px;
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(8, 45, 77, 0.04), 0 12px 32px -12px rgba(8, 45, 77, 0.12);
}

@media (min-width: 640px) {
  .form-card {
    padding: 36px 36px;
  }
}

/* Card Header */
.card-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 22px;
}

.card-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Alert Banner */
.error-banner {
  background: #FDF2F2;
  border: 1px solid #F8B4B4;
  color: var(--error);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Form Fields */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.req {
  color: var(--error);
}

.field-input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input::placeholder {
  color: #A3ACB5;
  font-weight: 400;
}

.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(111, 209, 121, 0.32);
}

.field-input.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(194, 65, 45, 0.15);
}

.field-textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 14px;
  resize: vertical;
}

.field-hint {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(111, 209, 121, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(111, 209, 121, 0.75);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8, 45, 77, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ─── Confirmed State ─────────────────────────────────────────────────────── */
.confirmed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.confirmed-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.confirmed-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.confirmed-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 22px;
}

.confirmed-text strong {
  color: var(--navy);
}

.confirmed-info {
  width: 100%;
  background: #F7F9FA;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  margin-bottom: 22px;
}

.confirmed-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.confirmed-desc {
  font-size: 0.82rem;
  color: var(--navy);
  line-height: 1.45;
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  border-color: var(--navy);
  background: #F7F9FA;
}

/* ─── Minimalist Footer ───────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.page-footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-footer a:hover {
  color: var(--green-dark);
}
