/* ============================================
   PROOF AI Accelerator — Design System
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primary Palette */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --border-default: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #606060;

  /* Accent Palette */
  --accent-teal: #00C9A7;
  --accent-teal-dark: #009E85;
  --accent-teal-glow: rgba(0, 201, 167, 0.15);
  --accent-teal-subtle: rgba(0, 201, 167, 0.08);
  --accent-purple: #6C63FF;
  --accent-amber: #F5A623;
  --color-success: #22C55E;
  --color-error: #EF4444;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --nav-height-mobile: 56px;
  --card-radius: 12px;
  --card-radius-sm: 8px;
  --card-radius-lg: 20px;
  --btn-radius: 8px;
}

/* --- Base Reset & Body --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
.text-display {
  font-size: 72px;
  line-height: 80px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-h1 {
  font-size: 52px;
  line-height: 60px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-h2 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  color: var(--text-primary);
}

.text-h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

.text-h4 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text-primary);
}

.text-body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.text-body {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-body-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.text-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-nav {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

/* Responsive typography */
@media (max-width: 767px) {
  .text-display {
    font-size: 40px;
    line-height: 48px;
  }
  .text-h1 {
    font-size: 36px;
    line-height: 44px;
  }
  .text-h2 {
    font-size: 28px;
    line-height: 36px;
  }
  .text-h3 {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .text-display {
    font-size: 52px;
    line-height: 60px;
  }
  .text-h1 {
    font-size: 44px;
    line-height: 52px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: var(--bg-primary);
  padding: 14px 28px;
}
.btn-primary:hover {
  background-color: var(--accent-teal-dark);
  transform: scale(1.02);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-teal);
  padding: 14px 28px;
  border: 1px solid var(--accent-teal);
}
.btn-secondary:hover {
  background-color: var(--accent-teal-subtle);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  padding: 14px 28px;
  border: none;
}
.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 767px) {
  .btn-full-mobile {
    width: 100%;
  }
}

/* --- Cards --- */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius);
  padding: var(--space-8);
  transition: all 0.2s ease-out;
}
.card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 201, 167, 0.12);
}

.card-static {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius);
  padding: var(--space-8);
}

.card-focus {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-teal);
  border-radius: var(--card-radius);
  padding: var(--space-8);
  transition: all 0.2s ease-out;
}
.card-focus:hover {
  border-color: var(--accent-teal);
  border-left-width: 5px;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 201, 167, 0.12);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: var(--border-default);
}

@media (max-width: 767px) {
  .nav {
    height: var(--nav-height-mobile);
  }
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1279px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  padding: 96px 0 80px;
}

@media (max-width: 767px) {
  .section {
    padding: 60px 0 48px;
  }
}

/* --- Hero Sections --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
}
.hero-60 { min-height: 60vh; }
.hero-50 { min-height: 50vh; }
.hero-40 { min-height: 40vh; }

.hero-gradient {
  background: linear-gradient(135deg, #0A0A0A 0%, #111B17 100%);
}

.teal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Stat Cards --- */
.stat-number {
  font-size: 52px;
  line-height: 60px;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .stat-number {
    font-size: 36px;
    line-height: 44px;
  }
}

/* --- Tags & Badges --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-teal {
  background: rgba(0, 201, 167, 0.15);
  color: var(--accent-teal);
}
.tag-purple {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-purple);
}
.tag-amber {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-amber);
}

.badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.week-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--accent-teal);
  border-radius: 4px;
  background: transparent;
  color: var(--accent-teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}

/* --- Marquee --- */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  gap: var(--space-4);
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Countdown --- */
.countdown-grid {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}
.countdown-unit {
  text-align: center;
}
.countdown-value {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: var(--accent-teal);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 767px) {
  .countdown-value {
    font-size: 32px;
    line-height: 40px;
  }
}

/* --- Accordion --- */
.accordion-item {
  border-bottom: 1px solid var(--border-default);
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.accordion-trigger:hover {
  color: var(--text-primary);
}
.accordion-trigger.active {
  color: var(--accent-teal);
}
.accordion-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.accordion-trigger.active .accordion-chevron {
  transform: rotate(90deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content-inner {
  padding: 0 0 var(--space-6) 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Fit Check --- */
.fit-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
}
.fit-check-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.fit-check-item.checked .fit-check-box {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
}
.fit-check-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.fit-check-item.checked .fit-check-box svg {
  opacity: 1;
}

.qualify-message {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.qualify-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Quote Block --- */
.quote-block {
  border-left: 3px solid var(--accent-teal);
  padding-left: var(--space-6);
  position: relative;
}
.quote-mark {
  color: var(--accent-teal);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  position: absolute;
  top: -10px;
  left: -5px;
  opacity: 0.3;
}

/* --- Disqualifier Block --- */
.disqualifier-block {
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid var(--color-error);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: var(--space-8);
}

/* --- Pillar Tabs --- */
.pillar-tabs {
  position: sticky;
  top: var(--nav-height);
  background: var(--bg-primary);
  z-index: 100;
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-4) 0;
}
.pillar-tab {
  padding: var(--space-3) var(--space-6);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.pillar-tab:hover {
  color: var(--text-primary);
}
.pillar-tab.active {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

/* --- CTA Banner --- */
.cta-banner {
  border: 1px solid var(--accent-teal);
  border-radius: var(--card-radius);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.05) 0%, transparent 100%);
}

/* --- Timeline --- */
.timeline-connector {
  width: 2px;
  background: var(--border-default);
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 14px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 2px solid var(--bg-primary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* Hero word stagger */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroWordIn 0.5s ease-out forwards;
}
@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-8) var(--space-5);
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu.open {
  display: flex;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }
}

/* --- Gradient Text --- */
.text-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Teal accent text --- */
.text-teal { color: var(--accent-teal); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }

/* --- Typeform embed --- */
.typeform-container {
  width: 100%;
  min-height: 800px;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.typeform-container iframe {
  width: 100%;
  height: 800px;
  border: none;
}

/* --- Links --- */
a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-teal-dark);
}

/* --- Partner Forms --- */
.form-group {
  margin-bottom: var(--space-5);
  text-align: left;
}
.form-label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-subtle);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23A0A0A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-error-msg {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
  display: none;
}
.form-error-msg.visible {
  display: block;
}
.form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background-color: var(--accent-teal);
  color: var(--bg-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.15s ease-out;
}
.form-submit:hover {
  background-color: var(--accent-teal-dark);
  transform: scale(1.01);
}
.form-submit:active {
  transform: scale(0.98);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.form-submit.loading .spinner {
  display: inline-block;
}
.form-submit.loading .btn-text {
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.form-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--color-success);
  border-radius: var(--card-radius);
  padding: var(--space-8);
  text-align: center;
  display: none;
}
.form-success.visible {
  display: block;
}
.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.form-success-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.lang-switcher-btn:hover {
  background-color: var(--bg-tertiary);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}
.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}
.lang-option:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--accent-teal);
}
.lang-switcher-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* --- Utility --- */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
