/* =========================================================================
   viaim Japan -premium AI earbuds / recorder brand site (JP market)
   Pure static CSS. No build step. Dark-locked cold-luxury graphite.
   Design read: AirPods/Sony-WH restraint, graphite + single signal accent.
   Redesign-preserve: extends the original system to 3-product + retail IA.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* Cold-luxury graphite scale */
  --ink-000: #050608;   /* page base */
  --ink-050: #0a0c10;
  --ink-100: #0f1216;
  --ink-150: #14181e;   /* elevated surface */
  --ink-200: #1b2027;
  --ink-300: #272d36;   /* hairlines */
  --ink-400: #3a424d;

  --fog-100: #c7ccd4;   /* secondary text */
  --fog-200: #e4e7ec;   /* primary text-ish */
  --paper:   #f4f6f9;   /* high-emphasis text / inverted blocks */

  /* Single locked accent: viaim brand orange #f87612 (from official logo) */
  --signal:      #f87612;
  --signal-deep: #e0610a;
  --signal-soft: rgba(248, 118, 18, 0.12);
  --signal-line: rgba(248, 118, 18, 0.32);

  /* Type */
  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
             "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-latin: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "Arial", var(--font-jp);

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 0.55s;
}

/* Visible keyboard focus across all interactive elements (a11y for commerce) */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-jp);
  background: var(--ink-000);
  color: var(--fog-200);
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: #b9500a; color: #fff; }

/* Film grain overlay - kills the flat-color "plastic AI" look, adds premium texture.
   Fixed, pointer-events:none, very low opacity. Sits above content but never blocks it. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 148px); position: relative; }
.eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
  margin: 0 0 18px;
}
/* ---------- Type scale ---------- */
.h-display {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
}
.h-section {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
}
.lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--fog-100);
  line-height: 1.75;
  max-width: 60ch;
  margin: 0;
}
.muted { color: var(--fog-100); }
.num { font-family: var(--font-latin); font-feature-settings: "tnum" 1; }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(5, 6, 8, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .24s var(--ease-out), border-color .24s var(--ease-out);
}
.nav.scrolled {
  background: rgba(5, 6, 8, 0.86);
  border-bottom-color: var(--ink-300);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center;
}
.brand-logo { height: 23px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--fog-100); font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-size: 13.5px; font-weight: 600;
  color: #fff; background: #b9500a;
  padding: 9px 20px; border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 18px -8px rgba(224,97,10,0.55);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { background: #a8480a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 9px 24px -8px rgba(224,97,10,0.75); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.nav-cta:active { transform: translateY(1px) scale(0.97); }
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: 0; padding: 10px; color: var(--paper); min-width: 44px; min-height: 44px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(8, 10, 14, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ink-300);
    padding: 16px var(--gutter) 26px;
  }
  .nav.menu-open .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--ink-200); }
  .nav.menu-open .nav-cta { margin-top: 12px; text-align: center; padding: 13px; }
}

/* =========================================================================
   Hero -asymmetric split, product image dominant
   ========================================================================= */
.hero {
  min-height: 100dvh;
  padding-top: 64px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(248, 118, 18, 0.16), transparent 70%),
    radial-gradient(80% 60% at 10% 90%, rgba(248, 118, 18, 0.05), transparent 60%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-latin); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fog-100);
  border: 1px solid var(--ink-300); border-radius: var(--radius-pill);
  padding: 7px 15px; margin-bottom: 26px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--signal); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--fog-100); line-height: 1.75; max-width: 46ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, #c25309, #ab4908); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(224, 97, 10, 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #b34d08, #9c4307); box-shadow: 0 14px 38px -10px rgba(224, 97, 10, 0.85); }
.btn-primary:active { transform: translateY(1px) scale(0.97); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--paper);
  border-color: var(--ink-400);
}
.btn-ghost:hover { border-color: var(--fog-100); background: rgba(255,255,255,0.06); }
.btn-ghost:active { transform: translateY(1px) scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }

.hero-foot {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--fog-100);
}
.hero-foot .line { width: 28px; height: 1px; background: var(--ink-400); flex-shrink: 0; }

