:root {
  --bg: #f8fbff;
  --paper: #ffffff;
  --ink: #17324d;
  --muted: #5d7083;
  --line: #dbe8f5;
  --brand: #0798c8;
  --brand-dark: #087da5;
  --accent: #ff9b38;
  --accent-dark: #e97810;
  --soft: #eaf7fc;
  --shadow: 0 18px 50px rgba(21, 63, 94, 0.12);
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 183, 89, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(70, 198, 226, 0.24), transparent 30rem),
    var(--bg);
  line-height: 1.55;
}

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 232, 245, 0.9);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(7, 152, 200, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--brand-dark);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.hero {
  padding: 76px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 670px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: var(--muted);
  margin: 0 0 26px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 152, 200, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 152, 200, 0.22);
}

.button.primary { background: var(--brand); color: white; }
.button.secondary { background: var(--accent); color: white; }
.button.ghost { background: white; color: var(--brand-dark); border: 1px solid var(--line); }

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 20px rgba(13, 42, 72, 0.16));
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
}


.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff, #edf9fd);
  border: 1px solid rgba(219, 232, 245, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transform: rotate(1deg);
}

.hero-card .logo {
  width: min(260px, 80%);
  margin: 0 auto 20px;
}

.hero-card .screen {
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(23, 50, 77, 0.16);
  border: 1px solid rgba(255,255,255,0.9);
}

.section {
  padding: 52px 0;
}

.section-title {
  max-width: 800px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 34px rgba(21, 63, 94, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.shot {
  background: white;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(21, 63, 94, 0.1);
}

.shot img { border-radius: 18px; }

.video-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(23, 50, 77, 0.14);
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.92);
  color: var(--accent-dark);
  font-size: 2rem;
  padding-left: 5px;
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.22);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.link-tile {
  display: block;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(21, 63, 94, 0.07);
}

.link-tile strong { display: block; margin-bottom: 4px; }
.link-tile span { color: var(--muted); font-size: 0.92rem; }

.site-footer {
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-row a { color: var(--brand-dark); font-weight: 800; text-decoration: none; }

@media (max-width: 850px) {
  .site-header { position: static; }
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .hero { padding: 42px 0 28px; }
  .hero-grid, .video-card { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .cards, .gallery, .links-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
  .store-badge { transition: none; }
  .store-badge:hover { transform: none; }
}

/* v3 image layout fixes */
img {
  max-width: 100%;
  height: auto;
}

.hero-grid {
  align-items: center;
}

.hero-card {
  max-width: 560px;
  margin: 0 auto;
  transform: none;
}

.hero-card .logo {
  display: none;
}

.hero-card .screen,
.shot img,
.video-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 851px) {
  .hero-card .screen {
    max-height: min(46vw, 430px);
  }
}
