:root {
  --navy: #10234a;
  --navy-2: #1b315f;
  --ink: #17213a;
  --muted: #5d667a;
  --ivory: #f8f4ea;
  --paper: #fffdf7;
  --teal: #19c2b1;
  --teal-dark: #087e77;
  --teal-soft: #d9f4ef;
  --coral: #ff6b67;
  --coral-soft: #ffe4de;
  --line: rgba(16, 35, 74, .14);
  --shadow: 0 28px 80px rgba(16, 35, 74, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { background: var(--teal); color: var(--navy); }

.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  transform: translateY(-160%); padding: 10px 16px; border-radius: 10px;
  background: var(--navy); color: white; font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.section-tight { padding: clamp(54px, 7vw, 94px) 0; }

.site-header {
  position: sticky; z-index: 50; top: 0;
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand img { width: 42px; height: auto; aspect-ratio: 1; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: grid; line-height: 1.06; }
.brand-text strong { font-size: .95rem; letter-spacing: .08em; }
.brand-text span { color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px; color: var(--muted);
  font-size: .92rem; font-weight: 750; text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: white; color: var(--navy); }
.nav-links .language { margin-left: 4px; border: 1px solid var(--line); color: var(--navy); }
.nav-links .nav-cta { background: var(--navy); color: white; }
.nav-links .nav-cta:hover { background: var(--teal); color: var(--navy); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: white; color: var(--navy); cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor;
}

.eyebrow {
  margin: 0 0 16px; color: var(--teal-dark); font-size: .78rem; font-weight: 850;
  letter-spacing: .15em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 850; letter-spacing: -.045em; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(3.1rem, 8vw, 7.9rem); line-height: .95; }
h2 { margin-bottom: 22px; font-size: clamp(2.15rem, 5vw, 4.8rem); line-height: 1.02; }
h3 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.6vw, 2.05rem); line-height: 1.13; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.38rem); line-height: 1.6; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: .88rem; }
.accent { color: var(--coral); }
.teal { color: var(--teal-dark); }

