/* ============================================================
   In-Tension-All — Shared Styles
   Colors: #DC2626 (red), #F97316 (orange), #0F172A (dark bg),
           #1E293B (surface), #F8FAFC (text)
   Fonts: Montserrat (headings), Inter (body)
   ============================================================ */

:root {
  --red: #DC2626;
  --orange: #F97316;
  --dark-bg: #0F172A;
  --surface: #1E293B;
  --surface-variant: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --success: #22C55E;
  --warning: #F59E0B;
  --info: #3B82F6;
  --gradient: linear-gradient(135deg, var(--red), var(--orange));
  --gradient-subtle: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(249,115,22,0.15));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: url('../images/bg-desktop.png') center/cover no-repeat fixed;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* iOS Safari: background-attachment:fixed is not supported */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--orange); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

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

.gradient-line {
  height: 3px;
  background: var(--gradient);
  border: none;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.5);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  opacity: 1;
}
.btn-ghost.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Section Animations ---------- */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
.site-nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.nav-logo img { height: 36px; width: auto; border-radius: 8px; object-fit: contain; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.82) 50%, rgba(30,41,59,0.78) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content--clean {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero-content--clean .mission {
  margin-left: auto;
  margin-right: auto;
}
.hero-content--clean .hero-ctas {
  justify-content: center;
}
.hero-text h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.hero-text .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-text .mission {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 36px;
  border: 3px solid var(--surface-variant);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-mockup .placeholder-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Stat Cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  text-align: center;
  padding: 1.5rem;
}
.stat-card .stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}
.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.85);
}
.section-alt {
  background: rgba(30, 41, 59, 0.88);
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ---------- Journey Timeline ---------- */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 3rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 0;
}
.timeline-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}
.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}
.timeline-step h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- How It Works Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Onboarding Demo ---------- */
.demo-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 320px;
}
.demo-step {
  display: none;
  animation: fadeIn 0.4s ease;
}
.demo-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-variant);
  transition: all 0.3s;
}
.demo-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--gradient);
}
.demo-dot.completed {
  background: var(--success);
}
.demo-option {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.demo-option:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--orange);
}
.demo-option.selected {
  background: var(--gradient-subtle);
  border-color: var(--red);
}
.demo-ai-response {
  background: rgba(220,38,38,0.1);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.demo-ai-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.feature-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.8rem;
}
.badge-privacy {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-ai {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-science {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* ---------- Flywheel ---------- */
.flywheel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.flywheel-node {
  background: var(--gradient-subtle);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 180px;
}
.flywheel-node h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.flywheel-node p { font-size: 0.8rem; color: var(--text-secondary); }
.flywheel-arrow {
  font-size: 1.8rem;
  color: var(--orange);
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.signal-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.signal-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.signal-item span { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.price-card { padding: 2.5rem; text-align: center; position: relative; }
.price-card.featured {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.06);
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.price-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.price-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}
.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.price-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  background: rgba(15, 23, 42, 0.9);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Mobile Hamburger ---------- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { background-image: url('../images/bg-mobile.png'); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text .mission { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 2rem; }
  .timeline::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 1.5rem;
    gap: 1rem;
    backdrop-filter: blur(12px);
  }
  .section-title { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .users-taught-grid { grid-template-columns: 1fr !important; }
  .flywheel-visual { flex-direction: column; }
  .flywheel-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-text .tagline { font-size: 1.2rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.7rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .stat-card .stat-value { font-size: 2rem; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
  .demo-option { padding: 1rem 1.25rem; min-height: 48px; }
  .signal-grid { grid-template-columns: 1fr; }
}
