/* Praxium Hub — deep, calm water palette with a crystal-red accent */
:root {
  --bg: #0b171a;
  --bg-2: #0f2125;
  --bg-3: #142b30;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(196, 230, 232, 0.12);
  --text: #e8f1f0;
  --muted: #9db3b3;
  --faint: #6f8788;
  --accent: #e2303c;       /* crystal red */
  --accent-soft: #ff6b72;
  --aqua: #7fd3d0;
  --radius: 18px;
  --wrap: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--aqua); }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px rgba(226, 48, 60, .7); }
.btn--primary:hover { background: #ee3d49; }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: rgba(196, 230, 232, .35); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 23, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand__mark {
  display: block; width: 168px; aspect-ratio: 1434 / 227;
  background: var(--text);
  -webkit-mask: url("/assets/img/logo-wordmark.png") center / contain no-repeat;
          mask: url("/assets/img/logo-wordmark.png") center / contain no-repeat;
}
.brand__mark--sm { width: 132px; background: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta { color: var(--text); border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; }
.nav__links .nav__cta:hover { border-color: rgba(196, 230, 232, .35); }
.nav__toggle { display: none; }
.nav__right { display: flex; align-items: center; gap: 8px; margin-left: 22px; }

/* Language switcher */
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 34px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px;
  background: none; color: var(--faint); cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: .08em;
  transition: color .2s, background .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: rgba(127, 211, 208, .14); color: var(--text); }

@media (max-width: 960px) { .nav__links { gap: 22px; } .nav__right { margin-left: 16px; } }
@media (max-width: 820px) {
  .nav__right { margin-left: 0; }
  .brand__mark { width: 140px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 23, 26, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { border: 0; padding: 14px 4px; border-radius: 0; }
  .nav.menu-open { background: rgba(11, 23, 26, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  background:
    radial-gradient(1200px 700px at 75% 40%, #1f3d43 0%, transparent 60%),
    linear-gradient(180deg, #10262b 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero__water { position: absolute; inset: 0; pointer-events: none; }
.caustics {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 20% at 30% 10%, rgba(127, 211, 208, .08), transparent 70%),
    radial-gradient(30% 16% at 70% 0%, rgba(127, 211, 208, .07), transparent 70%),
    radial-gradient(25% 12% at 50% 20%, rgba(255, 255, 255, .04), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, 3%, 0) scale(1.05); } }
.bubbles span {
  position: absolute; bottom: -20px; border-radius: 50%;
  border: 1px solid rgba(200, 240, 240, .35);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .02) 60%);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate3d(var(--sway, 20px), -110vh, 0); opacity: 0; }
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); margin-bottom: 26px; }
.hero .lede { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; margin: 0; aspect-ratio: 1; }
.hero__art img {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  animation: float 9s ease-in-out infinite;
}
.hero__glow {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 48, 60, .22), transparent 70%);
  filter: blur(30px);
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.2deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { order: -1; width: min(360px, 80%); margin: 0 auto; }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 150px) 0; position: relative; }
.section h2 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 28px; max-width: 22ch; }

/* About */
.about { background: var(--bg); }
.equation {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px;
  margin: 56px 0 60px; padding: 34px 36px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(127, 211, 208, .05), transparent 60%);
}
.term { display: flex; flex-direction: column; gap: 6px; }
.term__word { font: italic 300 clamp(30px, 3.6vw, 46px)/1 var(--serif); }
.term__gloss { font-size: 13px; color: var(--faint); letter-spacing: .04em; }
.term--result .term__word { font-style: normal; font-weight: 500; color: var(--accent-soft); }
.op { font: 300 32px/1 var(--serif); color: var(--faint); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--muted); font-size: 18px; }
.cols em { color: var(--text); }
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .equation { padding: 26px 22px; }
}

/* Approach */
.approach { background: var(--bg-2); }
.pillars { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 32px 28px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillar__num { font: 500 13px/1 var(--sans); color: var(--accent-soft); letter-spacing: .1em; }
.pillar h3 { font-size: 30px; margin: 22px 0 12px; }
.pillar p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Product */
.product { background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%); }
.product__head { display: flex; align-items: center; gap: 26px; margin-bottom: 30px; }
.product__head h2 { margin-bottom: 10px; }
.product__head .eyebrow { margin-bottom: 12px; }
.product__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); flex: none; }
.product__status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(127, 211, 208, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 211, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 208, 0); } }

.shot { margin: 56px 0 72px; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.shot img { width: 100%; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--aqua); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; gap: 34px; }
  .product__head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.product__meta { margin: 72px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.product__meta dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product__meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.product__meta dd { margin: 0; font-size: 16px; }
.product__meta .langs span { white-space: nowrap; }
@media (max-width: 700px) { .product__meta dl { grid-template-columns: 1fr; } }

.detail { margin: 72px 0 0; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
.detail img { border-radius: var(--radius); border: 1px solid var(--line); }
.detail figcaption { font: italic 300 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); color: var(--muted); padding-bottom: 8px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }

/* Journey */
.journey { background: var(--bg-3); overflow: hidden; }
.journey::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 0%, rgba(127, 211, 208, .08), transparent 70%);
  pointer-events: none;
}
.timeline { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--aqua), var(--line) 40%, transparent); }
.timeline li { position: relative; padding: 40px 28px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--faint); }
.timeline li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(226, 48, 60, .18); }
.timeline__tag { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.is-now .timeline__tag { color: var(--accent-soft); }
.timeline h3 { font-size: 26px; margin: 14px 0 10px; }
.timeline p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 30px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--aqua), var(--line) 50%, transparent); }
  .timeline li { padding: 0; }
  .timeline li::before { left: -30px; }
}

/* Contact */
.contact { text-align: center; background: radial-gradient(600px 300px at 50% 100%, rgba(226, 48, 60, .1), transparent 70%), var(--bg); }
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact h2 { margin: 0; }
.contact p { color: var(--muted); max-width: 46ch; margin-bottom: 8px; }
.contact .btn { overflow-wrap: anywhere; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 14px; color: var(--faint); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Doc pages (privacy, 404) ---------- */
.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--aqua); }
.doc .updated { font-size: 14px; color: var(--faint); }

/* ---------- Languages ---------- */
.i18n-wait body { opacity: 0; }
[data-lang-only] { display: none; }
html[lang="en"] [data-lang-only="en"],
html[lang="ko"] [data-lang-only="ko"],
html[lang="ja"] [data-lang-only="ja"] { display: block; }

html:lang(ko) {
  --serif: "Fraunces", "Noto Serif KR", Georgia, serif;
  --sans: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
html:lang(ja) {
  --serif: "Fraunces", "Noto Serif JP", Georgia, serif;
  --sans: "Inter", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) body { line-break: strict; }
html:lang(ja) :is(h1, h2, h3, .lede, figcaption) { word-break: auto-phrase; }
/* CJK has no true italics — keep the accent colour, drop the slant */
html:is(:lang(ko), :lang(ja)) :is(h1 em, h2 em, .cols em, .detail figcaption) { font-style: normal; }
html:is(:lang(ko), :lang(ja)) .hero h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.25; }
html:is(:lang(ko), :lang(ja)) .section h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.3; }
html:is(:lang(ko), :lang(ja)) :is(.pillar h3, .feature h3, .timeline h3) { line-height: 1.35; }
html:is(:lang(ko), :lang(ja)) .detail figcaption { font-weight: 400; font-size: clamp(20px, 2.1vw, 26px); }
html:is(:lang(ko), :lang(ja)) .eyebrow { letter-spacing: .08em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
}
