/* ============================================
   GoSatWatch V2 - Premium Space Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --space-black: #050a14;
  --space-dark: #0b1426;
  --space-navy: #0f1f3d;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-purple: #7c3aed;
  --star-white: #f0f8ff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255,255,255,0.08);
  --card-bg: rgba(15,31,61,0.8);
  --glass-bg: rgba(255,255,255,0.04);
  --gradient-hero: linear-gradient(135deg, #050a14 0%, #0b1426 50%, #0f1f3d 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb, #06b6d4);
  --gradient-green: linear-gradient(135deg, #22c55e, #06b6d4);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(37,99,235,0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--space-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; }
ul { list-style: none; }

/* ---- Stars Background ---- */
.stars-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.05) 0%, transparent 60%);
}

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

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-img {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.logo-text .go { color: var(--accent-green); }
.logo-text .sat { color: #fff; }
.logo-text .watch { color: var(--accent-cyan); }

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border: none; background: none;
  font-family: var(--font-body); transition: all 0.25s ease;
  white-space: nowrap;
}
.main-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Dropdown trigger button */
.dropdown-trigger { position: relative; }
.dropdown-trigger .chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-item.open .dropdown-trigger .chevron { transform: rotate(180deg); }
.nav-item.open .dropdown-trigger { color: #fff; background: rgba(255,255,255,0.06); }

/* Dropdown panel */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(8,16,32,0.98);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  min-width: 320px; padding: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}
.nav-item.open .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown section */
.dropdown-section-title {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px 8px; margin-bottom: 4px;
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  color: #fff; background: rgba(37,99,235,0.12);
}
.dropdown-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(37,99,235,0.12); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.dropdown-menu a:hover .dropdown-icon {
  background: rgba(37,99,235,0.25);
}
.dropdown-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dropdown-label strong {
  font-size: 0.875rem; font-weight: 600; color: #fff;
  white-space: nowrap;
}
.dropdown-label small {
  font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
}

/* Dropdown backdrop overlay for click-away close */
.dropdown-backdrop {
  position: fixed; inset: 0; z-index: 1050;
  background: transparent; display: none;
}
.dropdown-backdrop.active { display: block; }

/* CTA button */
.nav-cta {
  background: var(--gradient-accent) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important; box-shadow: 0 2px 12px rgba(37,99,235,0.35);
}
.nav-cta:hover {
  opacity: 0.92; box-shadow: 0 4px 20px rgba(37,99,235,0.5);
  background: var(--gradient-accent) !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.mobile-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* Mobile menu */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(5,10,20,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px 24px; z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav-group { margin-bottom: 16px; }
.mobile-nav-title {
  font-size: 0.75rem; font-weight: 600; color: var(--accent-cyan);
  text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 0 4px;
}
.mobile-nav-links a {
  display: block; padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 0.9rem;
}
.mobile-nav-links a:hover { color: #fff; }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gradient-hero);
}
.hero-orb-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-orb-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  bottom: 0; left: -50px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 0.8rem; color: var(--accent-cyan); font-weight: 500;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: #fff;
}
.hero h1 .highlight {
  background: var(--gradient-accent); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.5); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg); color: var(--text-primary);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border-color); cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }

.hero-visual {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 480px; z-index: 1; pointer-events: none;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--border-color);
}
.stat-item {}
.stat-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ================================================
   APP SHOWCASE SECTIONS
   ================================================ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: rgba(15,31,61,0.3); }

.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent-cyan);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
/* section-badge line prefix removed */

.section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 48px; }

/* App Showcase Grid */
.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-showcase.reverse { direction: rtl; }
.app-showcase.reverse > * { direction: ltr; }

.app-phone-frame {
  background: var(--space-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.app-phone-frame::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
}

.phone-svg-mockup {
  width: 100%; max-width: 280px; margin: 0 auto;
  background: #000; border-radius: 36px; padding: 12px;
  border: 3px solid #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.phone-screen {
  background: var(--space-black); border-radius: 28px;
  overflow: hidden; aspect-ratio: 9/19.5; position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Feature List */
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--glass-bg);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  transition: all 0.3s;
}
.feature-item:hover { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.3); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient-accent); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.feature-text h4 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.feature-text p { font-size: 0.85rem; color: var(--text-secondary); }

/* ================================================
   FEATURES GRID
   ================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-accent); transform: scaleX(0); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(37,99,235,0.3); }
.feature-card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ================================================
   APP STORE BUTTON
   ================================================ */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; padding: 12px 24px;
  border-radius: var(--radius-sm); border: 1px solid #333;
  transition: all 0.3s;
}
.appstore-btn:hover { background: #111; transform: translateY(-2px); color: #fff; }
.appstore-btn svg { width: 24px; height: 24px; }
.appstore-btn-text { text-align: left; }
.appstore-btn-text small { display: block; font-size: 0.65rem; color: #aaa; }
.appstore-btn-text span { display: block; font-size: 1.1rem; font-weight: 600; }

/* ================================================
   STAR MAP SVG VISUALS (CSS-drawn)
   ================================================ */
.star-map-visual {
  width: 100%; aspect-ratio: 1; position: relative;
  background: radial-gradient(ellipse, #0b1a3d 0%, #050a14 80%);
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(37,99,235,0.2);
  box-shadow: 0 0 60px rgba(37,99,235,0.1);
}

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 0.95rem; font-weight: 500; text-align: left;
  font-family: var(--font-body);
}
.faq-icon { font-size: 1.2rem; color: var(--accent-cyan); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ================================================
   CONTACT
   ================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-card h4 { font-weight: 600; color: #fff; margin-bottom: 4px; }
.contact-card p { font-size: 0.875rem; color: var(--text-secondary); }

.contact-form {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: #fff; font-size: 0.9rem; font-family: var(--font-body);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ================================================
   PAGE HEADER BANNER
   ================================================ */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--space-dark) 0%, var(--space-black) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(37,99,235,0.15) 0%, transparent 60%);
}
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; position: relative; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 16px auto 0; position: relative; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-muted); position: relative; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-cyan); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--space-dark); border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 1.2rem; margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-weight: 600; color: #fff; margin-bottom: 16px; font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent-cyan); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: #fff; }

/* ================================================
   RELEASES / TABLE
   ================================================ */
.release-list { display: flex; flex-direction: column; gap: 16px; }
.release-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.release-version {
  background: var(--gradient-accent); color: #fff;
  padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.release-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.release-notes ul { list-style: disc; padding-left: 20px; }
.release-notes li { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 6px; }

/* ================================================
   INLINE SVG VISUALS
   ================================================ */
.orbit-visual { width: 100%; max-width: 320px; margin: 0 auto; }

/* ================================================
   SCROLL TO TOP
   ================================================ */
#scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-glow);
  opacity: 0; transition: all 0.3s; pointer-events: none;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-3px); color: #fff; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .app-showcase, .app-showcase.reverse { grid-template-columns: 1fr; direction: ltr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