/* Hero visual */
.hero-visual { position: relative; }
.product-stage {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(155deg, var(--ink-150), var(--ink-050));
  border: 1px solid var(--ink-300);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.product-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(52% 46% at 50% 44%, rgba(200,206,218,0.20), transparent 72%);
}
.product-stage img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  padding: clamp(26px, 6%, 58px);
  filter: drop-shadow(0 34px 52px rgba(0,0,0,0.6));
  opacity: 1;
}
.spec-float {
  position: absolute; z-index: 2;
  background: rgba(12,14,18,0.78); backdrop-filter: blur(14px);
  border: 1px solid var(--ink-300); border-radius: 14px;
  padding: 13px 16px; box-shadow: 0 18px 50px -18px rgba(0,0,0,0.7);
}
.spec-float .k { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog-100); }
.spec-float .v { font-size: 22px; font-weight: 700; color: var(--paper); margin-top: 2px; }
.spec-float .v small { font-size: 13px; color: var(--fog-100); font-weight: 600; margin-left: 2px; vertical-align: 0.12em; }
.spec-float.tl { top: 16px; left: -18px; }
.spec-float.br { bottom: 56px; right: -18px; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 104px; padding-bottom: 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .product-stage { aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; }
  .spec-float.tl { left: 6px; }
  .spec-float.br { right: 6px; }
}
@media (max-width: 560px) {
  .spec-float { padding: 10px 12px; }
  .spec-float .v { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: auto; padding-top: 92px; padding-bottom: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .product-stage { aspect-ratio: 16/10; max-width: 420px; margin-inline: auto; }
}

/* =========================================================================
   Marquee strip (capabilities -single use on page)
   ========================================================================= */
.strip {
  border-block: 1px solid var(--ink-300);
  background: var(--ink-050);
  overflow: hidden;
}
.strip-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.strip-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 19px 36px;
  font-family: var(--font-latin); font-size: 14px; letter-spacing: 0.04em;
  color: var(--fog-100); white-space: nowrap;
}
.strip-item b { color: var(--paper); font-weight: 550; }
.strip-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .strip-item { padding: 14px 20px; }
}

/* =========================================================================
   Stats band -plain numbers, no card boxes (data breathes)
   ========================================================================= */
.stats { padding-block: clamp(48px, 7vw, 84px); border-bottom: 1px solid var(--ink-300); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 22px; border-left: 1px solid var(--ink-300);
}
.stat-num {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 700; line-height: 1;
  color: var(--paper); letter-spacing: -0.02em;
}
.stat-num small { font-size: 0.42em; color: var(--signal); font-weight: 600; margin-left: 3px; letter-spacing: 0; vertical-align: 0.12em; }
.stat-label { font-size: 13.5px; color: var(--fog-100); margin-top: 8px; line-height: 1.5; }
.stat-en { font-family: var(--font-latin); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-400); margin-top: 2px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stat { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--ink-300); }
  .stats-grid > .stat:nth-child(-n+2) { border-top: 0; padding-top: 0; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > .stat:nth-child(2) { border-top: 1px solid var(--ink-300); padding-top: 20px; }
}

/* =========================================================================
   Philosophy -editorial, stacked (no split-header), generous space
   ========================================================================= */
.philo-grid { display: grid; gap: clamp(28px, 4vw, 52px); max-width: 920px; }
.philo-lead {
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.18; letter-spacing: -0.02em;
}
.philo-body { display: grid; gap: 20px; max-width: 64ch; }
.philo-body p { color: var(--fog-100); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.85; margin: 0; }

/* =========================================================================
   Feature flow -numbered process row (ONE DEVICE, ONE FLOW)
   ========================================================================= */
.flow-head { max-width: 64ch; margin-bottom: clamp(44px, 6vw, 76px); }
.flow-head .h-section { margin-bottom: 20px; }
.flow-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink-300);
}
.flow-step {
  position: relative;
  padding: 30px clamp(18px, 2vw, 28px) 8px;
  border-left: 1px solid var(--ink-300);
}
.flow-step:first-child { border-left: 0; }
.flow-step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 38px; height: 2px;
  background: var(--signal-deep);
}
.flow-n { font-family: var(--font-latin); font-size: 13px; font-weight: 700; color: var(--signal); letter-spacing: 0.08em; }
.flow-ico {
  width: 44px; height: 44px; border-radius: 12px; margin: 16px 0 18px;
  display: grid; place-items: center;
  background: var(--signal-soft); border: 1px solid var(--signal-line); color: var(--signal);
}
.flow-ico svg { width: 23px; height: 23px; }
.flow-step h3 { font-size: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem); font-weight: 700; color: var(--paper); margin: 0 0 10px; line-height: 1.4; letter-spacing: -0.005em; }
.flow-step p { color: var(--fog-100); font-size: 14.5px; margin: 0; line-height: 1.7; }
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(3) { border-left: 0; }
  .flow-step { padding-bottom: 24px; }
}
@media (max-width: 540px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step, .flow-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--ink-300); }
  .flow-step:first-child { border-top: 0; }
  .flow-step::before { display: none; }
}

