/* ============================================================
   FitReclaim – style.css
   Dark athletic premium design system
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-deep:     #080c14;
  --bg-card:     #0d1320;
  --bg-card2:    #111827;
  --accent:      #0ea5e9;
  --accent2:     #22d3ee;
  --accent-dim:  rgba(14,165,233,0.15);
  --accent-glow: rgba(14,165,233,0.35);
  --text-primary: #f0f6ff;
  --text-muted:  #94a3b8;
  --text-dim:    #4b5a72;
  --border:      rgba(14,165,233,0.18);
  --border-dim:  rgba(255,255,255,0.06);

  --font-display: 'Barlow Condensed', 'Heebo', sans-serif;
  --font-body:    'DM Sans', 'Heebo', sans-serif;
  --font-he:      'Heebo', 'DM Sans', sans-serif;

  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hebrew body font */
:lang(he) body,
[lang="he"] body,
[lang="he"] { font-family: var(--font-he); }

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* --- Grid Dot Background --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(14,165,233,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.lang-toggle button:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,0.55) 0%,
    rgba(8,12,20,0.3) 40%,
    rgba(8,12,20,0.7) 80%,
    var(--bg-deep) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 30px var(--accent-glow));
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(14,165,233,0.3);
  animation: fadeUp 0.8s 0.1s ease both;
}

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

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Google Play Badge */
.play-badge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(34,211,238,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.6;
  cursor: default;
  position: relative;
  transition: opacity var(--transition);
}

.play-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.play-badge-text small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.play-badge-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.coming-soon-tag {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-dim);
  border-radius: 100px;
  border: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: transparent; }

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(14,165,233,0.12);
}

.feature-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.feature-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: linear-gradient(180deg, transparent, rgba(14,165,233,0.04), transparent);
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-header .section-sub { margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px var(--accent-glow);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  text-align: center;
}

.download-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.download-box {
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.download-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.download-box::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34,211,238,0.15), transparent 70%);
  pointer-events: none;
}

.download-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.download-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-dim);
  padding: 2rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-muted); }

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

/* ============================================================
   POLICY / TERMS PAGES
   ============================================================ */
.policy-page {
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.policy-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.policy-page .policy-date {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.policy-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}

.policy-page p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.policy-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.policy-page ul li {
  color: var(--text-muted);
  line-height: 1.75;
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.policy-page ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.policy-page a {
  color: var(--accent);
  text-decoration: none;
}

.policy-page a:hover { text-decoration: underline; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.85); }
}

/* Scroll-triggered animation classes */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RTL OVERRIDES
   ============================================================ */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .play-badge-text { align-items: flex-end; }

[dir="rtl"] .policy-page ul li {
  padding-left: 0;
  padding-right: 1.25rem;
}
[dir="rtl"] .policy-page ul li::before {
  left: auto;
  right: 0;
  content: '←';
}

/* Step connector in RTL */
[dir="rtl"] .steps::before {
  background: linear-gradient(270deg, var(--accent), var(--accent2), var(--accent));
}

[dir="rtl"] .reveal-left {
  transform: translateX(32px);
}
[dir="rtl"] .reveal-right {
  transform: translateX(-32px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { flex-direction: row; text-align: left; }
  [dir="rtl"] .step { flex-direction: row-reverse; text-align: right; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 1rem; }
  .section-inner { padding: 4rem 1.25rem; }
  .nav-links { display: none; }
  .hero-logo { width: 160px; }
  .download-box { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  [dir="rtl"] .footer-inner { flex-direction: column; }
  .step { flex-direction: column; text-align: center; }
  [dir="rtl"] .step { flex-direction: column; text-align: center; }
}
