/* Athlete Sleep Tracker — Promo Website Styles */
/* Theme extracted from app: dark bg, gold/orange accents */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --color-bg: #0A0A0A;
  --color-surface: #141414;
  --color-surface2: #1E1E1E;
  --color-border: #2A2A2A;
  --color-gold: #FFB300;
  --color-orange: #FF8C00;
  --color-text1: #FFFFFF;
  --color-text2: #FFB300;
  --color-text3: #888888;
  --color-text4: #555555;
  --color-success: #4CAF50;
  --color-error: #F44336;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(255,179,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--color-text1);
  white-space: nowrap;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-text3);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-gold); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--color-text1);
  margin: 5px 0; transition: all 0.3s; border-radius: 1px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* ── HERO ── */
.hero {
  padding: 100px 24px 60px;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 48px;
  min-height: 90vh;
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: 16px;
  background: rgba(255,179,0,0.08); padding: 6px 14px;
  border-radius: 20px; border: 1px solid rgba(255,179,0,0.15);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .gold { color: var(--color-gold); }
.hero-desc {
  font-size: 16px; color: var(--color-text3);
  line-height: 1.7; max-width: 480px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-mockup {
  flex-shrink: 0; width: 280px; position: relative;
}
.device-frame {
  position: relative; border-radius: 28px;
  background: #1a1a1a; padding: 10px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border: 1px solid var(--color-border);
}
.device-frame img {
  border-radius: 20px; width: 100%; display: block;
}
.device-frame::before {
  content: ''; position: absolute; top: 6px;
  left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--color-surface2); z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column; text-align: left;
    padding: 90px 20px 40px; min-height: auto; gap: 32px;
  }
  .hero-mockup { width: 220px; margin: 0 auto; }
}
@media (min-width: 641px) and (max-width: 768px) {
  .hero { gap: 40px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 24px;
  border-radius: var(--radius); font-family: var(--font);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--color-orange); color: #fff;
  box-shadow: 0 0 24px rgba(255,140,0,0.25);
}
.btn-primary:hover {
  background: #e67e00; color: #fff;
  box-shadow: 0 0 32px rgba(255,140,0,0.4);
}
.btn-outline {
  background: transparent; color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.btn-outline:hover {
  background: rgba(255,179,0,0.08); color: var(--color-gold);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }

/* ── SECTIONS ── */
.section {
  padding: 80px 24px; max-width: 1100px; margin: 0 auto;
}
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-gold); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.section-desc {
  font-size: 15px; color: var(--color-text3);
  line-height: 1.7; max-width: 560px; margin-bottom: 48px;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: left;
}
.feature-card:hover {
  border-color: rgba(255,179,0,0.3);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,179,0,0.08); border: 1px solid rgba(255,179,0,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--color-gold);
}
.feature-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
  text-align: left;
}
.feature-card p {
  font-size: 14px; color: var(--color-text3); line-height: 1.65;
  text-align: left;
}
@media (max-width: 768px) {
  .feature-card { text-align: left; }
}

/* ── SCREENSHOT CAROUSEL ── */
.screenshots-section {
  padding: 80px 24px; max-width: 1100px; margin: 0 auto;
}
.carousel-wrap {
  position: relative; max-width: 400px; margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex; transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%; display: flex; justify-content: center;
}
.carousel-slide .device-frame {
  width: 260px; max-width: 100%;
}
.carousel-slide .device-frame img {
  filter: blur(8px); transition: filter 0.4s ease;
}
.carousel-slide .device-frame img.loaded { filter: blur(0); }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--color-border); border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.carousel-dot.active {
  width: 24px; background: var(--color-gold);
}
.carousel-arrows {
  position: absolute; top: 50%; left: 0; right: 0;
  display: flex; justify-content: space-between;
  transform: translateY(-50%); pointer-events: none;
  padding: 0 4px;
}
.carousel-arrow {
  pointer-events: all; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-surface2);
  border: 2px solid var(--color-gold); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px; font-weight: 700; transition: all 0.2s;
  box-shadow: 0 0 12px rgba(255,179,0,0.15);
}
.carousel-arrow:hover {
  background: rgba(255,179,0,0.15); border-color: var(--color-orange);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,179,0,0.06) 0%, rgba(255,140,0,0.04) 100%);
  border: 1px solid rgba(255,179,0,0.12);
  border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center; margin: 0 auto; max-width: 700px;
}
.cta-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--color-text3); margin-bottom: 28px; font-size: 15px; }
.cta-banner .hero-ctas { justify-content: center; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px; text-align: center;
  color: var(--color-text4); font-size: 13px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--color-text3); font-size: 13px; }
.footer-links a:hover { color: var(--color-gold); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 12px; }
}

/* ── LEGAL / CONTENT PAGES ── */
.page-header {
  padding: 100px 24px 40px; max-width: 800px; margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px;
}
.page-header .updated {
  font-size: 13px; color: var(--color-text4);
}
.page-content {
  max-width: 800px; margin: 0 auto; padding: 0 24px 80px;
  text-align: left;
}
.page-content h2 {
  font-size: 20px; font-weight: 700; margin-top: 40px; margin-bottom: 12px;
  color: var(--color-text1);
}
.page-content h3 {
  font-size: 16px; font-weight: 600; margin-top: 28px; margin-bottom: 8px;
  color: var(--color-gold);
}
.page-content p {
  font-size: 14px; color: var(--color-text3); line-height: 1.75;
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 20px; color: var(--color-text3); font-size: 14px;
  line-height: 1.75;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--color-gold); text-decoration: underline; }
.page-content strong { color: var(--color-text1); }

/* ── CONTACT FORM ── */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 560px; margin: 0 auto 80px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--color-text3); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-input {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--color-surface2); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-text1);
  font-family: var(--font); font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none; border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(255,179,0,0.1);
}
textarea.form-input { height: 140px; padding: 14px 16px; resize: vertical; }
.form-file {
  font-size: 13px; color: var(--color-text3);
}
.form-file::file-selector-button {
  background: var(--color-surface2); border: 1px solid var(--color-border);
  color: var(--color-text1); border-radius: var(--radius-sm);
  padding: 8px 16px; font-family: var(--font); font-size: 13px;
  cursor: pointer; margin-right: 12px; transition: border-color 0.2s;
}
.form-file::file-selector-button:hover { border-color: var(--color-gold); }
.form-success {
  display: none; text-align: center; padding: 24px;
  color: var(--color-success); font-weight: 600;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── PRIVACY ACCEPT BUTTON ── */
.privacy-accept-btn {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex; justify-content: center;
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 400px; height: 52px;
  background: var(--color-orange); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 0 24px rgba(255,140,0,0.3);
  transition: background 0.2s;
}
.accept-btn:hover { background: #e67e00; }

/* ── UTILITY ── */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 0 auto; max-width: 1100px;
}
