/* ============================================
   Coachin Landing Page — Obsidian Dark Theme
   ============================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0D0B09;
  --bg-primary: #151210;
  --bg-card: #1E1A17;
  --bg-card-hover: #252019;
  --border: #2C241E;
  --accent: #CCFF00;
  --accent-dim: rgba(204, 255, 0, 0.12);
  --accent-glow: rgba(204, 255, 0, 0.25);
  --text-primary: #F5F5F5;
  --text-secondary: #9E9E9E;
  --text-muted: #6B6B6B;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Header / Nav ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 11, 9, 0.8);
  border-bottom: 1px solid rgba(44, 36, 30, 0.5);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(13, 11, 9, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--accent);
  color: #000;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  margin: 0 auto 32px;
  box-shadow: 0 0 60px var(--accent-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.play-badge {
  height: 64px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.play-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 24px var(--accent-glow));
}

/* ── Features Section ── */
.features {
  padding: 100px 24px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(204, 255, 0, 0.15);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(204, 255, 0, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-card:hover .feature-icon svg {
  fill: #000;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  transition: var(--transition);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screenshots Section ── */
.screenshots {
  padding: 100px 24px;
  overflow: hidden;
}

.screenshots-track {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  position: relative;
}

.phone-frame {
  width: 260px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.phone-frame:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 255, 0, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-primary);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.screenshot-placeholder svg {
  width: 40px;
  height: 40px;
  fill: var(--text-muted);
  opacity: 0.5;
}

.screenshots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 24px;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-inner .play-badge {
  position: relative;
  z-index: 1;
}

/* ── Footer ── */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--accent);
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.footer-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.footer-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: var(--transition);
}

.footer-link:hover svg {
  fill: var(--accent);
}

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .phone-frame {
    width: 220px;
  }

  .cta-inner {
    padding: 40px 24px;
  }

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

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

  .header-logo span {
    display: none;
  }
}
