/* FitChecks.ai - Shared Styles */

:root {
  --primary: #135bec;
  --primary-hover: #3b82f6;
  --primary-activated: #1d4ed8;
  --bg-dark: #101622;
  --bg-oled: #000000;
  --bg-light: #f6f6f8;
  --card-bg: #1c2433;
  --surface-dark: #1c1c1e;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-muted-dark: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.05);
  --success: #22c55e;
  --error: #ef4444;
  --primary-glow: rgba(19, 91, 236, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(16, 22, 34, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-white);
}

.header-cta {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.header-cta:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 91, 236, 0.1);
  border: 1px solid rgba(19, 91, 236, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 91, 236, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(19, 91, 236, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-oled);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

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

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
}

.cta-box .btn-primary {
  background: white;
  color: var(--primary);
  position: relative;
}

.cta-box .btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--divider);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted-dark);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text-white);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-muted);
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-white);
}

/* Support Page */
.support-page {
  padding: 120px 0 80px;
}

.support-page h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.support-page .subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.support-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.support-card .icon {
  width: 64px;
  height: 64px;
  background: rgba(19, 91, 236, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.support-card h3 {
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Forms */
.form-section {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 40px;
}

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-section .form-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-dark);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  background: var(--text-muted-dark);
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background: var(--error);
}

.btn-danger:hover {
  background: #dc2626;
}

.alert {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Responsive */
/* Demo Section with Phone Mockup */
.demo-section {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-oled) 100%);
}

.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1c1c1e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2d2d2d,
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(19, 91, 236, 0.15);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1c1c1e;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #3a3a3c;
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* Comparison Slider */
.comparison-slider {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  overflow: hidden;
  user-select: none;
}

.comparison-after,
.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-after img,
.comparison-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-label {
  position: absolute;
  bottom: 20px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-after {
  right: 20px;
  background: rgba(19, 91, 236, 0.9);
  color: white;
}

.label-before {
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a2e;
}

.comparison-before {
  clip-path: inset(0 50% 0 0);
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
}

.handle-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(19, 91, 236, 0.5),
    0 0 0 3px rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.handle-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 6px 20px rgba(19, 91, 236, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.3);
}

.handle-circle:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.mockup-hint {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-hint::before,
.mockup-hint::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-muted-dark);
}

/* App Store Badges */
.app-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 40px;
}

.app-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}

.app-badge:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.cta-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
}

.app-badge-light {
  opacity: 1;
}

.app-badge-light:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 35px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .phone-notch {
    width: 100px;
    height: 24px;
  }

  .handle-circle {
    width: 38px;
    height: 38px;
  }

  .handle-circle svg {
    width: 20px;
    height: 20px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-content {
    padding: 32px 24px;
  }

  .form-section {
    padding: 32px 24px;
  }
}
