/* ============================================================
   OFFLINE AI — Apple-Inspired Design System
   ============================================================ */

:root {
  --apple-blue: #d97757;
  --apple-blue-hover: #c96849;
  --apple-black: #1d1d1f;
  --apple-gray: #6e6e73;
  --apple-light: #f6f0e8;
  --apple-white: #ffffff;
  --apple-dark: #000000;
  --apple-border: rgba(0,0,0,0.1);
  --nav-height: 48px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--apple-white);
  color: var(--apple-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--nav-height);
  background: rgba(22, 22, 24, 0.74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.logo svg { color: rgba(255,255,255,0.88); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  font-weight: 420;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  position: relative;
}

.nav-links a:hover { color: rgba(255,255,255,1); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-link-active::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.nav-links a.nav-link-active { color: rgba(255,255,255,0.98); }

.nav-download-btn {
  justify-self: end;
  font-size: 0.8125rem;
  font-weight: 520;
  color: rgba(255,255,255,0.92);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-download-btn:hover {
  color: rgba(255,255,255,1);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
}

.nav-toggle,
.nav-menu-btn {
  display: none;
}

/* ============================================================
   HERO — Full viewport, dark, cinematic
   ============================================================ */

.hero {
  position: relative;
  /* Use svh when available, fall back to vh for older browsers */
  min-height: 100svh;
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 0;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 2rem 2rem;
  max-width: 820px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #f5f5f7;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #f0b36f, #d97757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(245,245,247,0.6);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: var(--apple-blue);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
  color: #fff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #f5f5f7;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: 980px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1;
}

#heroModel {
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  max-width: 1400px; /* larger cap so model can appear bigger on wide screens */
  max-height: 1400px;
}

#heroModel:active { cursor: grabbing; }

@media (max-width: 768px) {
  .hero-body {
    padding: 4rem 1.25rem 1.5rem;
  }

  .hero-visual {
    max-width: min(88vw, 360px);
  }

  /* Keep a square aspect ratio on narrow screens to avoid jumpy resizing */
  #heroModel {
    aspect-ratio: 1 / 1;
    width: 92%;
    max-width: 760px;
  }
}

/* Desktop: place hero text on the left and model at the right edge */
@media (min-width: 992px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center; /* was space-between */
    gap: 4rem;               /* controlled gap between text and model */
    padding: 0 4rem;
    overflow: visible; /* allow hero model to overflow for large transforms/shadows */
  }

  .hero-body {
    width: 50%;
    max-width: 640px;
    text-align: left;
    padding: 5.25rem 1rem 3.5rem;
    z-index: 4;
  }

  .hero-ctas { justify-content: flex-start; }

  .hero-visual {
    width: 42%;
    max-width: 600px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center; /* was flex-end */
    padding-right: 0;        /* removed the extra offset */
    pointer-events: none;
  }

  #heroModel {
    width: clamp(420px, 40vw, 900px);
    /* avoid using viewport-height to prevent layout jitter on mobile chrome show/hide */
    max-height: none;
    aspect-ratio: 1 / 1;
    transform: translateX(0) scale(0.98);
    transition: transform 220ms ease;
    pointer-events: auto;
    box-shadow: 0 18px 46px rgba(0,0,0,0.45);
    border-radius: 1rem;
    overflow: visible;
    position: relative;
    z-index: 6; /* place above surrounding content so shadows/edges are visible */
  }

@media (hover: hover) and (pointer: fine) {
  /* Only enable hover-scale for devices with a real pointer */
  #heroModel:hover { transform: translateX(0) scale(1); }
}

/* Hint browser to optimize transforms */
#heroModel { will-change: transform; }

}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee-wrap {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 0.875rem 0;
  background: #111;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  align-items: center;
}

.marquee-item {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.marquee-sep {
  color: var(--apple-blue);
  font-weight: 900;
  font-size: 0.875rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   STATEMENT SECTION — white, huge text
   ============================================================ */

.statement-section {
  background: var(--apple-white);
  padding: 7rem 2rem;
  text-align: center;
}

.statement-section .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 1.25rem;
}

.statement-section h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--apple-black);
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.statement-section p {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--apple-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================================
   DARK STATEMENT — near-black, single bold line
   ============================================================ */

.dark-statement {
  background: #000;
  padding: 7rem 2rem;
  text-align: center;
}

.dark-statement h2 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #f5f5f7;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.dark-statement h2 span {
  color: var(--apple-blue);
}

