:root {
  --bg: #06101b;
  --bg-deep: #030a12;
  --surface: #091724;
  --surface-2: #0b1d2c;
  --text: #f2eee6;
  --muted: #9eabb8;
  --gold: #e5ab2f;
  --gold-pale: #ffd26a;
  --line: rgba(160, 184, 204, .17);
  --shell: min(1320px, calc(100vw - 72px));
  --header: 68px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: var(--bg); }
body { overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; transform: translateY(-140%); padding: 11px 14px; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(3, 10, 18, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: var(--shell); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 750; font-size: 15px; letter-spacing: .09em; }
.primary-nav { display: flex; gap: 34px; height: 100%; }
.primary-nav a { position: relative; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #d7d2ca; text-decoration: none; font-size: 14px; transition: color 140ms ease; }
.primary-nav a:hover, .primary-nav a.is-current { color: var(--gold); }
.primary-nav a.is-current::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--gold); }
.menu-toggle { display: none; min-width: 58px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); align-items: center; justify-content: flex-end; gap: 10px; cursor: pointer; }
.menu-toggle i { width: 18px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

.hero, .about, .product, .closing-band { scroll-margin-top: calc(var(--header) + 14px); }
.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 76% 38%, rgba(19, 65, 108, .22), transparent 35%), linear-gradient(135deg, #04101c, #020811 76%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(circle at 18% 23%, #e8b13f 0 1px, transparent 1.4px), radial-gradient(circle at 58% 32%, #5599df 0 1px, transparent 1.5px), radial-gradient(circle at 82% 68%, #d8962d 0 1px, transparent 1.4px); background-size: 67px 71px, 91px 83px, 113px 107px; }
.hero-inner { position: relative; z-index: 2; width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 43% 57%; align-items: center; }
.hero-copy { padding: 54px 20px 56px 0; }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: 11px; line-height: 1.4; font-weight: 760; letter-spacing: .16em; }
.hero h1, .about h2, .product-title-row h2, .closing-band h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
.hero h1 { margin: 0; font-size: clamp(58px, 5.1vw, 76px); line-height: 1.02; }
.hero-copy > p:not(.eyebrow) { max-width: 470px; margin: 27px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 22px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(180deg, #f0ba42, #d99b1f); color: #171006; box-shadow: 0 8px 24px rgba(229, 171, 47, .16); }
.button-outline { border-color: rgba(229, 171, 47, .6); color: var(--text); background: rgba(3, 10, 18, .45); }
.trace-scene { min-width: 0; margin-right: -20px; }
.trace-scene img { width: 100%; height: auto; }

.about { min-height: 315px; display: grid; align-items: center; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #06111c, #071725 54%, #06111c); }
.about-inner { width: var(--shell); min-height: 315px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(310px, 1.1fr) minmax(270px, .85fr) 220px; gap: 34px; align-items: center; }
.about-character { align-self: end; object-fit: contain; pointer-events: none; }
.about-aye { width: 184px; height: 276px; justify-self: center; }
.about-memi { width: 218px; height: 200px; justify-self: center; align-self: center; }
.about h2 { margin: 0; font-size: clamp(36px, 3.25vw, 48px); line-height: 1.12; }
.about-copy { color: var(--muted); font-size: 15px; line-height: 1.7; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 18px; }

.product { padding: 38px 0 44px; background: linear-gradient(180deg, #06101b, #07131f); }
.section-inner { width: var(--shell); margin: 0 auto; }
.product-title-row { display: flex; align-items: flex-end; gap: 44px; margin: 0 12px 18px; }
.product-title-row .eyebrow { margin-bottom: 7px; }
.product-title-row h2 { margin: 0; font-size: 48px; line-height: 1; }
.product-title-row > p { margin: 0 0 5px; color: #d4c7b0; font-size: 15px; }
.stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 26px; min-height: 530px; }
.product-console { min-width: 0; overflow: hidden; border: 1px solid rgba(229, 171, 47, .32); border-radius: 12px; background: rgba(5, 17, 28, .9); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.stage-tabs { height: 60px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(10, 27, 42, .86); border-bottom: 1px solid var(--line); }
.stage-tab { min-height: 44px; position: relative; border: 0; border-right: 1px solid var(--line); background: transparent; color: #96a2ae; cursor: pointer; font-size: 15px; transition: color 140ms ease, background-color 140ms ease; }
.stage-tab:last-child { border-right: 0; }
.stage-tab span { margin-right: 15px; color: inherit; font-variant-numeric: tabular-nums; }
.stage-tab:hover { color: var(--text); }
.stage-tab.is-active { color: var(--text); background: rgba(229, 171, 47, .04); }
.stage-tab.is-active span { color: var(--gold); }
.stage-tab.is-active::after { content: ""; position: absolute; left: 31%; right: 31%; bottom: 0; height: 2px; background: var(--gold); box-shadow: 0 0 16px rgba(229, 171, 47, .5); }
.stage-panels { position: relative; min-height: 468px; }
.stage-panel { position: absolute; inset: 0; display: grid; gap: 22px; padding: 28px 30px 26px; opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 300ms ease; }
.stage-panel[hidden] { display: none; }
.stage-panel.is-active { opacity: 1; transform: translateY(0); }
.capture-panel { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 1fr auto; }
.understand-panel { grid-template-columns: 244px minmax(0, 1fr) 210px; grid-template-rows: 1fr auto; }
.keep-panel { grid-template-columns: 230px minmax(0, 1fr) 190px; min-height: 0; }
.keep-panel > * { min-height: 0; }
.panel-copy { align-self: start; }
.panel-kicker { margin: 0 0 14px; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.panel-copy h3 { margin: 0; font-size: 26px; line-height: 1.18; letter-spacing: -.02em; }
.panel-copy > p:not(.panel-kicker) { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.panel-copy dl { margin: 24px 0 0; display: grid; gap: 11px; }
.panel-copy dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.panel-copy dt { color: var(--gold); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.panel-copy dd { margin: 4px 0 0; color: #d8dde2; font-size: 13px; }
.real-ui { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(229, 171, 47, .26); border-radius: 9px; background: #f0eee7; box-shadow: 0 18px 42px rgba(0, 0, 0, .3); }
.real-ui picture, .real-ui img { width: 100%; height: 100%; }
.real-ui img { object-fit: cover; object-position: top left; }
.real-ui figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 9px; background: linear-gradient(transparent, rgba(2, 8, 14, .9)); color: rgba(255,255,255,.72); font-size: 9px; letter-spacing: .04em; }
.capture-ui { height: 365px; }
.capture-ui img { object-fit: contain; object-position: center; }
.review-ui { height: 365px; }
.panel-result { grid-column: 1 / -1; margin: 0; color: #d6c59f; font-size: 12px; }
.panel-result span { color: var(--gold); margin-right: 8px; }
.character-slot { align-self: end; display: grid; place-items: end center; min-width: 0; }
.character-slot img { width: 100%; height: auto; object-fit: contain; }
.memi-slot img { max-width: 196px; }
.aye-slot img { max-width: 174px; max-height: 345px; }
.keep-ui-stack { display: grid; grid-template-rows: 1.15fr .85fr; gap: 12px; min-width: 0; min-height: 0; height: 100%; }
.keep-ui-stack .real-ui { min-height: 0; }
.vault-ui img, .lifebook-ui img { object-position: top center; }

.stage-legend { display: grid; align-content: center; gap: 0; }
.legend-item { min-height: 137px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 22px 4px 20px 14px; border-bottom: 1px solid var(--line); color: #748290; transition: color 140ms ease; }
.legend-item:last-child { border-bottom: 0; }
.legend-item.is-active { color: var(--text); }
.legend-item > i { width: 32px; height: 32px; display: grid; place-items: center; color: currentColor; font-style: normal; }
.legend-item.is-active > i { color: var(--gold); }
.legend-item p { margin: 0; }
.legend-item strong { display: block; margin: 1px 0 8px; font-size: 15px; }
.legend-item span { display: block; color: #9aa6b2; font-size: 13px; line-height: 1.55; }
.icon-image { border: 2px solid currentColor; border-radius: 5px; }
.icon-image::before { content: ""; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.icon-wave { background: linear-gradient(90deg, transparent 0 9%, currentColor 9% 13%, transparent 13% 22%, currentColor 22% 27%, transparent 27% 37%, currentColor 37% 43%, transparent 43% 55%, currentColor 55% 61%, transparent 61% 73%, currentColor 73% 78%, transparent 78% 88%, currentColor 88% 92%, transparent 92%); clip-path: polygon(0 43%,10% 43%,10% 30%,20% 30%,20% 10%,30% 10%,30% 34%,40% 34%,40% 0,50% 0,50% 34%,60% 34%,60% 18%,70% 18%,70% 39%,80% 39%,80% 28%,90% 28%,90% 44%,100% 44%,100% 56%,90% 56%,90% 72%,80% 72%,80% 61%,70% 61%,70% 82%,60% 82%,60% 66%,50% 66%,50% 100%,40% 100%,40% 66%,30% 66%,30% 90%,20% 90%,20% 70%,10% 70%,10% 57%,0 57%); }
.icon-preserve { border: 1px solid currentColor; border-radius: 50%; font-size: 22px; }

.closing-band { border-top: 1px solid var(--line); background: #06111c; }
.closing-grid { width: var(--shell); min-height: 320px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1.12fr .83fr; }
.closing-grid article { min-width: 0; padding: 30px 30px 27px; border-right: 1px solid var(--line); }
.closing-grid article:first-child { padding-left: 12px; }
.closing-grid article:last-child { padding-right: 12px; border-right: 0; }
.closing-band h2 { margin: 0; font-size: 29px; line-height: 1.22; }
.why-points, .care-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 28px; }
.why-points p, .care-points p { margin: 0; min-width: 0; }
.why-points span, .care-points span { display: block; min-height: 28px; color: var(--gold); font-size: 24px; }
.why-points strong, .care-points strong { display: block; font-size: 12px; line-height: 1.35; }
.why-points small, .care-points small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.contact-block .button { margin-top: 28px; }
.email { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.site-footer { min-height: 86px; display: grid; align-items: center; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { width: var(--shell); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-inner small { color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; gap: 34px; }
.footer-inner nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #aab4be; text-decoration: none; font-size: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 48px, 960px); }
  .hero-inner { grid-template-columns: 46% 54%; }
  .hero h1 { font-size: 57px; }
  .about-inner { grid-template-columns: 150px 1.1fr .9fr 150px; gap: 24px; }
  .about-aye { width: 150px; height: 225px; }
  .about-memi { width: 150px; height: auto; }
  .stage-wrap { grid-template-columns: 1fr; }
  .stage-legend { grid-template-columns: repeat(3, 1fr); }
  .legend-item { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 0; padding: 18px 12px; }
  .legend-item:last-child { border-right: 0; }
  .understand-panel { grid-template-columns: 210px minmax(0, 1fr) 170px; }
  .keep-panel { grid-template-columns: 210px minmax(0, 1fr) 160px; }
  .closing-grid article { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 32px); --header: 62px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: var(--header); left: 0; right: 0; height: auto; display: none; padding: 8px 16px 14px; background: rgba(3, 10, 18, .98); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { min-height: 48px; justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a.is-current::after { display: none; }
  .hero { min-height: 670px; align-items: start; padding: 44px 0 22px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(45px, 13.2vw, 54px); }
  .hero-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 14px; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .button { min-height: 47px; }
  .trace-scene { margin: 8px -10px 0; }
  .about { min-height: 410px; }
  .about-inner { min-height: 410px; grid-template-columns: 82px 1fr 82px; grid-template-rows: auto auto; gap: 12px 15px; padding: 28px 0 20px; }
  .about-aye { grid-column: 1; grid-row: 1 / 3; align-self: end; width: 82px; height: auto; }
  .about-memi { grid-column: 3; grid-row: 1 / 3; width: 82px; height: auto; }
  .about-heading { grid-column: 2; }
  .about h2 { font-size: 30px; }
  .about-copy { grid-column: 2; font-size: 12px; line-height: 1.55; }
  .about-copy p + p { margin-top: 12px; }
  .product { padding: 30px 0 34px; }
  .product-title-row { display: block; margin: 0 0 17px; }
  .product-title-row h2 { font-size: 43px; }
  .product-title-row > p { margin-top: 9px; }
  .stage-wrap { min-height: 0; }
  .product-console { border-radius: 8px; }
  .stage-tabs { height: 52px; }
  .stage-tab { padding: 0 3px; font-size: 11px; }
  .stage-tab span { margin-right: 5px; }
  .stage-tab.is-active::after { left: 19%; right: 19%; }
  .stage-panels { min-height: 0; }
  .stage-panel { position: relative; inset: auto; min-height: 0; padding: 22px 15px 20px; display: none; }
  .stage-panel.is-active { display: grid; }
  .stage-panel[hidden] { display: none; }
  .capture-panel, .understand-panel, .keep-panel { grid-template-columns: 1fr; grid-template-rows: auto; }
  .panel-copy h3 { font-size: 23px; }
  .panel-copy > p:not(.panel-kicker) { margin-top: 11px; font-size: 13px; }
  .panel-copy dl { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .real-ui { width: 100%; height: auto; }
  .real-ui picture, .real-ui img { height: auto; }
  .capture-ui { max-height: 360px; }
  .capture-ui img { max-height: 360px; }
  .review-ui { height: 455px; }
  .review-ui picture, .review-ui img { height: 100%; }
  .understand-panel { padding-bottom: 82px; }
  .memi-slot { position: absolute; right: -4px; bottom: -4px; width: 112px; }
  .keep-panel { padding-bottom: 102px; }
  .keep-ui-stack { grid-template-rows: auto auto; }
  .keep-ui-stack .real-ui picture, .keep-ui-stack .real-ui img { height: auto; }
  .aye-slot { position: absolute; right: 2px; bottom: -2px; width: 86px; }
  .stage-legend { display: none; }
  .panel-result { font-size: 10px; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-grid article, .closing-grid article:first-child, .closing-grid article:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .closing-grid article:last-child { border-bottom: 0; }
  .closing-band h2 { font-size: 28px; }
  .why-points, .care-points { gap: 12px; margin-top: 22px; }
  .why-points strong, .care-points strong { font-size: 11px; }
  .why-points small, .care-points small { font-size: 10px; }
  .site-footer { min-height: 118px; }
  .footer-inner { display: grid; gap: 10px; padding: 16px 0; }
  .footer-inner nav { gap: 14px; }
}

@media (max-width: 390px) {
  .about-inner { grid-template-columns: 70px 1fr 70px; }
  .about-aye, .about-memi { width: 70px; }
  .about h2 { font-size: 27px; }
  .why-points, .care-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .button:hover, .stage-panel { transform: none; }
}