/* =========================================================================
   Live transcription -split, copy + animated demo panel
   ========================================================================= */
.live-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.live-copy .h-section { margin-bottom: 20px; }
.live-copy .lede { margin-bottom: 30px; }
.live-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-300); }
.live-points li {
  padding: 20px 0 20px 24px; border-bottom: 1px solid var(--ink-300);
  color: var(--fog-100); font-size: 14.5px; line-height: 1.7; position: relative;
}
.live-points li::before {
  content: ""; position: absolute; left: 0; top: 27px; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--signal);
}
.live-points strong { display: block; color: var(--paper); font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }

/* Demo panel */
.live-panel {
  border: 1px solid var(--ink-300); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-150), var(--ink-050));
  box-shadow: 0 40px 110px -44px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden; min-height: 420px; display: flex; flex-direction: column;
}
.live-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-bottom: 1px solid var(--ink-300); background: var(--ink-100);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d57; box-shadow: 0 0 0 0 rgba(255,77,87,0.5); animation: livePulse 1.8s var(--ease) infinite; }
@keyframes livePulse { 0%{box-shadow:0 0 0 0 rgba(255,77,87,0.5);} 70%{box-shadow:0 0 0 7px rgba(255,77,87,0);} 100%{box-shadow:0 0 0 0 rgba(255,77,87,0);} }
.live-title { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog-100); font-weight: 600; }
.live-time { margin-left: auto; font-size: 13px; color: var(--fog-200); font-weight: 600; }
.live-feed { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.live-line { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.live-line.show { opacity: 1; transform: none; }
.live-spk { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-latin); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.live-spk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-spk.a { color: var(--signal); }
.live-spk.b { color: var(--fog-200); }
.live-text { color: var(--fog-200); font-size: 14.5px; line-height: 1.55; }
.live-text .cursor { display: inline-block; width: 2px; height: 1em; background: var(--signal-deep); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live-trans { color: var(--fog-100); font-size: 13px; line-height: 1.5; margin-top: 5px; padding-left: 12px; border-left: 2px solid var(--ink-300); }
.live-trans .tag { font-family: var(--font-latin); font-size: 9.5px; letter-spacing: 0.1em; color: var(--signal); margin-right: 6px; }
.live-panel-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--ink-300); background: var(--ink-100);
}
.live-foot-chip {
  font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.04em; color: var(--fog-200);
  background: var(--ink-200); border: 1px solid var(--ink-300); border-radius: var(--radius-pill); padding: 5px 12px;
}
.live-foot-note { margin-left: auto; font-size: 11px; color: var(--ink-400); }
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; gap: 40px; }
  .live-panel { min-height: 380px; }
}

/* =========================================================================
   FlashRecord -lead + 3 modes in a divided row (not 3 equal cards)
   ========================================================================= */
.flash-head { max-width: 70ch; margin-bottom: clamp(40px, 5vw, 64px); }
.flash-head .h-section { margin-bottom: 20px; }
.flash-mark { display: block; font-family: var(--font-latin); color: var(--signal); font-size: 0.5em; letter-spacing: 0.06em; margin-bottom: 10px; font-weight: 700; }
.asterisk { color: var(--signal); font-size: 0.8em; vertical-align: super; }
.flash-modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink-300); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-100);
}
.flash-mode { padding: clamp(26px, 3vw, 40px); border-left: 1px solid var(--ink-300); }
.flash-mode:first-child { border-left: 0; }
.flash-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--signal-soft); border: 1px solid var(--signal-line); color: var(--signal);
}
.flash-ico svg { width: 24px; height: 24px; }
.flash-en { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-100); }
.flash-mode h3 { font-size: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem); font-weight: 700; color: var(--paper); margin: 4px 0 12px; line-height: 1.4; letter-spacing: -0.005em; }
.flash-mode p { color: var(--fog-100); font-size: 14.5px; margin: 0; line-height: 1.7; }
@media (max-width: 820px) {
  .flash-modes { grid-template-columns: 1fr; }
  .flash-mode { border-left: 0; border-top: 1px solid var(--ink-300); }
  .flash-mode:first-child { border-top: 0; }
}

