*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef1f8;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eef4ff;
  --ink: #0f1226;
  --body: #434a60;
  --muted: #717892;
  --border: #e6e8f0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15,18,38,0.04), 0 4px 12px rgba(15,18,38,0.05);
  --shadow: 0 2px 6px rgba(15,18,38,0.05), 0 18px 40px rgba(15,18,38,0.10);
  --shadow-lg: 0 8px 24px rgba(15,18,38,0.10), 0 40px 80px rgba(15,18,38,0.16);
  --max: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* TYPE */
h1, h2, h3, h4 {
  font-family: 'General Sans', 'Inter', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-weight: 800; font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-weight: 600; font-size: 1.05rem; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'General Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 18px; height: 18px;
  clip-path: polygon(50% 6%, 94% 94%, 6% 94%);
  background: linear-gradient(135deg, #60a5fa, #a78bfa 45%, #f472b6 72%, #fbbf24);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sticky mobile download bar */
.download-bar { display: none; }
.download-bar-info { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.download-bar-info .logo-mark { width: 30px; height: 30px; flex: none; }
.download-bar-text { min-width: 0; }
.download-bar-text strong {
  display: block;
  font-family: 'General Sans', sans-serif;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
}
.download-bar-text span { display: block; font-size: 0.78rem; color: var(--muted); }
.download-bar-text strong,
.download-bar-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-badge-sm { padding: 0.45rem 0.8rem; gap: 0.5rem; }
.play-badge-sm svg { width: 20px; height: 20px; }
.play-badge-sm .play-badge-text strong { font-size: 0.95rem; }
.play-badge-sm .play-badge-text small { font-size: 0.55rem; }
.download-bar-close {
  flex: none;
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: var(--muted); font-size: 1.4rem; line-height: 1;
  cursor: pointer; border-radius: 8px;
}
.download-bar-close:hover { background: var(--surface-2); color: var(--ink); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* GOOGLE PLAY BADGE */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,18,38,0.28); }
.play-badge svg { width: 26px; height: 26px; flex: none; }
.play-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge-text small { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.play-badge-text strong { font-family: 'General Sans', sans-serif; font-size: 1.15rem; font-weight: 600; }

/* SECTION SHELL */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }

.section-tag, .teaser-tag, .page-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-intro { color: var(--muted); max-width: 540px; font-size: 1.05rem; }

/* HERO */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 11rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 18%, rgba(96,165,250,0.18), transparent 70%),
    radial-gradient(50% 50% at 95% 60%, rgba(167,139,250,0.16), transparent 70%),
    radial-gradient(40% 40% at 70% 90%, rgba(244,114,182,0.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.16);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}

.hero h1 { opacity: 0; animation: fadeUp 0.7s ease 0.22s forwards; }
.hero h1 span {
  background: linear-gradient(120deg, #2563eb, #7c3aed 55%, #db2777);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 480px;
  color: var(--muted);
  font-size: 1.12rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.36s forwards;
}
.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

/* HERO PHONES */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.45s forwards;
}
.phone {
  background: #0f1226;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 28px; width: 240px; aspect-ratio: 1080 / 2316; object-fit: cover; object-position: top; }
.phone-front { position: relative; z-index: 2; transform: rotate(-3deg); }
.phone-front .phone img { width: 250px; }
.phone-back {
  position: absolute;
  z-index: 1;
  transform: translate(58px, 26px) rotate(7deg) scale(0.92);
  opacity: 0.95;
}
.phone-back img { width: 240px; }
.phone-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 100px;
  background: rgba(255,255,255,0.25);
  z-index: 3;
}

/* FEATURED */
.featured { max-width: var(--max); margin: 0 auto; }

.featured-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-banner img { width: 100%; height: auto; }

.featured-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-list { list-style: none; margin: 1.75rem 0 2rem; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list svg {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-list strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure { flex: none; scroll-snap-align: center; text-align: center; }
.shots img {
  width: 170px;
  aspect-ratio: 1080 / 2316;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.shots figure:hover img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shots figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }

/* VALUES */
.values { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values-inner { max-width: var(--max); margin: 0 auto; }
.values .section-intro { margin-bottom: 3.5rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.value-num {
  font-family: 'General Sans', sans-serif;
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  margin-bottom: 0.7rem;
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.value-item h4 { margin-bottom: 0.4rem; }
.value-item p { color: var(--muted); font-size: 0.92rem; }

/* TEASER */
.teaser { max-width: 720px; margin: 0 auto; text-align: center; }
.teaser h3 { margin: 0.4rem 0 0.8rem; }
.teaser p { color: var(--muted); max-width: 480px; margin: 0 auto; }

/* CONTACT */
.contact { max-width: var(--max); margin: 0 auto; }
.contact h2 { margin-bottom: 1.5rem; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem;
  max-width: 580px;
}
.contact-box p { color: var(--muted); margin-bottom: 1.4rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent);
  font-family: 'General Sans', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent-dark); }

/* FOOTER */
footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer .logo { font-size: 1.05rem; }
footer p, footer a:not(.logo) { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
footer a:not(.logo):hover { color: var(--accent); }

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition: none !important; }
  .hero-tag, .hero h1, .hero-sub, .hero-cta, .hero-visual { opacity: 1 !important; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
  .hero-visual { min-height: 480px; }
  .featured-body { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1.5rem 0.75rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  nav.open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* Sticky download bar — phones only */
@media (max-width: 720px) {
  .download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(15,18,38,0.10);
  }
  body { padding-bottom: 78px; }
  body.dlbar-hidden { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .hero-cta { gap: 0.75rem; }
  .phone-front .phone img, .phone img { width: 210px; }
  .phone-back { transform: translate(48px, 22px) rotate(7deg) scale(0.9); }
  .contact-box { padding: 2rem 1.5rem; }
}