.dark-statement p {
  font-size: 1.0625rem;
  color: rgba(245,245,247,0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   FEATURES — Apple grid tiles
   ============================================================ */

.features-section {
  background: var(--apple-light);
  padding: 5rem 2rem 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--apple-black);
}

.features-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-tile {
  background: var(--apple-white);
  border-radius: 1.125rem;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.feature-tile-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #007aff20, #5ac8fa15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
}

.feature-tile h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-black);
}

.feature-tile p {
  font-size: 0.9375rem;
  color: var(--apple-gray);
  line-height: 1.6;
}

/* ============================================================
   SPLIT SECTION — image/visual left, text right
   ============================================================ */

.split-section {
  display: flex;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
}

.split-section.light { background: var(--apple-white); }
.split-section.dark  { background: #000; }

.split-section.dark h2  { color: #f5f5f7; }
.split-section.dark .label { color: var(--apple-blue); }
.split-section.dark p   { color: rgba(245,245,247,0.55); }

.split-visual {
  flex: 1;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2a1812, #140b08);
}

.split-visual svg {
  width: min(300px, 80%);
  height: auto;
  color: #d97757;
  opacity: 0.8;
}

.split-visual-photo {
  background: none;
  padding: clamp(1rem, 2.5vw, 2rem);
}

.split-photo-frame {
  width: min(540px, 88%);
  aspect-ratio: 16 / 10;
  border-radius: 0.9rem;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.split-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
}

.split-text {
  flex: 1;
  padding: 4rem 4rem 4rem 3rem;
}

.split-text .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 1rem;
  display: block;
}

.split-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--apple-black);
  margin-bottom: 1rem;
}

.split-text p {
  font-size: 1.0625rem;
  color: var(--apple-gray);
  line-height: 1.65;
  max-width: 420px;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */

.download-section {
  background: var(--apple-light);
  padding: 5rem 2rem 7rem;
}

.download-section .section-header {
  margin-bottom: 1rem;
}

.download-subtitle {
  text-align: center;
  color: var(--apple-gray);
  font-size: 1.0625rem;
  margin-bottom: 3.5rem;
}

.download-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.download-layout > div {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dl-column-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--apple-black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding: 0 0.35rem 0.65rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dl-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.download-card {
  background: linear-gradient(155deg, rgba(255,255,255,0.97), rgba(248,249,252,0.95));
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.07);
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 92px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.download-card:hover {
  border-color: rgba(217,119,87,0.25);
  box-shadow: 0 14px 34px rgba(0, 34, 80, 0.09);
  transform: translateY(-2px);
}

.dl-icon {
  width: 2.9rem;
  height: 2.9rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: linear-gradient(155deg, #f4f7fb, #e8edf7);
  border: 1px solid rgba(0,0,0,0.06);
  color: #1f2937;
}

.dl-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dl-info { flex: 1; }

.dl-name {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--apple-black);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.dl-desc {
  font-size: 0.8125rem;
  color: var(--apple-gray);
  line-height: 1.35;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  min-width: 102px;
  padding: 0.54rem 1rem;
  background: var(--apple-blue);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 560;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-dl:hover {
  background: var(--apple-blue-hover);
  box-shadow: 0 6px 14px rgba(217,119,87,0.28);
  transform: translateY(-1px);
  color: #fff;
}

.download-empty {
  text-align: center;
  color: var(--apple-gray);
  font-size: 0.875rem;
  padding: 1.4rem 1rem;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.7);
}

.download-loading {
  text-align: center;
  color: var(--apple-gray);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ============================================================
   FOOTER — Apple multi-column
   ============================================================ */

.footer {
  background: #f5f5f7;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--apple-gray);
  line-height: 1.6;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--apple-gray);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--apple-gray);
  transition: color 0.15s ease;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--apple-gray);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-page { background: var(--apple-white); }

.privacy-nav {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.12) !important;
}

.privacy-nav .logo,
.privacy-nav .nav-links a,
.privacy-nav .nav-download-btn { color: var(--apple-black) !important; }

.privacy-nav .logo svg { color: var(--apple-black) !important; }
.privacy-nav .nav-links a:hover { color: var(--apple-blue) !important; }
.privacy-nav .nav-links a.nav-link-active { color: var(--apple-blue) !important; }
.privacy-nav .nav-download-btn {
  border-color: rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.03);
}

