/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  background: #0F0F0F;
  color: #F5F5F7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #E8553A; text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid #1C1C1E;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #F5F5F7;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #8E8E93;
  transition: color 0.2s;
}
.nav-links a:hover { color: #F5F5F7; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 85, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 500px; height: 500px;
  background: url('../img/bear-mascot-light.png') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1C1C1E;
  border: 1px solid #2C2C2E;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #E8553A;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-title .accent { color: #E8553A; }
.hero-subtitle {
  font-size: 20px;
  color: #8E8E93;
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 460px;
}

/* Hero CTA Group */
.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1C1C1E;
  border: 1px solid #2C2C2E;
  border-radius: 14px;
  padding: 14px 28px;
  color: #8E8E93;
  font-size: 15px;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.2s, opacity 0.2s;
}
.hero-cta svg { opacity: 0.6; }

/* Log In button — active, clickable, accent */
.hero-cta-login {
  background: #E8553A;
  border-color: #E8553A;
  color: #FFF;
  cursor: pointer;
}
.hero-cta-login svg { opacity: 1; }
.hero-cta-login:hover {
  opacity: 0.9;
  color: #FFF;
}

/* Coming Soon on iOS — greyed out */
.hero-cta-ios {
  cursor: default;
}
.hero-cta-ios:hover { border-color: #48484A; opacity: 1; }

.hero-phone { flex-shrink: 0; position: relative; z-index: 2; }

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
  width: 260px;
  height: 594px;
  background: #110f12;
  border-radius: 36px;
  border: 3px solid #2C2C2E;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.phone-mockup-inner {
  text-align: center;
  padding: 20px;
}
.phone-mockup-inner svg { margin: 0 auto 16px; opacity: 0.3; }
.phone-mockup-inner p {
  font-size: 13px;
  color: #48484A;
  font-weight: 500;
}
/* Screenshot image inside phone */
.phone-screen {
  width: 100%;
  height: calc(100% - 54px);
  object-fit: cover;
  object-position: top;
  border-radius: 0 0 33px 33px;
  position: absolute;
  top: 54px;
  left: 0;
}
.feature-phone .phone-screen {
  height: calc(100% - 46px);
  top: 46px;
  border-radius: 0 0 27px 27px;
}

/* Phone Status Bar */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #110f12;
  border-radius: 33px 33px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 24px 0;
  z-index: 3;
}
.feature-phone .phone-status-bar {
  height: 46px;
  border-radius: 27px 27px 0 0;
  padding: 14px 20px 0;
}
.status-time {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  letter-spacing: 0.2px;
}
.feature-phone .status-time {
  font-size: 12px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-phone .status-icons svg {
  transform: scale(0.85);
}

/* Notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0F0F0F;
  border-radius: 14px;
  z-index: 4;
}
/* Bottom home indicator bar */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #48484A;
  border-radius: 2px;
  z-index: 4;
}

/* ===== FEATURE SECTIONS ===== */
.features {
  padding: 0 32px;
  position: relative;
}

.feature-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 0;
  display: flex;
  align-items: center;
  gap: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
}
/* Ambient lighting on feature sections */
.feature-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.feature-section:nth-child(odd)::after {
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(232, 85, 58, 0.025) 0%, transparent 65%);
}
.feature-section:nth-child(even)::after {
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 0%, transparent 65%);
}
.feature-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-section:nth-child(even) { flex-direction: row-reverse; }
.feature-section + .feature-section {
  border-top: 0.5px solid #1C1C1E;
}

.feature-text { flex: 1; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(232, 85, 58, 0.1);
  border-radius: 14px;
  margin-bottom: 20px;
}
.feature-label {
  font-size: 13px;
  font-weight: 700;
  color: #E8553A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.feature-desc {
  font-size: 17px;
  color: #8E8E93;
  line-height: 1.65;
  max-width: 440px;
}
.feature-phone { flex-shrink: 0; position: relative; z-index: 2; }
.feature-phone .phone-mockup {
  width: 220px;
  height: 506px;
  border-radius: 30px;
}
.feature-phone .phone-mockup::before {
  width: 80px;
  height: 24px;
  top: 10px;
  border-radius: 12px;
}

/* Section-specific accent colors */
.feature-section[data-feature="quest"] .feature-icon {
  background: rgba(232, 85, 58, 0.12);
}
.feature-section[data-feature="travel"] .feature-icon {
  background: rgba(59, 130, 246, 0.1);
}
.feature-section[data-feature="travel"] .feature-label {
  color: #3B82F6;
}
.feature-section[data-feature="grades"] .feature-icon {
  background: rgba(232, 85, 58, 0.08);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 0.5px solid #1C1C1E;
  padding: 48px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 500;
}
.footer-links a:hover { color: #F5F5F7; }
.footer-copy {
  font-size: 13px;
  color: #48484A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== LEGAL / ABOUT PAGES ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}
.page-content h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.page-meta {
  font-size: 14px;
  color: #48484A;
  margin-bottom: 48px;
}
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #F5F5F7;
}
.page-content p, .page-content ul {
  font-size: 15px;
  color: #AEAEB2;
  line-height: 1.7;
  margin-bottom: 16px;
}
.page-content ul { padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: #E8553A; }

/* About page specific */
.about-contact {
  background: #1C1C1E;
  border: 1px solid #2C2C2E;
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.about-contact h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-contact p {
  font-size: 15px;
  color: #8E8E93;
  margin-bottom: 16px;
}
.about-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8553A;
  color: #FFF;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}
.about-contact a:hover { opacity: 0.9; color: #FFF; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-logo span { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  .hero { padding: 100px 20px 60px; }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 17px; margin: 0 auto 32px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-cta-group { align-items: center; }

  .features { padding: 0 20px; }
  .feature-section {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
    padding: 60px 0;
  }
  .feature-title { font-size: 28px; }
  .feature-desc { margin: 0 auto; font-size: 15px; }

  .page-content { padding: 100px 20px 60px; }
  .page-content h1 { font-size: 28px; }

  .site-footer { padding: 36px 20px; }
}
