/* =========================================================
   ORBIT LANDING — Soft Editorial Light Theme
   ========================================================= */

:root {
  /* Reduced brightness, softer paper tones */
  --orbit-bg:          #EDE9DF; /* Aged, warm paper (was #F7F4EC) */
  --orbit-surface:     #F6F2E8; /* Soft off-white cards (was #FFFDF8) */
  --orbit-surface-2:   #E4DFD3; /* Slightly darker cream for contrast sections */

  /* Original Orbit Greens */
  --orbit-green:       #176B3A;
  --orbit-green-dark:  #0E4D2A;
  --orbit-green-deep:  #0B2A1A;
  --orbit-green-soft:  #DFECE2;

  /* Softened Text Colors */
  --orbit-text:        #1A241E; /* Deep, soft forest-green/black */
  --orbit-text-2:      #5E685F;
  --orbit-text-3:      #7E8880;

  /* Borders */
  --orbit-border:       #D5D0C3;
  --orbit-border-strong:#C2BCAE;

  --font-editorial: 'Newsreader', Georgia, serif;
  --font-ui:        'DM Sans', -apple-system, sans-serif;
  
  --container: 1140px;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--orbit-text);
  background-color: var(--orbit-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orbit-green); outline-offset: 4px; border-radius: 2px; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-editorial); font-weight: 500; line-height: 1.1; color: var(--orbit-text); }
h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; }
h4 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--orbit-text); }
em { font-style: italic; font-weight: 400; color: var(--orbit-green); }

.eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orbit-green); margin-bottom: 20px; }

/* PRIMITIVES */
.container { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--orbit-green); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 8px; }

