:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --brand: #e33a2f;
  --brand-dark: #b92520;
  --time: #12a37d;
  --wula: #f2a900;
  --bang: #ea4937;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(227, 58, 47, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.78);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ""; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #f6f7f8;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 42px;
  min-height: 720px;
  padding-block: 74px 96px;
}

.hero-copy { position: relative; z-index: 2; max-width: 580px; }

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(58px, 7vw, 94px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions, .app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { background: var(--brand); border-color: var(--brand); }
.button.secondary { background: #fff; }
.button.secondary:hover { color: var(--brand); border-color: var(--brand); }
.button.apple { color: #fff; background: #101010; border-color: #101010; }
.button.apple::before { font-size: 20px; content: "\25CF"; }

.product-stage {
  position: relative;
  min-height: 535px;
}

.stage-panel {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stage-panel img { width: 100%; height: 100%; object-fit: cover; }
.stage-time { width: 234px; height: 506px; left: 0; top: 16px; transform: rotate(-5deg); }
.stage-wula { width: 250px; height: 535px; left: 202px; top: 0; z-index: 2; }
.stage-bang { width: 375px; height: 211px; right: 0; bottom: 32px; transform: rotate(4deg); z-index: 3; }

.stage-icon {
  position: absolute;
  z-index: 5;
  width: 78px;
  height: 78px;
  border: 5px solid #fff;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(16, 24, 40, 0.18);
}

.stage-icon.time { left: -20px; top: -8px; }
.stage-icon.wula { right: 84px; top: 45px; }
.stage-icon.bang { right: 10px; bottom: 5px; }

.hero-product-links {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-product-links a {
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.section { padding-block: 96px; }
.section.soft { background: var(--surface-soft); }
.section-heading { max-width: 700px; margin-bottom: 48px; }
.section-heading h2, .app-copy h2, .support-band h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: 0;
}
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }

.product-list { border-top: 1px solid var(--line); }
.product-row {
  display: grid;
  grid-template-columns: 90px minmax(0, .8fr) minmax(280px, 1.2fr) 42px;
  align-items: center;
  gap: 30px;
  min-height: 180px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}
.product-row:hover { background: #fff; }
.product-row > img { width: 82px; height: 82px; border-radius: 18px; box-shadow: 0 10px 24px rgba(16,24,40,.11); }
.product-row h3 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; }
.product-row .platform { color: var(--muted); font-size: 13px; font-weight: 650; }
.product-row p { margin: 0; color: var(--ink-soft); }
.row-arrow { font-size: 28px; line-height: 1; text-align: right; transition: transform 180ms ease; }
.product-row:hover .row-arrow { color: var(--brand); transform: translateX(4px); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle { min-height: 235px; padding: 34px; background: #fff; }
.principle .index { color: var(--brand); font-size: 13px; font-weight: 800; }
.principle h3 { margin: 48px 0 10px; font-size: 23px; }
.principle p { margin: 0; color: var(--muted); }

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 72px;
  align-items: end;
}
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: var(--brand); }

.site-footer { color: #d0d5dd; background: #101828; }
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-block: 52px 38px;
}
.footer-brand { color: #fff; font-size: 20px; font-weight: 750; }
.footer-brand p { max-width: 460px; margin: 10px 0 0; color: #98a2b3; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid #344054;
  color: #98a2b3;
  font-size: 12px;
}
.footer-legal a:hover { color: #fff; }

/* Product pages */
.app-page { --accent: var(--brand); --tint: #fff5f3; }
.app-page.time { --accent: var(--time); --tint: #eefbf7; }
.app-page.wula { --accent: var(--wula); --tint: #fff8e8; }
.app-page.bang { --accent: var(--bang); --tint: #fff2ef; }
.app-page .eyebrow { color: var(--accent); }

.app-hero {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid rgba(16,24,40,.08);
}
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 48px;
  min-height: 680px;
  padding-block: 72px 88px;
}
.app-title-line { display: flex; align-items: center; gap: 20px; }
.app-title-line > img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 12px 30px rgba(16,24,40,.14); }
.app-title-line h1 { margin: 0; font-size: clamp(44px, 5.8vw, 74px); line-height: 1.05; }
.app-title-line .latin { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.app-subtitle { margin: 28px 0 0; color: var(--ink-soft); font-size: 20px; line-height: 1.7; }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.app-meta span { padding: 7px 10px; color: var(--ink-soft); background: rgba(255,255,255,.8); border: 1px solid rgba(16,24,40,.11); border-radius: 5px; font-size: 12px; font-weight: 700; }

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  min-height: 510px;
}
.phone-gallery figure, .landscape-gallery figure { margin: 0; }
.phone-frame {
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #fff;
  border: 6px solid #121826;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.phone-gallery figure:nth-child(1) { transform: translateY(24px) rotate(-3deg); }
.phone-gallery figure:nth-child(3) { transform: translateY(24px) rotate(3deg); }

.landscape-gallery { position: relative; min-height: 510px; }
.landscape-frame {
  position: absolute;
  overflow: hidden;
  width: 78%;
  aspect-ratio: 16 / 9;
  border: 7px solid #121826;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.landscape-frame img { width: 100%; height: 100%; object-fit: cover; }
.landscape-gallery figure:nth-child(1) { top: 0; right: 0; z-index: 2; }
.landscape-gallery figure:nth-child(2) { bottom: 20px; left: 0; transform: rotate(-3deg); }

.app-intro-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: 90px; align-items: start; }
.app-copy .kicker { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 800; }
.app-copy p { margin: 22px 0 0; color: var(--ink-soft); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.feature-item { min-height: 170px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.feature-item:nth-child(odd) { border-right: 1px solid var(--line); }
.feature-item:nth-child(even) { padding-left: 24px; }
.feature-item .number { color: var(--accent); font-size: 12px; font-weight: 800; }
.feature-item h3 { margin: 20px 0 7px; font-size: 19px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; }

.screenshot-section { overflow: hidden; }
.screen-strip { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 22px; }
.screen-strip figure { margin: 0; }
.screen-strip .screen-image { overflow: hidden; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; }
.screen-strip.portrait .screen-image { aspect-ratio: 9 / 18.5; }
.screen-strip.landscape .screen-image { aspect-ratio: 16 / 9; }
.screen-strip img { width: 100%; height: 100%; object-fit: cover; }
.screen-strip figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }

.app-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.app-support > div { padding: 36px; background: #fff; }
.app-support h3 { margin: 0 0 12px; font-size: 22px; }
.app-support p { margin: 0; color: var(--muted); }
.text-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.text-links a { color: var(--accent); font-size: 14px; font-weight: 750; }
.text-links a:hover { text-decoration: underline; }

@media (max-width: 1020px) {
  .hero-grid, .app-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 72px; }
  .hero-copy { max-width: 700px; }
  .product-stage { width: min(100%, 680px); margin: 0 auto; }
  .app-hero-grid { padding-bottom: 70px; }
  .phone-gallery, .landscape-gallery { width: min(100%, 720px); margin: 0 auto; }
  .app-intro-grid { grid-template-columns: 1fr; gap: 52px; }
  .product-row { grid-template-columns: 82px minmax(0, 1fr) 36px; }
  .product-row p { grid-column: 2; }
  .support-band { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .nav-wrap { min-height: 62px; }
  .menu-button { display: block; }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16,24,40,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a:last-child { border-bottom: 0; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { gap: 36px; padding-block: 56px 72px; }
  .hero h1 { font-size: 54px; }
  .hero .lead, .app-subtitle { font-size: 17px; }
  .hero-actions, .app-actions { align-items: stretch; }
  .button { flex: 1 1 150px; }
  .product-stage { min-height: 410px; }
  .stage-time { width: 172px; height: 373px; left: 2%; }
  .stage-wula { width: 180px; height: 390px; left: 34%; }
  .stage-bang { width: 245px; height: 138px; right: 0; bottom: 12px; }
  .stage-icon { width: 58px; height: 58px; border-radius: 14px; border-width: 3px; }
  .stage-icon.time { left: 0; }
  .stage-icon.wula { right: 8%; }
  .stage-icon.bang { right: 0; }
  .hero-product-links { display: none; }
  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .app-copy h2, .support-band h2 { font-size: 36px; }
  .section-heading p { font-size: 16px; }
  .product-row { grid-template-columns: 64px 1fr 26px; gap: 16px; min-height: 152px; padding-block: 24px; }
  .product-row > img { width: 60px; height: 60px; border-radius: 14px; }
  .product-row h3 { font-size: 20px; }
  .product-row p { font-size: 14px; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; padding: 28px; }
  .principle h3 { margin-top: 28px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .app-hero-grid { gap: 40px; min-height: auto; padding-block: 52px 64px; }
  .app-title-line { align-items: flex-start; }
  .app-title-line > img { width: 72px; height: 72px; border-radius: 17px; }
  .app-title-line h1 { font-size: 42px; }
  .phone-gallery { gap: 8px; min-height: 400px; }
  .phone-frame { border-width: 4px; border-radius: 18px; }
  .landscape-gallery { min-height: 360px; }
  .landscape-frame { width: 90%; border-width: 4px; border-radius: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item, .feature-item:nth-child(even) { min-height: auto; padding: 22px 0; border-right: 0; }
  .screen-strip { display: flex; gap: 14px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .screen-strip figure { min-width: 78%; scroll-snap-align: start; }
  .screen-strip.landscape figure { min-width: 90%; }
  .app-support { grid-template-columns: 1fr; }
  .app-support > div { padding: 28px; }
}

@media (max-width: 390px) {
  .brand small { display: none; }
  .hero h1 { font-size: 48px; }
  .product-stage { transform: scale(.92); transform-origin: left top; width: 109%; margin-bottom: -28px; }
  .app-title-line h1 { font-size: 36px; }
  .app-title-line > img { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
