/* Iruvy public design tokens. Dark, quiet and operational. */
@font-face {
  font-family: Pretendard;
  src: url('/assets/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Pretendard;
  src: url('/assets/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0f16;
  --surface: #151822;
  --surface-strong: #1b1f2a;
  --ink: #f2f3f7;
  --muted: #aeb3c1;
  --muted-strong: #d2d5de;
  --line: rgba(240, 241, 245, .14);
  --line-strong: rgba(240, 241, 245, .27);
  --accent: #7961ef;
  --accent-light: #b9adff;
  --action: #7158e5;
  --night: #070910;
  /* Keep the shared token aligned with the retained Flow simulation. */
  --radius: 6px;
  --shell: min(1280px, calc(100% - 72px));
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
::selection { background: var(--accent-light); color: var(--night); }
h1, h2, h3, h4, p, figure, dl, dd, dt { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.18; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: 24px; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, input, textarea, select { touch-action: manipulation; }
input, textarea, select { min-width: 0; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 5px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--night);
  transform: translateY(-180%);
  border-radius: var(--radius);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(7, 9, 16, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex-shrink: 0; line-height: 0; margin-right: auto; }
.brand img { width: 108px; height: 44px; object-fit: contain; }
#navigation { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
#navigation > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; transition: color .18s ease; }
#navigation > a:hover, #navigation > [aria-current='page'] { color: var(--accent-light); }
#navigation .nav-contact {
  min-height: 42px;
  padding: 0 18px;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
#navigation .nav-contact:hover { color: var(--ink); border-color: var(--accent-light); background: var(--action); }
.language { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; }
.language:hover { color: var(--accent-light); }
.menu-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--ink); font-size: 14px; }
.menu-bars { position: relative; width: 22px; height: 14px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-bars::before { position: absolute; top: 5px; left: 0; width: 100%; height: 1px; background: currentColor; content: ''; }

.section { padding-block: 116px; }
.section-heading { max-width: 840px; margin-bottom: 44px; }
.section-heading p, .section-heading .lede { margin-top: 22px; }
.eyebrow { margin-bottom: 22px; color: var(--accent-light); font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1.5; }
.lede { max-width: 720px; margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; }
.page-hero { padding-block: 88px 76px; }
.page-hero h1 span { color: var(--accent-light); }
.page-hero .actions { margin-top: 34px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button span { margin-left: 16px; }
.button.primary { background: var(--action); color: #fff; }
.button.primary:hover { background: #6951db; transform: translateY(-2px); }
.button.quiet { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button.quiet:hover { border-color: var(--accent-light); background: var(--surface-strong); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: default; opacity: .5; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 10px; color: var(--accent-light); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.editorial { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; border-top: 1px solid var(--line); }
.editorial > div { max-width: 800px; }
.editorial h2 { margin-bottom: 28px; }
.editorial p + p { margin-top: 18px; }
.editorial .text-link { margin-top: 24px; }
.detail-list { margin: 28px 0 0; }
.detail-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.detail-list dt { font-weight: 600; }
.detail-list dd { color: var(--muted); }
.guide-links { display: grid; gap: 28px; }
.guide-links > a { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 36px; padding-block: 30px; border-top: 1px solid var(--line); }
.guide-links > a > span:first-child { color: var(--muted); font-size: 12px; }
.guide-links h2 { font-size: 30px; }
.guide-links > a:hover h2 { color: var(--accent-light); }

.closing { padding-block: 78px; border-block: 1px solid var(--line); background: var(--surface); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.closing h2 { font-size: clamp(30px, 3.5vw, 48px); }
.closing p { margin-bottom: 22px; font-size: 17px; }
.site-footer { padding-block: 66px 26px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.footer-brand img { width: 108px; height: 44px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 14px; font-size: 14px; }
.footer-email { font-size: 13px; overflow-wrap: anywhere; }
.footer-group h3 { margin: 14px 0 16px; font-size: 14px; letter-spacing: 0; }
.footer-group a { display: block; padding-block: 6px; color: var(--muted); font-size: 13px; }
.site-footer a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { padding-block: 8px; }

@media (max-width: 1120px) {
  #navigation { gap: 18px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1023px) {
  .site-header { height: 68px; }
  .header-inner { gap: 22px; }
  .brand img { width: 96px; height: 40px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .language { order: 2; padding-left: 0; border: 0; }
  #navigation { display: none; position: absolute; inset: 68px 0 auto; max-height: calc(100dvh - 68px); overflow-y: auto; padding: 24px 36px 30px; border-bottom: 1px solid var(--line); background: var(--night); }
  #navigation[data-open='true'] { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  #navigation > a { padding: 10px 0; font-size: 17px; }
  #navigation .nav-contact { justify-content: space-between; margin-top: 12px; padding: 12px 18px; }
  .menu-open { overflow: hidden; }
  .section { padding-block: 82px; }
  .editorial { grid-template-columns: 1fr 2fr; gap: 32px; }
  .guide-links > a { grid-template-columns: 1fr; gap: 18px; }
}
/* Without JavaScript, the full navigation stays in the document flow. */
@media (max-width: 1023px) {
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) #navigation { position: static; display: flex; flex-wrap: wrap; order: 4; width: 100%; gap: 12px 20px; padding: 8px 0; border: 0; background: none; }
  html:not(.js) #navigation > a { min-height: 40px; padding: 0; font-size: 14px; }
  html:not(.js) #navigation .nav-contact { margin: 0; padding: 8px 14px; }
}
@media (max-width: 639px) {
  :root { --shell: calc(100% - 36px); }
  html { scroll-padding-top: 84px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .section { padding-block: 64px; }
  .page-hero { padding-block: 54px; }
  .page-hero .lede { margin-top: 20px; }
  .lede { font-size: 17px; }
  .eyebrow { margin-bottom: 18px; }
  .section-heading { margin-bottom: 30px; }
  .editorial { grid-template-columns: 1fr; gap: 18px; }
  .detail-list > div { grid-template-columns: 1fr; gap: 6px; }
  .actions { gap: 12px; }
  .button { min-height: 48px; padding: 12px 18px; font-size: 14px; }
  .closing { padding-block: 52px; }
  .closing-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .closing p { font-size: 16px; }
  .site-footer { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom > div { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button.primary { border: 1px solid ButtonText; }
  .site-header { background: Canvas; }
  .brand img, .footer-brand img { forced-color-adjust: none; }
}