.privacy-nav .nav-download-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.24);
}

.privacy-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.privacy-hero {
  text-align: center;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.privacy-hero-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--apple-blue);
  margin: 0 auto 1.5rem;
}

.privacy-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--apple-black);
  margin-bottom: 0.5rem;
}

.privacy-hero p {
  font-size: 1.0625rem;
  color: var(--apple-gray);
}

.privacy-intro-text {
  font-size: 1.0625rem;
  color: var(--apple-gray);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.privacy-block {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  background: #fff;
}

.privacy-block-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.privacy-block-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--apple-blue);
  flex-shrink: 0;
}

.privacy-block-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--apple-black);
  letter-spacing: -0.01em;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.privacy-list li {
  font-size: 0.9375rem;
  color: var(--apple-gray);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--apple-blue);
}

.privacy-warning {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(255,204,0,0.08);
  border: 1px solid rgba(255,204,0,0.3);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: var(--apple-gray);
}

.privacy-contact-card {
  background: var(--apple-light);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.privacy-contact-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: 0.5rem;
}

.privacy-contact-card a {
  color: var(--apple-blue);
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.privacy-contact-card a:hover { color: var(--apple-blue-hover); }

.privacy-footer-note {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(0,0,0,0.3);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { flex-direction: column; }
  .split-visual { min-height: 260px; width: 100%; }
  .split-text { padding: 3rem 2rem; }
  .download-layout { grid-template-columns: 1fr; gap: 2rem; }
  .download-layout > div { padding: 1rem; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-container {
    grid-template-columns: 1fr auto auto;
    position: relative;
    padding: 0 0.875rem;
  }
  .nav-download-btn {
    display: none;
  }
  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    justify-self: end;
  }
  .privacy-nav .nav-menu-btn {
    border-color: rgba(0,0,0,0.16);
    background: rgba(0,0,0,0.03);
  }
  .nav-menu-btn span {
    width: 0.8rem;
    height: 1.5px;
    background: rgba(255,255,255,0.92);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .privacy-nav .nav-menu-btn span {
    background: rgba(0,0,0,0.82);
  }
  .nav-links {
    /* Make mobile nav overlay fixed so it follows safe-area insets */
    position: fixed;
    top: var(--nav-height);
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(18,18,20,0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .privacy-nav .nav-links {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.12);
  }
  .nav-links a {
    padding: 0.7rem 0.9rem;
    border-radius: 0.65rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover {
    background: rgba(255,255,255,0.08);
  }
  .privacy-nav .nav-links a:hover {
    background: rgba(0,0,0,0.05);
  }
  .nav-toggle:checked + .nav-menu-btn span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-menu-btn span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .nav-toggle:checked + .nav-menu-btn + .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .download-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .btn-dl {
    width: 100%;
    margin-top: 0.15rem;
  }
  .hero-body { padding: 3rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Extra small devices tweaks */
@media (max-width: 480px) {
  /* Disable heavy canvas on tiny screens and reduce hero height/padding */
  #neuralCanvas { display: none; }
  .hero { min-height: 76vh; }
  .hero-body { padding: 2rem 1rem 1rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3.2rem); }
  .btn-hero-primary, .btn-hero-secondary { padding: 0.6rem 1rem; min-height: 44px; }
  .nav-menu-btn { width: 2.6rem; height: 2.6rem; }
  .nav-menu-btn span { width: 1rem; height: 2px; }
  .nav-links {
    top: var(--nav-height);
    left: 0.55rem;
    right: 0.55rem;
    padding: 0.5rem;
    border-radius: 0.65rem;
  }
  .nav-links a { padding: 0.85rem 1rem; }
  .download-layout { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 1rem; }
  .split-section { min-height: auto; }
}

/* ============================================================
   ANIMATE IN — Intersection Observer powered
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}