/* =========================================================================
   Products -flagship full-row + two columns (rhythm, not 3 equal cards)
   ========================================================================= */
/* =========================================================================
   Scene band - full-bleed lifestyle photo with overlay copy
   ========================================================================= */
.scene-band { position: relative; min-height: clamp(440px, 62vh, 620px); overflow: hidden; display: flex; align-items: flex-end; border-block: 1px solid var(--ink-300); }
.scene-band-media { position: absolute; inset: 0; }
.scene-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 26%; }
.scene-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink-000), rgba(5,6,8,0.28) 46%, rgba(5,6,8,0.04) 100%),
    linear-gradient(to right, rgba(5,6,8,0.72), rgba(5,6,8,0.18) 54%, transparent 78%);
}
.scene-band-copy { position: relative; z-index: 2; width: 100%; padding-block: clamp(40px, 7vw, 82px); }
.scene-band-copy h2 { margin-bottom: 16px; }
.scene-band-copy .lede { max-width: 42ch; color: var(--fog-200); }
@media (max-width: 620px) {
  .scene-band-media img { object-position: 70% 22%; }
  .scene-band::after { background: linear-gradient(to top, var(--ink-000), rgba(5,6,8,0.5) 50%, rgba(5,6,8,0.2) 100%); }
}

.products-head { margin-bottom: clamp(36px, 5vw, 60px); }
.products-head .h-section { margin-top: 2px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product {
  border: 1px solid var(--ink-300); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-150), var(--ink-100)); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 60px -34px rgba(0,0,0,0.7);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.product-flagship { grid-column: span 2; flex-direction: row; }
.product-media { position: relative; background: linear-gradient(160deg, var(--ink-150), var(--ink-050)); overflow: hidden; }
.product-flagship .product-media { flex: 0 0 46%; min-height: 360px; }
.product:not(.product-flagship) .product-media { aspect-ratio: 16/11; }
.product-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(58% 52% at 50% 46%, rgba(200,206,218,0.14), transparent 72%);
}
.product-media img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  padding: clamp(14px, 7%, 34px);
  filter: drop-shadow(0 22px 38px rgba(0,0,0,0.5));
  opacity: 1;
}
.product-flagship .product-media img { position: absolute; inset: 0; }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-latin); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: #b9500a; border-radius: var(--radius-pill); padding: 5px 13px;
  box-shadow: 0 8px 22px -8px rgba(224,97,10,0.8);
}
.product-badge.alt { color: var(--paper); background: rgba(12,14,18,0.78); border: 1px solid var(--ink-300); backdrop-filter: blur(8px); box-shadow: none; }
.product-body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; flex: 1; }
.product-flagship .product-body { justify-content: center; }
.product-name { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.product-name h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 700; color: var(--paper); margin: 0; letter-spacing: -0.01em; }
.product-type { font-family: var(--font-latin); font-size: 12px; letter-spacing: 0.06em; color: var(--signal); }
.product-tagline { color: var(--fog-200); font-size: 15.5px; font-weight: 550; margin: 0 0 12px; }
.product-desc { color: var(--fog-100); font-size: 14px; line-height: 1.72; margin: 0 0 22px; max-width: 52ch; }
.product-specs { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0; border-top: 1px solid var(--ink-300); margin-top: auto; }
.pspec { display: flex; flex-direction: column; gap: 2px; }
.pspec-v { font-size: 1.5rem; font-weight: 700; color: var(--paper); line-height: 1; }
.pspec-v small { font-size: 0.5em; color: var(--signal); font-weight: 600; margin-left: 2px; vertical-align: 0.12em; }
.pspec-k { font-size: 11.5px; color: var(--fog-100); }
.product-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.product-colors { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.product-colors .swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); border: 1px solid var(--ink-400); box-shadow: inset 0 1.5px 1.5px rgba(255,255,255,0.3), inset 0 -1.5px 1.5px rgba(0,0,0,0.35); }
.product-colors .color-label { font-size: 12.5px; color: var(--fog-100); margin-left: 4px; letter-spacing: 0.01em; }
.product-colors + .product-chips { margin-top: 12px; }
.chip {
  font-size: 12px; color: var(--fog-200);
  background: var(--ink-200); border: 1px solid var(--ink-300); border-radius: var(--radius-pill); padding: 5px 12px;
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink-300); }
.price-num { font-family: var(--font-latin); font-size: 1.7rem; font-weight: 700; color: var(--paper); letter-spacing: -0.01em; }
.price-tax { font-size: 12.5px; color: var(--fog-100); }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-flagship { grid-column: span 1; flex-direction: column; }
  .product-flagship .product-media { flex: none; aspect-ratio: 16/10; min-height: 0; }
  .product-flagship .product-media img { position: static; }
}

