/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Premium Tokens - Light Theme */
  --bg: #fdfdfd;
  --bg-secondary: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --accent: #2c7a7b; /* Deep chess green derived from icon logic */
  --accent-light: #e6fffa;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

body {
  font-family: 'Synonym', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-size: 15px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(44, 122, 123, 0.02) 10px, rgba(44, 122, 123, 0.02) 20px);
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  from { background-position: 0 0; }
  to { background-position: 100px 0; }
}

h1, h2, h3, h4 {
  font-family: 'Erode', serif;
  line-height: 1.1;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: var(--transition); position: relative; }

/* === STRUCTURAL BASELINES === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e4e4e7, transparent);
  margin: 0;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-glass);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  transition: 0.8s;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(44, 122, 123, 0.4);
  filter: brightness(1.05);
}

/* Link underline effect */
.nav-links a::after, .footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .footer-links a:hover::after {
  width: 100%;
}

/* === NAVIGATION === */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

/* === HERO === */
.hero-arena {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  background: radial-gradient(circle at center, var(--accent-light) 0%, var(--bg) 70%);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  margin-bottom: 1.5rem;
  max-width: 12ch;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
}

.rating-badge {
  background: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* === SHOWCASE === */
.showcase-section {
  background: var(--accent);
  color: #fff;
}

.device-frame {
  max-width: 360px;
  margin: 0 auto;
  border: 12px solid #18181b;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
  position: relative;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* === FEATURES === */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.alternate { direction: rtl; }
  .feature-row.alternate .feature-content { direction: ltr; }
}

.feature-content {
  padding: 0 10px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.feature-visual {
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e4e4e7;
}

/* Offset Grid Effect */
.feature-row:nth-child(even) {
  transform: translateY(30px);
}
@media (min-width: 1024px) {
  .feature-row:nth-child(even) { transform: translateX(60px); }
  .feature-row:nth-child(odd) { transform: translateX(-60px); }
}

/* === STATS RINGS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-ring-container {
  text-align: center;
}

.stat-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
}

.stat-ring svg {
  transform: rotate(-90deg);
}

.stat-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.stat-ring .bg { stroke: #e4e4e7; }
.stat-ring .progress {
  stroke: var(--accent);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 2s ease-out;
}

.stat-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.25rem;
}

/* === GALLERY === */
.gallery-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-viewport::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 280px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
}

@media (max-width: 768px) {
  .gallery-item { width: 200px; height: 350px; }
}

/* === REVIEWS === */
.reviews-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1024px) {
  .reviews-asymmetric { grid-template-columns: 1.5fr 1fr; }
}

.featured-review {
  background: var(--accent-light);
}

.quote-mark {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: -2rem;
}

.stars { color: #f59e0b; margin-bottom: 1rem; }

.supporting-reviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === FAQ === */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e4e4e7;
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

.faq-item.active .ph-caret-down {
  transform: rotate(180deg);
}

/* === DOWNLOAD CTA === */
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-split { grid-template-columns: 1fr 1fr; }
}

/* === FOOTER === */
.footer-main {
  background: var(--bg-secondary);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-logo img { width: 24px; height: 24px; border-radius: 4px; }

.footer-links h4 { margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.newsletter-box {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.newsletter-box input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #e4e4e7;
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid #e4e4e7;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; }
.close-nav { position: absolute; top: 30px; right: 30px; font-size: 2rem; cursor: pointer; }

/* Sticky protection */
body, html { width: 100%; max-width: 100vw; }
