/* ============================================
   Orbit — Marketing Website Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #0C0C0E;
  --bg-surface: #1A1A1F;
  --bg-elevated: #252528;
  --primary: #E85D24;
  --primary-glow: rgba(232, 93, 36, 0.3);
  --secondary: #5CB8B8;
  --secondary-glow: rgba(92, 184, 184, 0.2);
  --gold: #D4A84B;
  --gold-glow: rgba(212, 168, 75, 0.2);
  --sun: #FBBF24;
  --sun-glow: #FDE68A;
  --text: #F5F0E6;
  --text-secondary: #C4BFB5;
  --text-muted: #8A8580;
  --border: rgba(245, 240, 230, 0.08);
  --healthy: #5CBF5C;
  --warning: #E5B84D;
  --danger: #E85D5D;
  --nav-height: 64px;
  --section-padding: 100px;
  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(12, 12, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(12, 12, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile a {
  font-size: 1.1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 93, 36, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

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

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Orbit Animation (Hero) --- */
.orbit-system {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 3rem;
}

.orbit-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--sun-glow) 0%, var(--sun) 50%, var(--primary) 100%);
  box-shadow:
    0 0 30px rgba(251, 191, 36, 0.5),
    0 0 60px rgba(232, 93, 36, 0.25),
    0 0 100px rgba(232, 93, 36, 0.1);
  z-index: 3;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(245, 240, 230, 0.07);
  border-radius: 50%;
}

.orbit-ring-1 {
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
}

.orbit-ring-2 {
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
}

.orbit-ring-3 {
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
}

.planet-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 2;
}

.planet-track-1 {
  animation: orbit-rotate 8s linear infinite;
}

.planet-track-2 {
  animation: orbit-rotate 14s linear infinite reverse;
}

.planet-track-3 {
  animation: orbit-rotate 22s linear infinite;
}

.planet {
  position: absolute;
  border-radius: 50%;
}

.planet-1 {
  width: 12px;
  height: 12px;
  top: -6px;
  left: -6px;
  transform: translateX(60px);
  background: var(--healthy);
  box-shadow: 0 0 12px rgba(92, 191, 92, 0.6), 0 0 24px rgba(92, 191, 92, 0.2);
}

.planet-2 {
  width: 16px;
  height: 16px;
  top: -8px;
  left: -8px;
  transform: translateX(95px);
  background: var(--warning);
  box-shadow: 0 0 12px rgba(229, 184, 77, 0.6), 0 0 24px rgba(229, 184, 77, 0.2);
}

.planet-3 {
  width: 10px;
  height: 10px;
  top: -5px;
  left: -5px;
  transform: translateX(130px);
  background: var(--danger);
  box-shadow: 0 0 12px rgba(232, 93, 93, 0.6), 0 0 24px rgba(232, 93, 93, 0.2);
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Features Section --- */
.features {
  background: var(--bg-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 240, 230, 0.15);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- How It Works --- */
.how-it-works {
  background: var(--bg-deep);
  overflow: hidden;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

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

.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.step-number-1 { color: var(--primary); }
.step-number-2 { color: var(--gold); }
.step-number-3 { color: var(--secondary); }

.step h3 {
  font-family: 'Space Mono', monospace;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* --- Color Demo (inside How It Works) --- */
.color-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.color-dot-green {
  background: var(--healthy);
  box-shadow: 0 0 8px rgba(92, 191, 92, 0.5);
}

.color-dot-amber {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(229, 184, 77, 0.5);
}

.color-dot-red {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(232, 93, 93, 0.5);
}

.color-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* --- Privacy Callout --- */
.privacy-callout {
  text-align: center;
  position: relative;
}

.privacy-callout::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 93, 36, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(92, 191, 92, 0.1);
  border: 1px solid rgba(92, 191, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.privacy-callout h2 {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2rem;
}

.privacy-callout > .container > p {
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.privacy-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(92, 191, 92, 0.08);
  border: 1px solid rgba(92, 191, 92, 0.15);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--healthy);
}

.privacy-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Screenshot Section --- */
.showcase {
  text-align: center;
  overflow: hidden;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  margin: 0 auto;
  border-radius: 40px;
  border: 3px solid rgba(245, 240, 230, 0.1);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 240, 230, 0.05);
}

.phone-mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-deep);
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.phone-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Download CTA --- */
.download {
  text-align: center;
  position: relative;
  padding-bottom: 120px;
}

.download::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center bottom, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download h2 {
  margin-bottom: 0.8rem;
}

.download p {
  margin-bottom: 2.5rem;
}

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

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* App Store badge SVG inline fallback */
.app-store-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: white;
  color: #000;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.app-store-badge-inline:hover {
  transform: scale(1.05);
}

.app-store-badge-inline svg {
  width: 24px;
  height: 24px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- Privacy Policy Page --- */
.privacy-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.privacy-content h1 {
  margin-bottom: 0.5rem;
}

.privacy-last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  display: block;
}

.privacy-content h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.privacy-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

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

  .orbit-system {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
  }

  .orbit-ring-1 { width: 100px; height: 100px; margin: -50px 0 0 -50px; }
  .orbit-ring-2 { width: 155px; height: 155px; margin: -77.5px 0 0 -77.5px; }
  .orbit-ring-3 { width: 210px; height: 210px; margin: -105px 0 0 -105px; }

  .planet-1 { transform: translateX(50px); }
  .planet-2 { transform: translateX(77px); }
  .planet-3 { transform: translateX(105px); }

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

  .phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 34px;
  }
}

@media (max-width: 480px) {
  .privacy-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