/* =========================================================================
   Technology -plain data grid, hairline cells (no boxed equal cards)
   ========================================================================= */
.tech-head { max-width: 60ch; margin-bottom: clamp(40px, 5vw, 64px); }
.tech-head .h-section { margin: 2px 0 18px; }
.tech-head-split { max-width: none; display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.tech-head-copy { max-width: 56ch; }
.tech-head-visual { position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(155deg, var(--ink-150), var(--ink-050)); border: 1px solid var(--ink-300); box-shadow: 0 30px 80px -36px rgba(0,0,0,0.8); }
.tech-head-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 50% at 50% 46%, rgba(200,206,218,0.16), transparent 72%); }
.tech-head-visual img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; padding: 9%; filter: drop-shadow(0 24px 42px rgba(0,0,0,0.55)); }
@media (max-width: 820px) { .tech-head-split { grid-template-columns: 1fr; } .tech-head-visual { max-width: 400px; margin-inline: auto; width: 100%; } }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-300); border-left: 1px solid var(--ink-300);
}
.tech-item {
  padding: clamp(26px, 3vw, 38px);
  border-right: 1px solid var(--ink-300); border-bottom: 1px solid var(--ink-300);
}
.tech-v { display: block; font-family: var(--font-latin); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--signal); line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px; }
.tech-v small { font-size: 0.42em; color: var(--fog-100); font-weight: 600; margin-left: 2px; vertical-align: 0.12em; }
.tech-item h3 { font-size: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem); font-weight: 700; color: var(--paper); margin: 0 0 10px; line-height: 1.4; letter-spacing: -0.005em; }
.tech-item p { color: var(--fog-100); font-size: 14px; margin: 0; line-height: 1.7; }
@media (max-width: 860px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   App & AI + pricing -split copy / plans
   ========================================================================= */
.app-intro { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 56px); }
.app-intro .h-section { margin-bottom: 20px; }
.app-intro .lede { margin-bottom: 26px; }
.app-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.app-feats li {
  font-size: 13px; color: var(--fog-200);
  background: var(--ink-100); border: 1px solid var(--ink-300); border-radius: var(--radius-pill); padding: 8px 15px;
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  border: 1px solid var(--ink-300); border-radius: var(--radius); background: var(--ink-100);
  padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--signal-line); background: linear-gradient(180deg, rgba(248,118,18,0.06), var(--ink-100)); }
.plan-name { font-size: 1.2rem; font-weight: 700; color: var(--paper); display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.plan-flag { font-family: var(--font-latin); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #b9500a; border-radius: var(--radius-pill); padding: 3px 9px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; font-family: var(--font-latin); }
.plan-price .num { font-size: 2.3rem; font-weight: 700; color: var(--paper); letter-spacing: -0.02em; line-height: 1; }
.plan-price .plan-cycle { font-size: 0.95rem; color: var(--fog-100); font-weight: 600; }
.plan-year { font-size: 12.5px; color: var(--fog-100); margin-top: 6px; }
.plan-mins { font-size: 14px; color: var(--fog-200); margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--ink-300); }
.plan-mins strong { font-family: var(--font-latin); color: var(--signal); font-weight: 700; font-size: 1.15em; }
.plan-plus { font-size: 12.5px; color: var(--fog-100); font-weight: 600; margin: 0 0 12px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-feats li { font-size: 13.5px; color: var(--fog-100); line-height: 1.5; padding-left: 24px; position: relative; }
.plan-feats li::before {
  content: ""; position: absolute; left: 2px; top: 3px; width: 11px; height: 6px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg);
}
.plans-note { font-size: 12.5px; color: var(--fog-100); margin: 22px 0 0; line-height: 1.7; }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
}

