/* ── GOOGLE FONTS ────────────────────────────────────── */
/* Loaded via <link> in HTML for better performance       */

/* ── VARIABLES ───────────────────────────────────────── */

:root {
  --green: #5CFF71;
  --cyan: #2AF7D6;
  --gradient: linear-gradient(135deg, #5CFF71 0%, #2AF7D6 100%);
  --gradient-h: linear-gradient(90deg, #5CFF71 0%, #2AF7D6 100%);
  --accent-dark: #0D6130;

  --bg: #07090A;
  --bg-2: #0B0F10;
  --bg-card: #101518;
  --bg-card-hover: #141B1E;

  --text: #EDF4EF;
  --text-muted: rgba(237, 244, 239, 0.52);
  --text-dim: rgba(237, 244, 239, 0.22);

  --border: rgba(92, 255, 113, 0.08);
  --border-bright: rgba(92, 255, 113, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 36px;
  --radius-phone: 40px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1160px;
  --nav-h: 68px;
}

/* ── RESET ───────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* Subtle grain overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── NAVIGATION ──────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(7, 9, 10, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.site-nav.scrolled {
  background: rgba(7, 9, 10, 0.96);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: auto;
  flex-shrink: 0;
}

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

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

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

.nav-links .nav-cta {
  color: var(--bg);
  background: var(--gradient);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
  -webkit-text-fill-color: var(--bg);
}

.nav-links .nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── FOOTER ──────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 52px clamp(20px, 5vw, 60px);
  text-align: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── APP STORE BADGE ─────────────────────────────────── */

.badge-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 24px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.badge-download:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.badge-apple-logo {
  width: 22px;
  height: 26px;
  fill: #fff;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-small {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  line-height: 1;
  font-weight: 400;
}

.badge-big {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ── PHONE FRAME ─────────────────────────────────────── */

.phone-frame {
  position: relative;
  border-radius: var(--radius-phone);
  background: #090C0C;
  border: 2px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  /* Force GPU compositing at device pixel ratio so images render at full
     resolution instead of being rasterized at 1× behind a compositor layer. */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(42, 247, 214, 0.05);
}

.phone-frame img {
  width: 100%;
  display: block;
  /* Crisp downscaling in WebKit/Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── SCROLL REVEAL ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.42s; }

/* ── UTILITIES ───────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* ── ANIMATIONS ──────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── RESPONSIVE NAV ──────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
}
