/* ============================================================
   Navandy — Stylesheet
   Light, blue, hand-written. No framework, no build step.
   ============================================================ */

/* === Self-hosted fonts (Catamaran headings, Lato body) === */
@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/catamaran-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/catamaran-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Design tokens === */
:root {
  /* Brand blues */
  --blue-900: #0a2a43;
  --blue-800: #0f3a5a;
  --blue-700: #134b74;
  --blue-600: #1d6fa5;
  --blue-500: #2b8fd1;
  --blue-400: #57a7dc;
  --blue-300: #86c0e7;
  --blue-200: #b8daf2;
  --blue-100: #e6f3fc;
  --accent: #00d1ff;

  /* Semantic */
  --text: #0f172a;
  --text-muted: #51627a;
  --white: #fff;
  --bg: #fff;
  --bg-alt: #f5f9fc;
  --muted: #e6e7e9;
  --border: #e3e9f0;

  --gradient-hero: linear-gradient(160deg, var(--blue-600) 0%, var(--blue-800) 60%, var(--blue-900) 100%);
  --gradient-cta: linear-gradient(135deg, var(--blue-600), var(--blue-500));

  --font-heading: Catamaran, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: Lato, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 5rem;

  --shadow-sm: 0 1px 3px rgba(10, 42, 67, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 42, 67, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 42, 67, 0.16);

  --space-section: 5rem;
  --max-width: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }

/* === Layout helpers === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 992px) { .section { padding: 6rem 0; } }

.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.6rem; }
.section-lead {
  font-size: 1.2rem; font-weight: 300; color: var(--text-muted);
  max-width: 620px; margin: 0 auto;
}
.section-intro { margin-bottom: 2.5rem; }

/* === Skip link === */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  padding: 0.75rem 1.5rem; background: var(--blue-800); color: var(--white);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-logo {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem;
  color: var(--white); letter-spacing: 0.01em;
}
.nav.scrolled .nav-logo { color: var(--blue-900); }
.nav-logo:hover { color: var(--white); }
.nav.scrolled .nav-logo:hover { color: var(--blue-700); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover { color: var(--blue-700); }

/* Language switcher inside nav */
.nav-langs { display: flex; align-items: center; gap: 0.6rem; padding-left: 0.25rem; }
.nav-langs a, .nav-langs strong {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.nav-langs strong { color: var(--white); }
.nav.scrolled .nav-langs strong { color: var(--blue-900); }
.nav-langs a { color: rgba(255, 255, 255, 0.6); }
.nav.scrolled .nav-langs a { color: var(--blue-400); }

.nav-cta {
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--white); color: var(--blue-700) !important;
  font-weight: 700; font-size: 0.9rem;
}
.nav-cta:hover { background: var(--blue-100); color: var(--blue-800) !important; }
.nav.scrolled .nav-cta { background: var(--blue-600); color: var(--white) !important; }
.nav.scrolled .nav-cta:hover { background: var(--blue-700); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--white); margin: 5px 0; transition: var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--blue-900); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-transform: uppercase; padding: 1.1rem 2.25rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08rem;
  border-radius: var(--radius-pill); border: none; color: var(--white);
  text-decoration: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--blue-500); box-shadow: 0 6px 20px rgba(43, 143, 209, 0.35); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-600); color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: var(--blue-800); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--blue-700); color: var(--white); transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 209, 255, 0.4); }

/* === Store badges === */
.store-badges {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.store-badges.center { justify-content: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.5rem 0.7rem 1.15rem; border-radius: 0.85rem;
  background: var(--white); color: var(--blue-900);
  border: 1px solid var(--border); transition: all var(--transition);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--blue-900); }
.store-badge svg { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-badge-label { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.02em; }
.store-badge-store { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

/* Translucent variant for use on blue backgrounds */
.store-badge-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.store-badge-glass:hover { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.store-badge-glass .store-badge-label { color: rgba(255, 255, 255, 0.7); }
.store-badge-glass svg path { fill: var(--white); }

/* === Hero / Masthead === */
.masthead {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: var(--gradient-hero);
  padding: 9.5rem 1.5rem 6rem;
}
.masthead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.25), transparent 60%);
}
@media (min-width: 992px) { .masthead { padding: 12rem 1.5rem 9rem; } }