/* CTAs */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; min-height: 50px; font-size: 15px; font-weight: 700; border-radius: 8px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: all 150ms ease; white-space: nowrap; }
.cta--primary { background: var(--orbit-green); color: #fff; border-color: var(--orbit-green); box-shadow: 0 4px 12px rgba(23,107,58,0.15); }
.cta--primary:hover { background: var(--orbit-green-dark); border-color: var(--orbit-green-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(23,107,58,0.25); }
.cta--ghost { background: transparent; color: var(--orbit-text); border-color: var(--orbit-border-strong); }
.cta--ghost:hover { border-color: var(--orbit-text); background: rgba(0,0,0,0.03); }
.cta--large { padding: 18px 36px; font-size: 16px; min-height: 56px; }

/* SCREENSHOT FRAMES */
.screenshot-frame {
  border: 1px solid var(--orbit-border-strong);
  padding: 8px;
  border-radius: 20px;
  background: var(--orbit-surface);
  box-shadow: 0 2px 4px rgba(23,33,27,0.03), 0 24px 48px -24px rgba(23,33,27,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(23,33,27,0.03), 0 32px 56px -24px rgba(23,33,27,0.22);
}
.screenshot-frame img {
  border: 1px solid var(--orbit-border);
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

/* HEADER - Editorial Masthead */
.site-header { 
  position: fixed; top: 0; left: 0; right: 0; 
  background: rgba(237, 233, 223, 0.92); 
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); 
  border-bottom: 1px solid var(--orbit-border); 
  z-index: 50; 
}

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

/* The Wordmark */
.brand { 
  display: flex; align-items: baseline; gap: 14px; 
  text-decoration: none; color: var(--orbit-text); 
}
.brand-text { 
  font-family: var(--font-editorial); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
}
.brand-sub { 
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--orbit-text-3);
}

/* Right Side Alignment */
.header-right { 
  display: flex; align-items: center; 
}

.desktop-nav { 
  display: flex; gap: 36px; 
}
.desktop-nav a { 
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orbit-text-2); text-decoration: none; transition: color 150ms ease; 
}
.desktop-nav a:hover { color: var(--orbit-green); }

.header-divider { 
  width: 1px; height: 18px; background: var(--orbit-border); margin: 0 28px; 
}

/* The CTA Button */
.header-actions { display: flex; align-items: center; }
.header-actions .cta { 
  padding: 10px 22px; min-height: 40px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; 
}

/* Mobile Menu Button */
.mobile-menu-btn { 
  display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 6px; 
}
.mobile-menu-btn span { 
  display: block; width: 26px; height: 2px; background: var(--orbit-text); border-radius: 2px; transition: all 0.3s ease; 
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav { 
  display: none; position: absolute; top: 100%; left: 0; right: 0; 
  background: var(--orbit-bg); border-bottom: 1px solid var(--orbit-border); 
  transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.mobile-nav.open { 
  transform: translateY(0); opacity: 1; pointer-events: auto; 
}
.mobile-nav-inner {
  display: flex; flex-direction: column; padding: 24px 0 40px; gap: 20px;
}
.mobile-nav a { 
  font-family: var(--font-editorial); font-size: 32px; font-weight: 500; color: var(--orbit-text); text-decoration: none; border-bottom: 1px solid var(--orbit-border); padding-bottom: 16px;
}
.mobile-nav .cta { 
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; padding: 16px; margin-top: 8px; border-bottom: none; text-align: center;
}

/* Responsive Header */
@media (max-width: 900px) {
  .header-grid { 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; /* Perfect center alignment */
    height: 64px; /* Reduced height to remove extra white space */
  }
  .brand { 
    grid-column: 2; /* Force logo to the center */
    justify-self: center; 
    margin: 0;
  }
  .header-right {
    grid-column: 3;
    justify-self: end;
  }
  .brand-text { font-size: 24px; }
  .brand-sub { display: none; }
  .desktop-nav, .desktop-cta, .header-divider { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: block; }
}

/* HERO */
.hero { padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__copy { max-width: 620px; text-align: left; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.03em; line-height: 1.05; }
.lede { font-size: clamp(16px, 1.8vw, 20px); color: var(--orbit-text-2); line-height: 1.6; margin-top: 24px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* NEW: Pillars Subtitle */
.hero-pillars {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orbit-green);
  margin-top: 20px;
  margin-bottom: 0;
}

/* Layered Hero Visuals */
.hero__visual { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-visual-wrap { position: relative; width: 100%; max-width: 420px; }
.hero-frame { transform: rotate(-1deg); }

.floating-card {
  position: absolute;
  background: var(--orbit-surface);
  border: 1px solid var(--orbit-border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 24px -8px rgba(23,33,27,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: transform 0.3s ease;
}
.floating-card:hover { transform: translateY(-4px) scale(1.02); }
.floating-card--task { top: 10%; left: -15%; }
.floating-card--money { bottom: 15%; right: -10%; }

.fc-icon { width: 24px; height: 24px; background: var(--orbit-green-soft); color: var(--orbit-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; }
.fc-text { display: flex; flex-direction: column; }
.fc-text span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orbit-text-3); font-weight: 600; }
.fc-text strong { font-size: 14px; color: var(--orbit-text); font-weight: 700; }

/* MOBILE HERO */
@media (max-width: 900px) {
  .hero { 
    padding-top: 90px; /* Moves the text UP to cover the empty space */
    padding-bottom: 40px; 
  }
  .hero__grid { 
    grid-template-columns: 1fr; 
    gap: 48px; 
    text-align: center; /* Restore center alignment */
  }
  .hero__copy { 
    margin: 0 auto; 
    text-align: center;
  }
  .hero__actions { 
    justify-content: center; 
  }
  .hero-visual-wrap { 
    max-width: 320px; 
    margin: 0 auto; 
  }
  /* Hide the floating cards on mobile to keep it clean */
  .floating-card { 
    display: none; 
  }
}

@media (max-width: 400px) {
  /* On very small screens, shrink slightly more to prevent overflow */
  .hero-visual-wrap { max-width: 260px; }
  .floating-card { transform: scale(0.75); }
  .floating-card--task { left: -8%; }
  .floating-card--money { right: -8%; }
}

/* INTERACTIVE SECTION */
.interactive-section { padding: clamp(80px, 10vw, 120px) 0; background: var(--orbit-surface-2); border-top: 1px solid var(--orbit-border); border-bottom: 1px solid var(--orbit-border); text-align: center; }
.interactive-title { margin-bottom: 40px; color: var(--orbit-text); }
.interactive-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.int-btn { background: var(--orbit-surface); border: 1.5px solid var(--orbit-border-strong); border-radius: 100px; padding: 12px 24px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--orbit-text-2); cursor: pointer; transition: all 0.2s ease; }
.int-btn:hover { border-color: var(--orbit-green); color: var(--orbit-green); }
.int-btn.active { background: var(--orbit-green); border-color: var(--orbit-green); color: #fff; box-shadow: 0 4px 12px rgba(23,107,58,0.2); }

.interactive-reveal { position: relative; max-width: 900px; margin: 0 auto; min-height: 300px; text-align: left; }
.reveal-panel { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal-panel.active { display: block; opacity: 1; transform: translateY(0); animation: fadeIn 0.4s forwards; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--orbit-surface); padding: 40px; border-radius: 20px; border: 1px solid var(--orbit-border); box-shadow: 0 12px 32px rgba(23,33,27,0.05); }
.reveal-copy h3 { margin-bottom: 12px; color: var(--orbit-text); }
.reveal-copy p { font-size: 16px; color: var(--orbit-text-2); line-height: 1.6; }
.reveal-panel .screenshot-frame { box-shadow: none; }

@media (max-width: 768px) {
  .reveal-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; text-align: center; }
}

/* PILLARS */
.pillars-section { padding: clamp(100px, 12vw, 160px) 0; }
.pillars-title { text-align: center; margin-bottom: 80px; }
.pillar-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: center; margin-bottom: 120px; }
.pillar-row:last-child { margin-bottom: 0; }
.pillar-row--reverse { direction: rtl; }
.pillar-row--reverse > * { direction: ltr; }

.pillar-copy { position: relative; }
.folio { font-family: var(--font-editorial); font-size: 120px; line-height: 0.8; color: var(--orbit-green); opacity: 0.1; position: absolute; top: -40px; left: -20px; z-index: -1; font-weight: 400; pointer-events: none; }
.pillar-copy h3 { margin-bottom: 16px; }
.pillar-copy p { font-size: 18px; color: var(--orbit-text-2); line-height: 1.6; max-width: 46ch; }

@media (max-width: 900px) {
  .pillar-row, .pillar-row--reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; direction: ltr; text-align: center; }
  .pillar-row--reverse .pillar-visual { order: -1; }
  .pillar-copy { margin: 0 auto; }
  .folio { left: 50%; transform: translateX(-50%); top: -50px; }
}

/* FEATURES GRID */
.features-section { padding: clamp(80px, 10vw, 120px) 0; border-top: 1px solid var(--orbit-border); }
.section-title { text-align: center; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-item { padding: 24px 0; border-top: 1px solid var(--orbit-border); }
.feature-item p { font-size: 15px; color: var(--orbit-text-2); line-height: 1.6; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* FINAL CTA */
.final-cta { padding: clamp(100px, 15vw, 180px) 0; background: var(--orbit-green-deep); color: #fff; text-align: center; }
.final-cta__inner { max-width: 680px; margin: 0 auto; }
.final-cta h2 { color: #fff; margin-bottom: 24px; }
.final-cta h2 em { color: #a4f0b8; }
.final-cta p { font-size: 20px; color: rgba(255, 253, 248, 0.7); margin-bottom: 40px; }
.final-cta .cta--primary { background: #fff; color: var(--orbit-green-deep); border-color: #fff; }
.final-cta .cta--primary:hover { background: var(--orbit-surface); transform: translateY(-2px); }

/* FOOTER */
.site-footer { padding: clamp(48px, 8vw, 80px) 0 32px; border-top: 1px solid var(--orbit-border); background: var(--orbit-bg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 48px; border-bottom: 1px solid var(--orbit-border); }
.footer__brand p { font-size: 14px; color: var(--orbit-text-2); line-height: 1.6; margin-top: 16px; max-width: 38ch; }
.footer__heading { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orbit-text-3); margin-bottom: 16px; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a, .footer__contact a { font-size: 14px; color: var(--orbit-text-2); text-decoration: none; transition: color 120ms ease; min-height: 28px; display: inline-flex; align-items: center; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--orbit-green); }
.footer__base { padding-top: 24px; text-align: center; font-size: 13px; color: var(--orbit-text-3); }
.footer-link-btn { background: none; border: none; padding: 0; font-family: var(--font-ui); font-size: 14px; color: var(--orbit-text-2); cursor: pointer; text-align: left; min-height: 28px; display: inline-flex; align-items: center; transition: color 120ms ease; }
.footer-link-btn:hover { color: var(--orbit-green); }

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* MOBILE STICKY CTA */
.mobile-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(237, 233, 223, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--orbit-border); z-index: 90; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.mobile-sticky-cta.visible { transform: translateY(0); }
.mobile-sticky-cta .cta { width: 100%; }
@media (min-width: 861px) { .mobile-sticky-cta { display: none; } }
@media (max-width: 861px) { .site-footer { padding-bottom: 100px; } }

/* LIGHTBOX & SUPPORT MODAL */
.lightbox-modal { position: fixed; inset: 0; background: rgba(15, 20, 16, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox-modal.open { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 500px; width: 100%; max-height: 90vh; border-radius: 24px; overflow: hidden; transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.lightbox-modal.open .lightbox-content { transform: scale(1); }
.lightbox-content img { width: 100%; height: auto; display: block; }
.lightbox-close { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: white; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; font-family: var(--font-ui); transition: background 0.2s; z-index: 10; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.support-modal { position: fixed; inset: 0; background: rgba(15, 20, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.support-modal.open { opacity: 1; pointer-events: auto; }
.support-modal-content { background: var(--orbit-surface); width: 100%; max-width: 500px; border-radius: 16px; padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; position: relative; max-height: 90vh; overflow-y: auto; border: 1px solid var(--orbit-border); }
.support-modal.open .support-modal-content { transform: translateY(0); }
.support-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 28px; color: var(--orbit-text-3); cursor: pointer; line-height: 1; }
.support-close:hover { color: var(--orbit-text); }
.support-title { font-family: var(--font-editorial); font-size: 28px; margin-bottom: 8px; color: var(--orbit-text); }
.support-desc { font-size: 14px; color: var(--orbit-text-2); margin-bottom: 24px; line-height: 1.5; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; color: var(--orbit-text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--orbit-border); border-radius: 8px; font-family: var(--font-ui); font-size: 15px; background: var(--orbit-bg); color: var(--orbit-text); transition: border-color 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orbit-green); background: var(--orbit-surface); }
.field textarea { resize: vertical; min-height: 100px; }
.support-submit { width: 100%; margin-top: 8px; }
.support-feedback { font-size: 14px; text-align: center; margin-bottom: 12px; font-weight: 500; display: none; }
.support-feedback.error { color: #C0392B; display: block; }
.support-feedback.success { color: var(--orbit-green); display: block; }

@media (max-width: 860px) { .support-modal-content { padding: 24px; } }