/* =========================================================================
   Security -4 trust items
   ========================================================================= */
.sec-head { max-width: 60ch; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head .h-section { margin-bottom: 18px; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-item { border: 1px solid var(--ink-300); border-radius: var(--radius); background: var(--ink-100); padding: clamp(22px, 2.4vw, 30px); }
.sec-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--signal-soft); border: 1px solid var(--signal-line); color: var(--signal);
}
.sec-ico svg { width: 24px; height: 24px; }
.sec-item h3 { font-size: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem); font-weight: 700; color: var(--paper); margin: 0 0 10px; line-height: 1.4; letter-spacing: -0.005em; }
.sec-item p { color: var(--fog-100); font-size: 13.5px; margin: 0; line-height: 1.68; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sec-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Where to buy -retailer cards (retail導購, replaces self-checkout)
   ========================================================================= */
.retail-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.retail-head .h-section { margin-bottom: 18px; }
.retail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.retail-card {
  border: 1px solid var(--ink-300); border-radius: var(--radius); background: var(--ink-100);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; min-height: 168px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.retail-name { font-size: 1.18rem; font-weight: 700; color: var(--paper); }
.retail-sub { font-size: 13px; color: var(--fog-100); }
.retail-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--signal);
}
.retail-go svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.retail-go.muted { color: var(--fog-100); }
.retail-card-static { background: var(--ink-050); }
.retail-note { margin-top: 28px; font-size: 12.5px; color: var(--fog-100); line-height: 1.8; }
@media (max-width: 900px) { .retail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .retail-grid { grid-template-columns: 1fr; } .retail-card { min-height: 0; } }

/* =========================================================================
   Company -intro + real registration table
   ========================================================================= */
