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

:root {
  --bg-dark: #101E24;
  --bg-darker: #0B151A;

  /* Brand Colors matching Theme.swift */
  --brand-orange: #FF6D00;
  --brand-orange-dim: rgba(255, 109, 0, 0.2);
  --brand-orange-dim-large: rgba(255, 109, 0, 0.05);

  --neon-cyan: #00E5FF;
  --neon-cyan-dim: rgba(0, 229, 255, 0.15);

  --active-green: #2EC4B6;

  --text-main: #FFFFFF;
  --text-muted: #81959C;

  /* Glassmorphism settings based on Theme.swift */
  --glass-bg: rgba(27, 45, 53, 0.4);
  --glass-border: rgba(129, 149, 156, 0.15);
  --glass-hover: rgba(27, 45, 53, 0.65);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px var(--brand-orange-dim);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3.5rem;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Sticky Header Nav */
nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(16, 30, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex !important;
  align-items: flex-end !important;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.9;
}

.logo-link .logo-img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px var(--brand-orange-dim));
  margin-bottom: -2px !important;
  /* Visual baseline alignment for the cropped logo */
}

.logo-link .logo-text-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.15 !important;
}

.logo-link .logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.logo-link .logo-slogan {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
  line-height: 1 !important;
  /* Reset line-height to remove extra vertical space below slogan text */
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
  padding-top: 8rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

/* Ambient Glows */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}

.hero::before {
  background: var(--brand-orange-dim-large);
  top: -150px;
  left: -100px;
}

.hero::after {
  background: var(--neon-cyan-dim);
  bottom: -150px;
  right: -100px;
}

.hero-subtitle {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* App Store Badge Button */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
}

.app-store-badge:hover {
  background: var(--glass-hover);
  border-color: var(--brand-orange);
  box-shadow: 0 0 30px var(--brand-orange-dim);
  transform: translateY(-2px);
}

.apple-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* How It Works Section */
.how-it-works {
  background: var(--bg-darker);
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hiw-text-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 50%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hiw-text-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hiw-image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--brand-orange-dim);
  border: 1px solid var(--glass-border);
}

.hiw-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hiw-image-container:hover img {
  transform: scale(1.03);
}

/* Features - Alternating Zigzag Layout with real screenshots */
.features {
  position: relative;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1.1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 109, 0, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-orange);
  box-shadow: 0 0 15px rgba(255, 109, 0, 0.05);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.feature-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Screenshot mockup frame */
.screenshot-wrapper {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  padding: 10px;
  background: rgba(27, 45, 53, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--brand-orange-dim-large);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  justify-content: center;
}

.screenshot-wrapper.phone {
  border-radius: 36px;
  max-width: 280px;
}

.screenshot-wrapper.tv {
  max-width: 500px;
}

.screenshot-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.screenshot-wrapper.phone img {
  border-radius: 28px;
}

.screenshot-wrapper:hover {
  transform: translateY(-8px);
  border-color: var(--brand-orange);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), 0 0 30px var(--brand-orange-dim);
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(129, 149, 156, 0.5);
}

/* Responsive design adjustments */
@media (max-width: 992px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hiw-image-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .feature-text {
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }

  nav {
    padding: 1rem 0;
  }

  .logo-slogan {
    display: none;
  }

  .nav-links {
    display: none;
    /* simple burger menu / hide for clean landing */
  }

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

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links a {
    margin: 0;
  }
}