/* proximator.app — standalone port of fcpbooster.com/proximator (no Tailwind, no framework) */

:root {
  --accent: #00E9DA;
  --accent-ink: #00201d;
  --text: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #666;
  --line: #1a1a1a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
p { line-height: 1.6; }
a { color: inherit; }
img, video { max-width: 100%; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

/* ─── Fixed nav (kept from the previous proximator.app page) ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f1f1f;
}

.nav-inner, .lang-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand .mark { height: 22px; width: auto; }
.nav-brand .word { height: 13px; width: auto; opacity: 0.9; }

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: #2af0e2; }

/* Language strip right under the nav */
.lang-bar {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 40;
}
.lang-inner { justify-content: flex-end; padding-top: 0.25rem; padding-bottom: 0.25rem; }

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
}
.lang-select .icon {
  position: absolute;
  inset-inline-start: 0.5rem;
  pointer-events: none;
  font-size: 14px;
  opacity: 0.8;
}
.lang-select .chev { inset-inline-start: auto; inset-inline-end: 0.5rem; font-size: 12px; }
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.75rem;
  padding-block: 0.2rem;
  padding-inline: 1.6rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lang-select select:hover { border-color: var(--accent); }

/* ─── Page ───────────────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

/* Only hide when JS is there to reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(0, 233, 218, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cta .icon { font-size: 20px; }
.cta:hover {
  transform: translateY(-2px);
  background: #2af0e2;
  box-shadow: 0 12px 36px rgba(0, 233, 218, 0.32);
}
.cta:active { transform: scale(0.98); }

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--accent);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qr-trigger:hover { opacity: 1; }

/* Hero */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-brand { display: flex; align-items: center; gap: 0.7rem; }
.hero-brand img { width: 46px; height: 46px; border-radius: 10px; }
.hero-brand h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }

.tagline {
  font-size: clamp(1.9rem, 3.9vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 980px;
  text-wrap: balance;
}

.hero-media { position: relative; width: 100%; margin-top: 1rem; }
.hero-media video { display: block; width: 100%; height: auto; }
.hero-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 640px);
  text-align: center;
  text-wrap: balance;
  font-size: 0.875rem;
  color: #fff;
  pointer-events: none;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.section-heading {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 44%);
  justify-content: space-between;
  row-gap: 1.5rem;
  column-gap: 2rem;
}

.feature { display: flex; gap: 1rem; }
.feature > div { min-width: 0; overflow-wrap: anywhere; }
.feature .icon { font-size: 28px; color: var(--accent); margin-top: 2px; }
.feature h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.feature p { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }
.white { color: var(--text); }

.footnote {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 620px;
  text-align: center;
  line-height: 1.5;
  margin-top: -1rem;
}

/* Image sections */
.story { display: flex; flex-direction: column; gap: 3.5rem; align-items: center; }
.story-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 740px;
  text-align: center;
}
.story-text p { font-size: 1rem; color: #b2b2b2; line-height: 1.7; }
.highlight { color: var(--accent); font-weight: 500; }
.story img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 4rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-cta img { width: 64px; height: 64px; border-radius: 14px; }
.footer-cta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 640px;
  text-wrap: balance;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* QR modal */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.qr-modal.is-open { opacity: 1; pointer-events: all; }
.qr-box {
  position: relative;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.qr-modal.is-open .qr-box { transform: none; }
.qr-close {
  position: absolute;
  top: 0.75rem; right: 0.875rem;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.qr-close:hover { color: var(--text); }
.qr-box img { width: 200px; height: 200px; border-radius: 8px; }
.qr-box p { font-size: 0.8125rem; color: var(--text-2); }

/* RTL */
html[dir="rtl"] .feature h3,
html[dir="rtl"] .feature p { text-align: right; unicode-bidi: plaintext; }

/* Phone */
@media (max-width: 600px) {
  main { gap: 3.5rem; padding-top: calc(var(--nav-h) + 3rem); }
  .hero { gap: 1.25rem; }
  .tagline br { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-caption { position: static; transform: none; width: 100%; margin-top: 0.75rem; }
}
