/* AssetTrail landing page (shared by / and /en/) */
:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --bg-alt: #edf2f5;
  --surface: #ffffff;
  --raised: #f1f5f7;
  --ink: #182c3d;
  --muted: #5d6e7c;
  --subtle: #7b8996;
  --border: #e3e9ee;
  --teal: #11766f;
  --teal-strong: #168c83;
  --teal-soft: #e3f4f1;
  --mint: #74d8cb;
  --navy: #1b2c3d;
  --negative: #c4555f;
  --shadow: 0 30px 60px -28px rgba(24, 44, 61, .32), 0 10px 24px -14px rgba(24, 44, 61, .18);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151b;
    --bg-alt: #121c24;
    --surface: #1a252e;
    --raised: #223140;
    --ink: #e8f0f5;
    --muted: #a9b8c4;
    --subtle: #8a9aa8;
    --border: #2b3a46;
    --teal: #63d6c5;
    --teal-strong: #63d6c5;
    --teal-soft: #173632;
    --negative: #ff929e;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
:lang(en) body, body:lang(en) { font-feature-settings: normal; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal-strong);
  outline-offset: 3px;
  border-radius: 10px;
}
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--border);
  font-size: 13px; font-weight: 650;
}
.lang a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; color: var(--muted); text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lang a:not([aria-current]):hover { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 20px -8px rgba(27, 44, 61, .45); }
.app-id strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.app-id span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero h1 {
  margin: 0; font-size: clamp(34px, 9.4vw, 60px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { margin: 18px 0 0; max-width: 30em; color: var(--muted); font-size: clamp(16px, 4.2vw, 18px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.badge { display: inline-block; border-radius: 10px; line-height: 0; }
.badge img { height: 54px; width: auto; }
.cta-note { color: var(--subtle); font-size: 13px; line-height: 1.5; }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.points li {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5;
}

/* Phone mockup */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; inset: 8% 0 auto; height: 78%; margin: auto; width: min(100%, 460px);
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 38%, transparent), transparent);
  filter: blur(10px);
}
.phone {
  position: relative; width: 280px; flex: none;
  padding: 8px; border-radius: 46px;
  background: #0c1318; box-shadow: var(--shadow), inset 0 0 0 1.5px #2c3a45;
}
.shot { width: 100%; height: auto; border-radius: 38px; background: #f5f7fa; }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.section h2 { margin: 0; font-size: clamp(26px, 6.4vw, 40px); line-height: 1.3; letter-spacing: -.03em; font-weight: 800; }
.section .intro { margin: 14px 0 0; max-width: 36em; color: var(--muted); font-size: 16px; }
.head { margin-bottom: 36px; }

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.steps h3, .feature h3, .scene h3, .trust h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; line-height: 1.45; }
.steps p, .feature p, .scene p, .trust p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; gap: 12px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--navy); color: #c9f2ec; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.7; }
@media (prefers-color-scheme: dark) { .tag { background: var(--teal-soft); color: var(--teal); } }
.footnote { margin: 18px 0 0; color: var(--subtle); font-size: 13px; }

.scenes { display: grid; gap: 12px; }
.scene { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.scene .k { display: inline-block; margin-bottom: 10px; font-size: 26px; line-height: 1; }

/* Screens gallery */
.gallery {
  display: flex; gap: 20px; margin: 0 -16px; padding: 6px 16px 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: center; flex: none; }
.gallery .phone { width: 232px; border-radius: 40px; padding: 7px; }
.gallery .shot { border-radius: 33px; }
.gallery figcaption { margin-top: 16px; text-align: center; }
.gallery figcaption strong { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 16px; }
.gallery figcaption span { color: var(--muted); font-size: 14px; }
.gallery figure { margin: 0; }
.swipe-hint { margin: 0; color: var(--subtle); font-size: 13px; text-align: center; }

/* Trust */
.trust-grid { display: grid; gap: 12px; }
.trust { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust .ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.trust .ic svg { width: 21px; height: 21px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; color: var(--teal); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA */
.final { padding: 20px 0 80px; }
.final-card {
  display: grid; justify-items: center; gap: 16px; padding: 44px 24px; border-radius: 30px; text-align: center;
  background: var(--navy); color: #eef6f8;
  background-image: radial-gradient(120% 90% at 50% 0%, rgba(116, 216, 203, .2), transparent 60%);
}
@media (prefers-color-scheme: dark) { .final-card { background-color: #16232f; border: 1px solid var(--border); } }
.final-card img.icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 26px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.final-card h2 { margin: 6px 0 0; font-size: clamp(24px, 6vw, 36px); line-height: 1.35; letter-spacing: -.03em; }
.final-card p { margin: 0; color: #b9cad3; font-size: 15px; }
.final-card .badge img { height: 56px; }
.final-card .badge:focus-visible { outline-color: var(--mint); }

/* Footer */
.site-footer { padding: 34px 0 44px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer small { font-size: 13px; }

/* Tablet & desktop */
@media (min-width: 720px) {
  .wrap { width: min(100% - 64px, 1080px); }
  .steps, .scenes, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { margin-inline: -32px; padding-inline: 32px; }
  .section { padding: 100px 0; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .phone { width: 300px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .scenes, .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .final-card { padding: 64px 40px; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1100px) {
  .gallery { justify-content: center; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .gallery .phone { width: 196px; border-radius: 34px; padding: 6px; }
  .gallery .shot { border-radius: 28px; }
  .swipe-hint { display: none; }
}
