/* =========================================================
   KOCHI — Integrated Power System Landing
   ========================================================= */

:root {
  --ink: #0b0c0e;
  --ink-2: #1a1c20;
  --text: #15171b;
  --muted: #6b717b;
  --line: #e6e8eb;
  --surface: #f4f5f7;
  --surface-2: #eceef1;
  --white: #fff;
  --accent: #3bf0a6;
  --accent-ink: #0b9a63;
  --amber: #f5a524;
  --blue: #5aa9ff;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --radius: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hero-dur: 6500ms;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "PingFang SC", "Microsoft YaHei", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang="en"] body { word-break: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
body.is-locked { overflow: hidden; }

svg[viewBox="0 0 24 24"] {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .3s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: rgba(255, 255, 255, .82); }

.section-head--center { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; margin: 16px 0; }
.section-desc { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(59, 240, 166, .7); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--ink); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s;
}
.header::before { /* soft shade for legibility over hero */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  transition: opacity .4s;
}
.header.is-scrolled,
.header.is-solid,
.header:has(.has-mega:hover),
.header:has(.has-drop:hover),
.header:has(.has-mega:focus-within) {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled::before, .header.is-solid::before,
.header:has(.has-mega:hover)::before, .header:has(.has-drop:hover)::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%; max-width: 1680px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding-inline: clamp(20px, 3vw, 48px);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; transition: color .3s; }
.logo-word { font-size: 22px; font-weight: 800; letter-spacing: .24em; line-height: 1; margin-right: -.24em; }
.logo:hover .logo-mark { color: var(--accent); }

/* GNB */
.gnb { margin-inline: auto; height: 100%; }
.gnb-list { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 46px); height: 100%; }
.gnb-list > li { height: 100%; display: flex; align-items: center; }
.gnb-link { position: relative; font-size: 15.5px; font-weight: 600; padding: 8px 0; opacity: .92; transition: opacity .3s; }
.gnb-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.gnb-list > li:hover .gnb-link::after, .gnb-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.gnb-link.is-current::after { transform: scaleX(1); }

/* Mega menu (제품) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto;
  padding: 26px var(--gutter) 32px;
  display: grid; grid-template-columns: repeat(4, 1fr) 190px; gap: 14px;
}
.mega-card { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 18px; transition: background .3s; }
.mega-card:hover { background: var(--surface); }
.mega-thumb { aspect-ratio: 4 / 3; background: var(--surface); border-radius: 14px; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; transition: background .3s; }
.mega-card:hover .mega-thumb { background: #fff; }
.mega-thumb img { width: 88%; transition: transform .6s var(--ease); }
.mega-card:hover .mega-thumb img { transform: scale(1.06); }
.mega-card strong { font-size: 15.5px; font-weight: 700; }
.mega-card small { font-size: 13px; color: var(--muted); }
.mega-all {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px;
  padding: 22px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15.5px;
  transition: background .3s, color .3s;
}
.mega-all:hover { background: var(--accent); color: var(--ink); }
.mega-all svg { transition: transform .35s var(--ease); }
.mega-all:hover svg { transform: translateX(4px); }

/* Dropdown (솔루션) */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% - 10px); left: 50%; translate: -50% 0;
  min-width: 190px; padding: 8px; border-radius: 16px;
  background: #fff; color: var(--text);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .22), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; transition: background .25s; }