.masthead-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; margin-bottom: 1.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: var(--white);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.6); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 209, 255, 0); }
}

.masthead-heading {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 0.75rem; line-height: 1.05;
}
.masthead-subheading {
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 300;
  margin: 0 auto 2.25rem; max-width: 640px; color: rgba(255, 255, 255, 0.92);
}
.masthead .store-badges { margin-bottom: 1.25rem; }
.hero-platforms { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); font-weight: 400; }

/* Decorative circles */
.bg-circle {
  position: absolute; border-radius: 100%;
  background: linear-gradient(0deg, var(--blue-500), var(--blue-700));
  opacity: 0.25; pointer-events: none;
}
.bg-circle-1 { height: 90rem; width: 90rem; bottom: -55rem; left: -55rem; }
.bg-circle-2 { height: 50rem; width: 50rem; top: -25rem; right: -25rem; }
.bg-circle-3 { height: 20rem; width: 20rem; bottom: -10rem; right: 5%; }
.bg-circle-4 { height: 30rem; width: 30rem; top: -5rem; right: 35%; }

/* === Features === */
.feature { padding: 2.5rem 0; }
@media (min-width: 992px) { .feature { padding: 3rem 0; } }

.feature-row {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
}
@media (min-width: 992px) {
  .feature-row { grid-template-columns: 1fr 2fr; }
  .feature-row.reverse { grid-template-columns: 2fr 1fr; }
  .feature-row.reverse .feature-icon-wrap { order: 2; }
  .feature-row.reverse .feature-body { order: 1; }
}

.feature-icon-wrap { text-align: center; }
.feature-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--blue-100); object-fit: contain;
  box-shadow: var(--shadow-sm); margin: 0 auto; padding: 0;
}
@media (min-width: 768px) { .feature-icon { width: 116px; height: 116px; } }
@media (min-width: 1200px) { .feature-icon { width: 132px; height: 132px; } }

.feature-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.feature-body .lead { font-size: 1.18rem; font-weight: 300; color: var(--text-muted); margin-bottom: 1rem; }
.feature-body ul { font-size: 1.1rem; font-weight: 300; }
.feature-body li { margin-bottom: 0.35rem; display: flex; align-items: baseline; gap: 0.5rem; }
.feature-body li::before { content: "✓"; color: var(--blue-500); font-weight: 700; flex-shrink: 0; }

/* === Screenshots === */
#screenshots { background: var(--bg-alt); }
.shot { margin: 0 auto; border-radius: var(--radius-lg); }
@media (max-width: 576px) { .shot { max-width: 80%; } }

/* === Download CTA === */
.download { padding: var(--space-section) 0; }
.download-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--gradient-cta); color: var(--white);
  border-radius: var(--radius-lg); padding: 3.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .download-card { padding: 4.5rem 3rem; } }
.download-card::before {
  content: ""; position: absolute; top: -50%; right: -15%;
  width: 55%; height: 200%; background: rgba(255, 255, 255, 0.07);
  border-radius: 50%; transform: rotate(-15deg);
}
.download-logo {
  width: 88px; height: 88px; border-radius: 1.25rem; margin: 0 auto 1.5rem;
  position: relative; z-index: 1; box-shadow: var(--shadow-md);
}
.download-card h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.download-card p { color: rgba(255, 255, 255, 0.9); max-width: 480px; margin: 0 auto 2rem; position: relative; z-index: 1; }
.download-card .store-badges { position: relative; z-index: 1; }
.download-stores { margin-top: 1.25rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* === Footer === */
footer {
  padding: 2.75rem 0; background: var(--white);
  text-align: center; font-size: 0.9rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
footer p { margin-bottom: 0.5rem; }
footer p:last-child { margin-bottom: 0; }
footer a { text-decoration: none; color: var(--blue-600); }
footer a:hover { text-decoration: underline; }

/* === Scroll reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* === Mobile nav === */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.5rem; display: none;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-muted); }
  .nav-links a:hover { color: var(--blue-700); }
  .nav-langs { padding-left: 0; }
  .nav-langs strong { color: var(--blue-900); }
  .nav-langs a { color: var(--blue-400); }
  .nav-cta { background: var(--blue-600); color: var(--white) !important; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