.company-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.company-intro { position: sticky; top: 100px; }
.company-intro .h-section { margin: 2px 0 18px; }
.company-legal-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--signal); }
.company-legal-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.company-legal-link:hover svg { transform: translateX(3px); }
.company-table { margin: 0; border: 1px solid var(--ink-300); border-radius: var(--radius); overflow: hidden; }
.company-row { display: grid; grid-template-columns: 168px 1fr; }
.company-row + .company-row { border-top: 1px solid var(--ink-300); }
.company-row dt { background: var(--ink-100); padding: 18px 22px; font-weight: 600; color: var(--paper); font-size: 13.5px; border-right: 1px solid var(--ink-300); }
.company-row dd { padding: 18px 22px; margin: 0; color: var(--fog-200); font-size: 14px; line-height: 1.7; }
.company-row dd a { color: var(--signal); }
.company-row dd .muted { font-size: 12.5px; }
@media (max-width: 820px) {
  .company-wrap { grid-template-columns: 1fr; }
  .company-intro { position: static; }
}
@media (max-width: 520px) {
  .company-row { grid-template-columns: 1fr; }
  .company-row dt { border-right: 0; border-bottom: 1px solid var(--ink-300); }
}

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  border-radius: 28px; padding: clamp(44px, 7vw, 88px) clamp(28px, 5vw, 72px);
  background: linear-gradient(150deg, var(--ink-150), var(--ink-050));
  border: 1px solid var(--ink-300); position: relative; overflow: hidden;
  text-align: center;
}
.cta-inner::before {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 90%;
  background: radial-gradient(circle, rgba(248,118,18,0.16), transparent 65%); pointer-events: none;
}
.cta-inner h2 { position: relative; font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--paper); margin: 0 0 16px; line-height: 1.15; }
.cta-inner p { position: relative; color: var(--fog-100); max-width: 52ch; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-inner .hero-actions { position: relative; justify-content: center; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { border-top: 1px solid var(--ink-300); background: var(--ink-050); padding-block: clamp(48px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--fog-100); font-size: 14px; max-width: 34ch; margin: 0 0 20px; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--ink-300); background: var(--ink-100); color: var(--fog-200); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.footer-sns a:hover { color: var(--signal); border-color: var(--signal-line); }
.footer-sns svg { width: 18px; height: 18px; }
.footer h4 { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog-100); margin: 0 0 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--fog-200); font-size: 14px; transition: color 0.2s var(--ease); }
.footer ul a:hover { color: var(--signal); }
.footer-legal {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 28px; border-top: 1px solid var(--ink-300);
  font-size: 12.5px; color: var(--fog-100); line-height: 1.7;
}
.footer-trademark { color: var(--ink-400); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* =========================================================================
   Hover-only transforms -gated so touch taps don't trigger sticky hover
   ========================================================================= */
/* Subtle top-edge material highlight on flat cards - premium tactility */
.sec-item, .retail-card, .flash-mode, .app-feats li, .chip, .plan { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }

/* Press feedback on tappable cards (touch has no hover) */
.retail-card:not(.retail-card-static):active { transform: translateY(0) scale(0.985); transition-duration: 0.1s; }
.product:active { transform: translateY(-1px) scale(0.995); transition-duration: 0.12s; }

@media (hover: hover) and (pointer: fine) {
  .product:hover { border-color: var(--ink-400); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 70px -34px rgba(0,0,0,0.8); }
  .retail-card:not(.retail-card-static):hover { border-color: var(--signal-line); background: var(--ink-150); transform: translateY(-3px); }
  .nav-cta:hover { transform: translateY(-1px); }

  /* Hairline grids + scene band: subtle "alive" feedback (bg/border, not translate, to keep alignment) */
  .flow-step, .tech-item, .flash-mode { transition: background 0.25s var(--ease-out); }
  .flow-step:hover, .tech-item:hover, .flash-mode:hover { background: rgba(255,255,255,0.018); }
  .sec-item, .plan { transition: border-color 0.25s var(--ease-out); }
  .sec-item:hover, .plan:hover { border-color: var(--signal-line); }
  .live-points li { transition: color 0.2s var(--ease-out); }
  .live-points li:hover { color: var(--fog-200); }
  .scene-band-media img { transition: transform 0.9s var(--ease-out); will-change: transform; }
  .scene-band:hover .scene-band-media img { transform: scale(1.03); }
  .product-media img { transition: transform 0.5s var(--ease-out); }
  .product:hover .product-media img { transform: scale(1.035); }

  /* Forward-arrow nudge: unify the → micro-interaction across all CTAs */
  .btn:hover svg, .retail-card:not(.retail-card-static):hover .retail-go svg { transform: translateX(3px); }

  /* Marquee pause on hover (gated so touch taps don't stick) */
  .strip:hover .strip-track { animation-play-state: paused; }
}

/* =========================================================================
   Scroll reveal (IntersectionObserver-driven)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }

/* Hero product gently floats - weightless "alive" feel, motion-gated */
@media (prefers-reduced-motion: no-preference) {
  .product-stage img { animation: floaty 6.5s cubic-bezier(0.45,0,0.55,1) infinite; will-change: transform; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}

/* =========================================================================
   Tokushoho / legal page
   ========================================================================= */
.legal-page { padding-top: 120px; padding-bottom: 96px; min-height: 70vh; }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; color: var(--fog-100); font-size: 14px; margin-bottom: 28px; }
.legal-page .back svg { width: 16px; height: 16px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--paper); margin: 0 0 14px; }
.legal-page .intro { color: var(--fog-100); max-width: 62ch; margin: 0 0 44px; }
.legal-table { border: 1px solid var(--ink-300); border-radius: var(--radius); overflow: hidden; }
.legal-row { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.legal-row + .legal-row { border-top: 1px solid var(--ink-300); }
.legal-row dt {
  background: var(--ink-100); padding: 20px 24px; font-weight: 600; color: var(--paper);
  font-size: 14.5px; border-right: 1px solid var(--ink-300);
}
.legal-row dd { padding: 20px 24px; margin: 0; color: var(--fog-100); font-size: 14.5px; line-height: 1.7; }
.legal-row dd a { color: var(--signal); }
@media (max-width: 640px) {
  .legal-row { grid-template-columns: 1fr; }
  .legal-row dt { border-right: 0; border-bottom: 1px solid var(--ink-300); }
}
