:root {
  --bg: #fbf8f4;
  --bg-2: #f4efe8;
  --surface: #ffffff;
  --ink: #1b1c21;
  --muted: #5d5f68;
  --line: #e8e2d9;
  --accent: #f0604a;
  --accent-ink: #b8402e;
  --accent-soft: #fde7e1;
  --btn: #1b1c21;
  --btn-ink: #ffffff;
  --shadow: 40 30 20;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --bg-2: #1b1d23;
    --surface: #1f2128;
    --ink: #f2f1ee;
    --muted: #a9abb4;
    --line: #2e3039;
    --accent: #f26d58;
    --accent-ink: #ff9c8a;
    --accent-soft: #3a211d;
    --btn: #f2f1ee;
    --btn-ink: #14151a;
    --shadow: 0 0 0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.mark { width: 32px; height: 32px; flex: none; }
.pill {
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgb(var(--shadow) / 0.08), inset 0 0 0 1px var(--line);
}
.pill > a, .lang summary {
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.pill > a:hover, .lang summary:hover { color: var(--ink); background: var(--bg-2); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang div {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  display: grid; padding: 6px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 12px 32px rgb(var(--shadow) / 0.16), inset 0 0 0 1px var(--line);
}
.lang div a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 0.92rem; }
.lang div a:hover { background: var(--bg-2); }
.lang div a[aria-current] { font-weight: 700; color: var(--accent-ink); }

/* hero */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 32px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center;
  min-height: min(640px, 82vh);
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; }
.hero h1 em {
  font-style: normal; color: var(--accent-ink);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
}
.lede { margin: 22px 0 0; font-size: 1.125rem; color: var(--muted); max-width: 36em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.btn {
  display: inline-block; margin-top: 30px; padding: 14px 26px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(var(--shadow) / 0.18); }

.reel {
  height: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.col { display: flex; flex-direction: column; gap: 16px; }
.col img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 22px; box-shadow: 0 10px 30px rgb(var(--shadow) / 0.14);
}
.col.down { margin-top: -120px; }

/* sections */
.sec { max-width: 1180px; margin: 0 auto; padding: 88px 24px 0; }
.kicker { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-ink); }
.sec h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; }
.sub { margin: 10px 0 0; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.value { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.value .vi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.value svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin-top: 18px; font-size: 1.2rem; }
.value p { margin: 8px 0 0; color: var(--muted); }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.app {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(var(--shadow) / 0.1), inset 0 0 0 1px var(--line); }
.app .icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 2px 8px rgb(var(--shadow) / 0.12); }
.app h3 { font-size: 1.1rem; }
.app p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line);
}
.btn-sm:hover { background: var(--bg-2); }
.btn-sm.solid { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.btn-sm.solid:hover { opacity: .88; }
.btn-sm svg, .more svg { width: 14px; height: 14px; }
.more { margin: 22px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.more a:hover { text-decoration: underline; }

.company {
  margin: 32px 0 0; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px 28px;
}
.company div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.company div:first-child { border-top: 0; }
.company dt { font-weight: 600; color: var(--muted); }
.company dd { margin: 0; }

.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.contact { display: flex; flex-direction: column; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.contact h3 { font-size: 1.1rem; }
.contact p { margin: 8px 0 16px; color: var(--muted); flex: 1; }
.contact a { font-weight: 600; color: var(--accent-ink); word-break: break-all; }

.foot {
  max-width: 1180px; margin: 96px auto 0; padding: 40px 24px 48px; border-top: 1px solid var(--line);
  display: grid; gap: 14px; justify-items: start;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }
.small { margin: 0; font-size: 0.86rem; color: var(--muted); }
.small a { color: var(--muted); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .col.up { animation: reel-up 48s linear infinite; }
  .col.down { animation: reel-down 48s linear infinite; }
  .reel:hover .col { animation-play-state: paused; }
  .rv { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
  .rv.in { opacity: 1; translate: 0 0; }
  .values .rv:nth-child(2), .contacts .rv:nth-child(2), .apps .rv:nth-child(even) { transition-delay: .08s; }
  .values .rv:nth-child(3), .contacts .rv:nth-child(3) { transition-delay: .16s; }
}
@keyframes reel-up { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes reel-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; padding-top: 16px; }
  .reel { height: 420px; }
  .values, .contacts, .apps { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 64px; }
}
@media (max-width: 720px) {
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .pill > a { display: none; }
  .hero, .sec, .foot { padding-left: 16px; padding-right: 16px; }
  .reel { height: 360px; gap: 12px; }
  .col { gap: 12px; }
  .col img { border-radius: 16px; }
  .company { padding: 4px 18px; }
  .company div { grid-template-columns: 1fr; gap: 2px; }
  .app { padding: 18px; gap: 14px; }
  .app .icon { width: 60px; height: 60px; border-radius: 15px; }
}