.drop a:hover { background: var(--surface); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.header.is-scrolled .icon-btn:hover, .header.is-solid .icon-btn:hover { background: rgba(0, 0, 0, .06); }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lang span { opacity: .35; }
.lang button { padding: 4px 2px; opacity: .55; letter-spacing: .04em; transition: opacity .25s; }
.lang button:hover { opacity: .9; }
.lang button.is-active { opacity: 1; font-weight: 800; }

.btn--pill { height: 42px; padding: 0 18px; gap: 8px; font-size: 14px; background: #fff; color: var(--ink); }
.btn--pill svg { width: 17px; height: 17px; }
.btn--pill:hover svg { transform: none; }
.btn--pill:hover { background: var(--accent); }
.header.is-scrolled .header-cta, .header.is-solid .header-cta,
.header:has(.has-mega:hover) .header-cta, .header:has(.has-drop:hover) .header-cta { background: var(--ink); color: #fff; }
.header.is-scrolled .header-cta:hover, .header.is-solid .header-cta:hover { background: var(--accent); color: var(--ink); }

.menu-toggle {
  display: none; position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .9;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Search panel */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text); border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .25);
  padding: 22px var(--gutter) 26px;
  animation: drop-in .35s var(--ease);
}
.search-form {
  max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--ink); padding: 6px 2px 12px;
}
.search-form svg { width: 24px; height: 24px; color: var(--muted); }
.search-form input { flex: 1; border: 0; outline: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 600; background: transparent; color: var(--text); min-width: 0; }
.search-form input::placeholder { color: #a5abb3; font-weight: 500; }
.search-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.search-close:hover { background: var(--surface); }
.search-tags { max-width: 820px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-tags button { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--surface); transition: background .25s, color .25s; }
.search-tags button:hover { background: var(--ink); color: #fff; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }

/* Drawer (mobile/tablet) */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: rgba(11, 12, 14, .4);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(100%, 440px);
  background: #fff; display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-list { padding: 12px var(--gutter); }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list > li > a, .drawer-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 20px 0; font-size: 19px; font-weight: 700; text-align: left;
}
.drawer-acc i { position: relative; width: 14px; height: 14px; }
.drawer-acc i::before, .drawer-acc i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.drawer-acc i::after { transform: rotate(90deg); }
.drawer-acc[aria-expanded="true"] i::after { transform: rotate(0); }
.drawer-sub { display: block; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.drawer-acc[aria-expanded="true"] + .drawer-sub { max-height: 320px; }
.drawer-sub a { display: block; padding: 8px 0 8px 2px; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.drawer-sub li:last-child a { padding-bottom: 20px; }
.drawer-sub a:hover { color: var(--text); }
.drawer-foot { margin-top: auto; padding: 24px var(--gutter) 32px; display: grid; gap: 18px; background: var(--surface); }
.lang--drawer { font-size: 15px; gap: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1080px;
  color: #fff; background: #0b0c0e; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.hero-slide.is-active .hero-media img { transform: scale(1.0); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, .82) 0%, rgba(6, 7, 9, .45) 48%, rgba(6, 7, 9, .12) 100%),
    linear-gradient(0deg, rgba(6, 7, 9, .7) 0%, rgba(6, 7, 9, 0) 35%);
}
.hero-ghost {
  position: absolute; left: 50%; top: 30%; translate: -50% -50%;
  font-size: clamp(84px, 14vw, 260px); font-weight: 900; line-height: .9; letter-spacing: -.035em;
  white-space: nowrap; pointer-events: none; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .03) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateX(6%); transition: opacity 1.4s var(--ease), transform 2.2s var(--ease);
}
.hero-slide.is-active .hero-ghost { opacity: 1; transform: none; }

.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: calc(var(--header-h) + 14vh); padding-bottom: 90px;
}
.hero-content > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .38s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .5s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .62s; }
.hero-title { font-size: clamp(38px, 5.6vw, 80px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; max-width: 12em; margin: 18px 0 20px; }
html[lang="en"] .hero-title { max-width: 14em; letter-spacing: -.03em; }
.hero-desc { font-size: clamp(15px, 1.35vw, 19px); color: rgba(255, 255, 255, .82); max-width: 34em; line-height: 1.7; margin-bottom: 36px; }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.hero-nav { display: flex; align-items: center; gap: 22px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .32); background: rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, color .3s, border-color .3s;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-count { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.hero-count b { color: #fff; font-size: 20px; font-weight: 700; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 60px; height: 24px; position: relative; }
.hero-dot span { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; border-radius: 2px; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: dot-fill var(--hero-dur) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
.hero-dot.is-done span::after { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-scroll { justify-self: end; display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; color: rgba(255, 255, 255, .7); }
.hero-scroll i { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: scroll-line 2s var(--ease) infinite; }
@keyframes scroll-line { to { top: 100%; } }

/* =========================================================
   PRODUCT LINEUP STRIP
   ========================================================= */
.lineup { padding: clamp(56px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: #fff; }
.lineup-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.lineup-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.025em; margin-top: 10px; line-height: 1.2; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.lineup-rail { position: relative; --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.lineup-track {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding: 6px var(--rail-pad) 22px;
  scrollbar-width: none; cursor: grab;
}
.lineup-track::-webkit-scrollbar { display: none; }
.lineup-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.lineup-track.is-dragging a { pointer-events: none; }
.p-card { flex: 0 0 clamp(168px, 17vw, 236px); scroll-snap-align: start; }
.p-card.is-hidden { display: none; }
.p-card.is-enter { animation: card-in .55s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.p-card a { display: block; border-radius: 16px; padding: 6px 0 12px; }
.p-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 14px;
  transition: background .4s;
}
.p-media::after { /* hover arrow */
  content: ""; position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease);
}
.p-media img { width: 94%; transition: transform .7s var(--ease); -webkit-user-drag: none; user-select: none; }
.p-card a:hover .p-media { background: var(--surface-2); }
.p-card a:hover .p-media img { transform: scale(1.07) translateY(-4px); }
.p-card a:hover .p-media::after { opacity: 1; transform: none; }
.p-tag { display: block; margin: 0 4px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--accent-ink); }
.p-name { display: block; margin: 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4; }

.rail-arrow {
  position: absolute; top: calc(50% - 42px); z-index: 2; translate: 0 -50%;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .2), 0 0 0 1px var(--line);
  transition: opacity .3s, background .3s, color .3s;
}
.rail-arrow:hover { background: var(--ink); color: #fff; }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }
.rail-arrow--prev { left: max(12px, calc((100% - var(--container)) / 2 - 68px)); }
.rail-arrow--next { right: max(12px, calc((100% - var(--container)) / 2 - 68px)); }
.rail-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 25%; background: var(--ink); border-radius: 2px; transform-origin: left; transition: transform .15s linear, width .3s; }

/* =========================================================
   SYSTEM HIGHLIGHTS
   ========================================================= */
.system-row { background: var(--surface); padding: clamp(72px, 9vw, 130px) 0; }
.system-row--alt { background: #fff; }
.system-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(32px, 5vw, 84px); }
.system-grid--reverse { grid-template-columns: 7fr 5fr; }
.system-grid--reverse .system-copy { order: 2; }
.system-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.system-row--alt .system-tag { background: var(--surface); }
.system-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(59, 240, 166, .22); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(59, 240, 166, .06); } }
.system-title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.16; margin: 22px 0 18px; }
.system-desc { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.78; max-width: 30em; }
.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 38px; border-top: 1px solid #d9dce1; }
.spec-list > div { padding: 18px 14px 0 0; }
.spec-list > div + div { border-left: 1px solid #d9dce1; padding-left: 18px; }
.spec-list dt { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.spec-list dt small { font-size: .5em; font-weight: 700; margin-left: 3px; color: var(--muted); }
.spec-list dd { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }

.system-visual {
  position: relative; margin: 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #fff 0%, #eef0f3 70%);
  border: 1px solid var(--line); padding: 8px;
}
.system-row--alt .system-visual { background: radial-gradient(120% 90% at 70% 20%, #fafbfc 0%, #eceef1 70%); }
.system-visual svg { width: 100%; height: auto; }
.system-visual image { transition: transform .8s var(--ease); transform-box: fill-box; transform-origin: center; }
.system-visual:hover image { transform: translateY(-5px); }
.system-visual:hover image:nth-of-type(2n) { transform: translateY(-9px); }
.cable { fill: none; stroke: #2a2d33; stroke-width: 6; stroke-linecap: round; }
.cable--ac { stroke: #3d4148; }
.flow { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 4 14; animation: flow 1.2s linear infinite; }
.flow--rev { animation-direction: reverse; }
.flow--ac { stroke: var(--amber); }
.flow--data { stroke: var(--blue); stroke-dasharray: 2 9; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.visual-legend {
  position: absolute; left: 18px; bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.visual-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--dc { background: var(--accent); }
.dot--ac { background: var(--amber); }
.dot--data { background: var(--blue); }

/* =========================================================
   CORE ADVANTAGES
   ========================================================= */
.advantages { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(84px, 10vw, 144px) 0; }
.advantages::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 320px at 50% -60px, rgba(59, 240, 166, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.advantages .container { position: relative; }
.advantages .section-desc { color: rgba(255, 255, 255, .62); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-card {
  position: relative; display: flex; flex-direction: column; min-height: 310px;
  padding: 34px 28px 30px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .55s var(--ease), border-color .4s, background .4s;
}
.adv-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.adv-card:hover { transform: translateY(-6px); border-color: rgba(59, 240, 166, .4); background: linear-gradient(180deg, rgba(59, 240, 166, .08), rgba(255, 255, 255, .02)); }
.adv-card:hover::after { transform: scaleX(1); }
.adv-num { position: absolute; top: 28px; right: 28px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .28); }
.adv-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 34px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
}
.adv-icon svg { width: 27px; height: 27px; stroke-width: 1.5; }
.adv-card:hover .adv-icon { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(-6deg); }
.adv-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.adv-card p { flex: 1; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.adv-key { margin-top: 24px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }

/* =========================================================
   SOLUTIONS
   ========================================================= */
.solutions { padding: clamp(84px, 10vw, 144px) 0; background: #fff; }
.scn-grid {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.scn-card { position: relative; isolation: isolate; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; color: #fff; background: #15171a; }
.scn-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.scn-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .9) 100%); transition: opacity .5s; }
.scn-card:hover img { transform: scale(1.07); }
.scn-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 2.4vw, 34px); }
.scn-label { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-bottom: 10px; }
.scn-body h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 10px; }
.scn-body p { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .78); margin-bottom: 22px; }
.scn-card:hover .btn--glass { background: #fff; color: var(--ink); border-color: #fff; }

/* =========================================================
   PARTNER CTA
   ========================================================= */
.partner { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-align: center; padding: clamp(100px, 12vw, 168px) 0; }
.partner-bg { position: absolute; inset: 0; }
.partner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.7); transform: scale(1.06); }
.partner-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 50%, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .92) 100%); }
.partner-inner { position: relative; }
.partner .eyebrow { justify-content: center; }
.partner-title { font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.16; max-width: 16em; margin: 18px auto; }
.partner-desc { max-width: 40em; margin: 0 auto; color: rgba(255, 255, 255, .74); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.78; }
.partner-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0 40px; }
.partner-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.partner-points li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.partner-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #070809; color: rgba(255, 255, 255, .6); font-size: 14.5px; padding-top: clamp(64px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 40px; padding-bottom: clamp(48px, 6vw, 72px); }
.logo--light { color: #fff; }
.footer-about { margin: 22px 0; max-width: 27em; line-height: 1.78; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 6px; }
.footer-contact span { min-width: 64px; color: rgba(255, 255, 255, .38); }
.footer-contact a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 26px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78);
  transition: background .3s, color .3s, border-color .3s;
}
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { position: relative; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding-top: 26px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 13px; color: rgba(255, 255, 255, .45);
}
.policy { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: 64px; /* room for the to-top button */ }
.policy a, .policy button { font-size: 13px; color: rgba(255, 255, 255, .6); transition: color .25s; }
.policy a:hover, .policy button:hover { color: #fff; }
.policy .is-strong { color: #fff; font-weight: 600; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease), background .3s, color .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--ink); }

/* ---------- Cookie dialog ---------- */
.cookie-dialog {
  margin: auto; border: 0; padding: 0; border-radius: 24px; width: min(460px, calc(100% - 32px));
  color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4);
}
.cookie-dialog[open] { animation: pop .35s var(--ease); }
.cookie-dialog::backdrop { background: rgba(11, 12, 14, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cookie-form { padding: 30px 28px 24px; }
.cookie-form h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cookie-desc { color: var(--muted); font-size: 14px; margin: 8px 0 18px; line-height: 1.65; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-row strong { display: block; font-size: 15px; }
.cookie-row small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; background: #d5d9df; transition: background .3s;
}
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch:checked { background: var(--ink); }
.switch:checked::before { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; translate: -50% 0;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.toast.is-show { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .gnb-list { gap: 22px; }
  .gnb-link { font-size: 15px; }
}

@media (max-width: 1100px) {
  .gnb { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-card { min-height: 260px; }
}

@media (max-width: 1024px) {
  .system-grid, .system-grid--reverse { grid-template-columns: 1fr; }
  .system-grid--reverse .system-copy { order: 0; }
  .system-copy { max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  /* Solutions: swipeable row */
  .scn-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .scn-scroller::-webkit-scrollbar { display: none; }
  .scn-grid { display: flex; width: max-content; max-width: none; gap: 16px; }
  .scn-card { width: min(70vw, 420px); scroll-snap-align: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 27px; height: 27px; }
  .header-actions { gap: 8px; }
  .hero-nav { display: none; }
  .hero-bottom { grid-template-columns: 1fr auto; bottom: 24px; }
  .hero-ghost { top: 30%; font-size: 26vw; }
  .hero-content { justify-content: flex-end; padding-bottom: 104px; }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(6, 7, 9, .9) 0%, rgba(6, 7, 9, .45) 55%, rgba(6, 7, 9, .25) 100%);
  }
  .lineup-head { align-items: flex-start; flex-direction: column; }
  .lineup-tools { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .rail-arrow { display: none; }
  .spec-list > div + div { padding-left: 12px; }
  .visual-legend { position: static; margin: 4px 8px 8px; border-radius: 14px; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 640px) {
  .header .lang, .header-cta { display: none; }
  .search-toggle { width: 40px; height: 40px; }
  .hero-dot { width: 40px; }
  .adv-grid { grid-template-columns: 1fr; gap: 12px; }
  .adv-card { min-height: 0; padding: 28px 24px; }
  .adv-icon { margin-bottom: 24px; }
  .scn-card { width: 82vw; aspect-ratio: 4 / 5; }
  .spec-list dt { font-size: 21px; }
  .partner-actions .btn { flex: 1 1 auto; }
}

@media (hover: none) {
  .rail-arrow { display: none; }
}

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