.hero { position: relative; min-height: min(760px, calc(100vh - 76px)); display: grid; align-items: center; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: center; gap: clamp(42px, 7vw, 94px); }
.hero-copy { padding: 90px 0; }
.hero-copy .lead { max-width: 590px; }
.hero h1 { font-size: clamp(3.1rem, 7vw, 6rem); }
.hero-second-line { display: inline-block; white-space: nowrap; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--navy); color: white; font-size: .94rem; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal); color: var(--navy); }
.button.secondary { border-color: var(--line); background: white; color: var(--navy); }
.button.secondary:hover { background: var(--coral-soft); }
.button.disabled { background: #e7e2d7; color: #6b6d73; cursor: not-allowed; }
.text-link { color: var(--navy); font-weight: 800; text-underline-offset: 5px; }
.text-link:hover { color: var(--teal-dark); }

.hero-mark {
  width: min(100%, 360px); justify-self: end; display: grid; justify-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 34px;
  background: rgba(255, 253, 247, .78);
}
.hero-mark img {
  width: min(100%, 220px); height: auto; aspect-ratio: 1; object-fit: contain;
}
.mark-caption {
  max-width: 235px; margin: 0; color: var(--navy); font-size: .84rem; font-weight: 750;
  line-height: 1.55; text-align: center;
}

.intro-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px, 8vw, 110px); align-items: start; }
.big-line { font-size: clamp(2rem, 4.4vw, 4.1rem); font-weight: 820; line-height: 1.13; letter-spacing: -.045em; }
.principles { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 78px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles strong { color: var(--coral); font-size: .76rem; letter-spacing: .12em; }

.products { border-block: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.products h2, .products h3 { color: var(--navy); }
.products .eyebrow { color: var(--teal-dark); }
.products .lead, .products .muted { color: var(--muted); }
.app-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.app-directory-card {
  min-width: 0; overflow: hidden; display: grid; grid-template-rows: 164px 1fr;
  border: 1px solid var(--line); border-radius: 28px; background: var(--ivory); color: var(--ink);
  text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.app-directory-card:hover { transform: translateY(-3px); border-color: var(--teal-dark); box-shadow: 0 18px 42px rgba(16,35,74,.09); }
.app-card-media { display: grid; place-items: center; overflow: hidden; background: var(--teal-soft); }
.app-directory-card.swipik .app-card-media { background: var(--coral-soft); }
.app-directory-card.notinest .app-card-media { background: #f2f3ef; }
.app-card-media img { width: auto; height: auto; max-height: 100px; object-fit: contain; }
.app-directory-card.tongda .app-card-media img { width: 92px; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 12px 28px rgba(16,35,74,.16); }
.app-directory-card.swipik .app-card-media img { width: min(58%, 162px); max-height: 92px; }
.app-directory-card.notinest .app-card-media img { width: 102px; aspect-ratio: 1; border-radius: 50%; }
.app-card-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 24px; }
.app-card-body h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 2.1vw, 1.72rem); }
.app-card-body p { margin-bottom: 20px; color: var(--muted); }
.app-card-status {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px;
  color: var(--teal-dark); font-size: .76rem; font-weight: 850; letter-spacing: .02em;
}
.app-card-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.app-card-link { margin-top: auto; color: var(--navy); font-size: .9rem; font-weight: 850; text-decoration: underline; text-underline-offset: 5px; }
.product-stack { margin-top: 58px; display: grid; gap: 26px; }
.product-feature {
  position: relative; display: grid; grid-template-columns: .85fr 1.15fr; min-height: 520px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 34px; background: rgba(255,255,255,.06);
}
.product-feature:nth-child(even) { grid-template-columns: 1.15fr .85fr; }
.product-feature:nth-child(even) .product-copy { order: 2; }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 6vw, 72px); }
.product-copy p { color: #d5dbea; }
.product-name { margin-bottom: 15px; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.product-art { position: relative; min-height: 420px; overflow: hidden; display: grid; place-items: center; background: var(--teal-soft); }
.product-art.coral { background: var(--coral-soft); }
.product-art.white { background: #f5f6f1; }
.product-art .phone { position: absolute; width: min(48%, 260px); border-radius: 26px; box-shadow: 0 25px 65px rgba(16,35,74,.24); }
.product-art .phone.one { transform: translate(-26%, -3%) rotate(-5deg); }
.product-art .phone.two { transform: translate(31%, 5%) rotate(5deg); }
.product-art .phone.single { position: relative; width: min(63%, 310px); transform: rotate(3deg); }
.product-art .app-icon { width: 130px; height: 130px; border-radius: 28px; box-shadow: var(--shadow); }
.product-art .mark-lockup { width: min(74%, 370px); object-fit: contain; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--teal); font-size: .84rem; font-weight: 800; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.labs { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lab-canvas { min-height: 390px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; transform: rotate(-2deg); }
.lab-card { padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: 0 12px 35px rgba(16,35,74,.08); }
.lab-card:nth-child(2) { transform: translateY(36px); background: var(--teal-soft); }
.lab-card:nth-child(3) { background: var(--coral-soft); }
.lab-card:nth-child(4) { transform: translateY(36px); background: var(--navy); color: white; }
.lab-card span { display: block; margin-bottom: 38px; font-size: 1.5rem; }
.lab-card strong { display: block; color: inherit; font-size: 1.02rem; }

.contact-band { background: var(--teal); color: var(--navy); }
.contact-band .shell { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.contact-band h2 { max-width: 800px; margin: 0; }
.contact-band .button { background: var(--navy); }

.site-footer { padding: 42px 0 56px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 850; }
.footer-brand img { width: 36px; height: auto; aspect-ratio: 1; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { color: var(--muted); font-size: .86rem; text-underline-offset: 4px; }
.footer-meta { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }

.page-hero { position: relative; padding: clamp(84px, 11vw, 156px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: 8%; width: 42vw; aspect-ratio: 1; border: 60px solid var(--teal); border-radius: 50%; opacity: .12; }
.page-hero h1 { max-width: 980px; font-size: clamp(3.2rem, 9vw, 7.4rem); }
.page-hero .lead { max-width: 720px; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process { padding: 34px 34px 34px 0; border-right: 1px solid var(--line); }
.process + .process { padding-left: 34px; }
.process:last-child { border-right: 0; }
.process-number { color: var(--coral); font-size: .76rem; font-weight: 850; letter-spacing: .13em; }
.statement { padding: clamp(40px, 7vw, 92px); border-radius: 34px; background: var(--navy); color: white; }
.statement h2 { color: white; }
.statement p { max-width: 720px; color: #d5dbea; font-size: 1.12rem; }

.product-hero { padding: clamp(70px, 9vw, 120px) 0; }
.product-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.product-hero h1 { font-size: clamp(3.8rem, 9vw, 7.6rem); }
.product-visual { position: relative; min-height: 610px; display: grid; place-items: center; border-radius: 44px; overflow: hidden; background: var(--teal-soft); }
.product-visual.coral { background: var(--coral-soft); }
.product-visual.navy { background: var(--navy); }
.product-visual .phone { position: absolute; width: min(49%, 285px); height: auto; object-fit: contain; border-radius: 28px; box-shadow: var(--shadow); }
.product-visual .phone.left { transform: translate(-28%, -2%) rotate(-4deg); }
.product-visual .phone.right { transform: translate(28%, 5%) rotate(4deg); }
.product-visual .mascot { width: min(72%, 420px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.product-visual .logo-art { width: min(74%, 440px); height: auto; object-fit: contain; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); font-size: .78rem; font-weight: 750; }

.screen-showcase { background: var(--navy); color: white; overflow: hidden; }
.screen-showcase h2 { color: white; }
.screen-showcase .lead { color: #cbd3e2; }
.screen-row { width: max-content; display: flex; gap: 18px; margin-top: 44px; transform: translateX(max(-120px, calc((100vw - var(--max)) / 2 - 120px))); }
.screen-row figure { width: clamp(220px, 23vw, 320px); margin: 0; flex: 0 0 auto; }
.screen-row img { width: 100%; height: auto; object-fit: contain; border-radius: 26px; box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.screen-row figcaption { margin-top: 12px; color: #cbd3e2; font-size: .83rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 280px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 28px; background: var(--paper); }
.feature-card .number { display: block; margin-bottom: 46px; color: var(--coral); font-size: .76rem; font-weight: 850; letter-spacing: .14em; }
.feature-card:nth-child(2) { background: var(--teal-soft); }
.feature-card:nth-child(3) { background: var(--coral-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 8vw, 110px); align-items: start; }
.note-box { padding: 28px; border-left: 5px solid var(--coral); background: white; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.store-link { display: grid; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; text-decoration: none; }
.store-link small { color: var(--muted); }
.store-link strong { color: var(--navy); }
.store-link:hover { border-color: var(--teal-dark); }

.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.error-code { color: var(--teal-dark); font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .8; }

@media (max-width: 920px) {
  .hero { min-height: auto; }
  .hero-grid, .intro-grid, .labs, .product-hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-mark { width: min(100%, 520px); justify-self: start; grid-template-columns: 170px 1fr; justify-items: center; }
  .hero-mark img { width: 160px; }
  .mark-caption { text-align: left; }
  .app-directory { grid-template-columns: 1fr; }
  .app-directory-card { grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto; min-height: 178px; }
  .product-feature, .product-feature:nth-child(even) { grid-template-columns: 1fr; }
  .product-feature:nth-child(even) .product-copy { order: initial; }
  .product-art { min-height: 450px; }
  .process-grid, .feature-grid { grid-template-columns: 1fr; }
  .process { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process + .process { padding-left: 0; }
  .process:last-child { border-bottom: 0; }
  .product-visual { min-height: 560px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 66px; }
  .brand img { width: 36px; height: 36px; }
  .brand-text span { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 14px; right: 14px; display: grid; gap: 4px;
    padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
    box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links[data-open="true"] { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .language { margin: 4px 0 0; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.9rem); }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 11vw, 3.6rem); }
  .hero-copy { padding-top: 64px; }
  .hero-mark { margin-bottom: 68px; }
  .principles li { grid-template-columns: 60px 1fr; }
  .product-copy { padding: 34px 24px; }
  .product-art { min-height: 390px; }
  .labs { gap: 58px; }
  .lab-canvas { min-height: 330px; gap: 9px; }
  .lab-card { padding: 18px; border-radius: 20px; }
  .contact-band .shell, .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .page-hero h1, .product-hero h1 { font-size: clamp(2.9rem, 15vw, 5rem); }
  .product-visual { min-height: 470px; border-radius: 30px; }
  .screen-row { gap: 12px; transform: translateX(-60px); }
  .screen-row figure { width: 230px; }
  .platforms { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .brand-text strong { font-size: .86rem; }
  .hero-actions, .actions { display: grid; }
  .button { width: 100%; }
  .hero-mark { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .hero-mark img { width: 142px; }
  .mark-caption { text-align: center; }
  .app-directory-card { grid-template-columns: 1fr; grid-template-rows: 140px 1fr; }
  .product-art { min-height: 350px; }
  .lab-card strong { font-size: .88rem; }
  .product-visual { min-height: 430px; }
}

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