/* ==========================================================================
   HAESIN CO., LTD. — Corporate Website
   Design system & components
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Korean — subsetted Noto Sans KR carrying only the glyphs this site uses.
   Regenerate with tools/subset-korean-font.py after editing Korean copy. */
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/notosanskr-ko.woff2') format('woff2');
}

/* On Korean pages the whole page renders in the Korean family, so Latin words
   inside a Korean line keep the same rhythm as the Hangul around them.
   `keep-all` is essential for Korean: without it the browser happily breaks a
   word in half at any syllable (e.g. 열어갑니다 → 열어 / 갑니다). */
html[lang="ko"] {
  --font-display: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* brand */
  --brand-700: #0847C4;
  --brand-600: #0B5CF0;
  --brand-500: #2A82FF;
  --brand-300: #8FBCFF;
  --brand-050: #EAF2FF;

  --eco-600: #00A87A;
  --eco-500: #00C08B;
  --eco-050: #E4F8F1;

  /* neutrals */
  --navy-950: #04080F;
  --navy-900: #060C18;
  --navy-800: #0A1526;
  --navy-700: #102038;
  --navy-600: #1B2E4A;

  --ink:      #0B1220;
  --body:     #38465C;
  --muted:    #6C7B92;
  --faint:    #98A5B8;

  --bg:       #FFFFFF;
  --bg-soft:  #F5F8FC;
  --bg-tint:  #EEF3FA;
  --line:     #E3E9F2;
  --line-2:   #D3DCE9;

  /* typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* metrics */
  --wrap: 1240px;
  --gut: 24px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sec-y: clamp(76px, 8.5vw, 136px);

  /* elevation */
  --sh-1: 0 1px 2px rgba(11,18,32,.05), 0 4px 14px rgba(11,18,32,.05);
  --sh-2: 0 2px 6px rgba(11,18,32,.06), 0 14px 40px rgba(11,18,32,.09);
  --sh-3: 0 6px 18px rgba(11,18,32,.08), 0 30px 70px rgba(11,18,32,.14);
  --sh-brand: 0 10px 30px rgba(11,92,240,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.13;
  letter-spacing: -.022em;
  font-weight: 800;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
h4 { font-size: 1.075rem; letter-spacing: -.01em; font-weight: 700; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand-500); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #C3CEE0; border-radius: 99px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #A9B8CE; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-wide { max-width: 1440px; }
.section { padding: var(--sec-y) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section--dark { background: var(--navy-900); color: #C6D2E4; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-600); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 5. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .765rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; opacity: .85; }
.eyebrow--center { justify-content: center; }
.section--dark .eyebrow { color: var(--brand-300); }

.lead { font-size: clamp(1.03rem, 1.35vw, 1.16rem); color: var(--muted); line-height: 1.75; max-width: 62ch; }
.section--dark .lead { color: #9FB0C8; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 66px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead { margin-top: 18px; }

.text-grad {
  background: linear-gradient(96deg, var(--brand-500) 0%, var(--eco-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: .94rem; font-weight: 650; letter-spacing: .005em;
  border-radius: var(--r-pill); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-brand); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(120deg, var(--brand-600), var(--brand-500)); }
.btn--dark { --btn-bg: var(--navy-900); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--light:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { background: var(--bg-soft); box-shadow: none; }
.section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--lg { padding: 17px 36px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: .93rem; color: var(--brand-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 7. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease);
}
.header.is-solid::after { opacity: 1; }
.header.is-solid { height: 66px; }
.header.is-scrolled { height: 66px; box-shadow: 0 1px 0 rgba(11,18,32,.04); }
.header__inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand-600), var(--eco-500));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(11,92,240,.3);
  transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.04); }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.12; }
.logo__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: .04em;
  color: #fff; transition: color .35s var(--ease);
}
.logo__sub { font-size: .605rem; letter-spacing: .19em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 600; transition: color .35s var(--ease); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 16px; border-radius: var(--r-pill);
  font-size: .93rem; font-weight: 600; color: rgba(255,255,255,.86);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px;
  background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { flex: none; }
.header__burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; place-items: center;
}
.header__burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.header__burger span + span { margin-top: 5px; }

/* ---------------------------------------------------------------- lang switcher */
.lang {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.lang__btn {
  padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: rgba(255,255,255,.70);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.lang__btn:hover { color: #fff; }
.lang__btn.is-on { background: rgba(255,255,255,.20); color: #fff; }

/* on light headers the switcher follows the ink colour */
.header.is-solid .lang, .header.is-scrolled .lang {
  background: rgba(11,18,32,.045); border-color: rgba(11,18,32,.12);
}
.header.is-solid .lang__btn, .header.is-scrolled .lang__btn { color: rgba(11,18,32,.55); }
.header.is-solid .lang__btn:hover, .header.is-scrolled .lang__btn:hover { color: var(--ink); }
.header.is-solid .lang__btn.is-on, .header.is-scrolled .lang__btn.is-on { background: var(--ink); color: #fff; }

.lang--drawer { margin: 24px 0 0; }

@media (max-width: 1080px) { .header__inner > .lang { display: none; } }

/* header on solid (light) pages / scrolled state */
.header.is-solid,
.header.is-scrolled { color: var(--ink); }
.header.is-solid .logo__name, .header.is-scrolled .logo__name { color: var(--ink); }
.header.is-solid .logo__sub, .header.is-scrolled .logo__sub { color: var(--muted); }
.header.is-solid .nav__link, .header.is-scrolled .nav__link { color: var(--body); }
.header.is-solid .nav__link:hover, .header.is-scrolled .nav__link:hover { color: var(--brand-600); }
.header.is-solid .header__burger span, .header.is-scrolled .header__burger span { background: var(--ink); }
.header.is-solid .btn--ghost, .header.is-scrolled .btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.header.is-solid .btn--ghost:hover, .header.is-scrolled .btn--ghost:hover { background: var(--bg-soft); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-900);
  padding: calc(var(--header-h) + 34px) 24px 34px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.09);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__nav a svg { width: 18px; height: 18px; opacity: .45; }
.drawer__foot { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.drawer__meta { color: #8FA1BC; font-size: .88rem; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 64px;
  background:
    radial-gradient(1100px 620px at 88% 6%, rgba(42,130,255,.30), transparent 62%),
    radial-gradient(900px 600px at 8% 96%, rgba(0,192,139,.18), transparent 60%),
    linear-gradient(168deg, #050A14 0%, #08122A 46%, #061024 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 44px; align-items: center; width: 100%;
}
.hero__copy { max-width: 560px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #D6E3F5;
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.hero__badge b { color: #fff; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--eco-500); flex: none; position: relative; }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--eco-500); animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; display: block; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #A9BAD2; max-width: 50ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 26px; max-width: 560px;
}
.kpi { padding-right: 16px; }
.kpi + .kpi { border-left: 1px solid rgba(255,255,255,.11); padding-left: 18px; }
.kpi__n {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.72rem); font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -.02em;
}
.kpi__n small { font-size: .58em; font-weight: 700; opacity: .75; margin-left: 2px; }
.kpi__l { font-size: .735rem; color: #8698B4; letter-spacing: .09em; text-transform: uppercase; margin-top: 7px; font-weight: 600; }

/* hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-slider { position: relative; width: 100%; display: grid; }
.hero-slide {
  grid-area: 1/1; opacity: 0; transform: translateY(26px) scale(.965);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
  pointer-events: none;
  display: grid; gap: 22px; justify-items: center;
}
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide__stage {
  width: 100%; border-radius: 30px; padding: clamp(14px, 2vw, 26px);
  background: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 40px 86px rgba(2,6,16,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; overflow: hidden;
}
.hero-slide__stage img {
  width: 100%; max-height: 46vh; object-fit: contain; border-radius: 16px;
  filter: drop-shadow(0 30px 44px rgba(0,0,0,.5));
}
.hero-slide__meta { text-align: center; max-width: 460px; }
.hero-slide__meta b {
  display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 750;
  color: #fff; letter-spacing: -.01em; margin-bottom: 4px;
}
.hero-slide__meta span { font-size: .84rem; color: #8FA3BF; letter-spacing: .02em; }
.hero__glow {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  width: 74%; height: 110px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42,130,255,.44), transparent 74%);
  filter: blur(26px); z-index: -1;
}
.hero__dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.hero__dots button {
  width: 34px; height: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.22); padding: 0; transition: background .3s var(--ease), width .3s var(--ease);
}
.hero__dots button.is-active { background: #fff; width: 52px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: #7C8DA8; font-weight: 600;
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent); }

/* ---------- 9. Ticker ---------- */
.ticker {
  background: var(--navy-800); border-block: 1px solid rgba(255,255,255,.07);
  overflow: hidden; padding: 17px 0;
}
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 26px;
  font-size: .8rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; color: #8FA1BC;
  white-space: nowrap;
}
.ticker__item::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); opacity: .8; }

/* ---------- 10. Cards: models ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.model-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.model-card__media {
  position: relative; aspect-ratio: 16/11; overflow: hidden;
  background: linear-gradient(170deg, #F7FAFE 0%, #E8EEF7 100%);
  display: grid; place-items: center; padding: 20px;
}
.model-card__media img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(11,18,32,.16)); transition: transform .6s var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.055); }
.model-card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  border: 1px solid rgba(11,18,32,.07);
  font-size: .685rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--brand-600);
}
.model-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.model-card__body h3 { margin-bottom: 8px; }
.model-card__desc { font-size: .93rem; color: var(--muted); line-height: 1.66; margin-bottom: 20px; }
.model-card__specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: auto;
}
.model-card__specs div { text-align: center; }
.model-card__specs dt { font-size: .655rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.model-card__specs dd { margin: 5px 0 0; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.model-card__specs dd small { font-size: .68em; font-weight: 650; color: var(--muted); }

/* ---------- 11. Feature cards ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, var(--brand-050), #F5F9FF); color: var(--brand-600);
  border: 1px solid rgba(11,92,240,.1);
}
.feature__icon svg { width: 25px; height: 25px; }
.feature h4 { margin-bottom: 9px; }
.feature p { font-size: .925rem; color: var(--muted); line-height: 1.68; }

/* ---------- 12. Split section ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(36px, 5vw, 76px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--sh-2); width: 100%; }
.split__media--bleed img { box-shadow: var(--sh-3); }
.split__badge {
  position: absolute; right: -14px; bottom: -18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: var(--sh-2); min-width: 148px;
}
.split__badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.split__badge span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .95rem; color: var(--body); }
.check-list svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--eco-600); }
.section--dark .check-list svg { color: var(--eco-500); }
.section--dark .check-list li { color: #C2D0E4; }

/* ---------- 13. Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 34px 26px; text-align: center; }
.section--dark .stats { background: rgba(255,255,255,.1); }
.section--dark .stat { background: var(--navy-800); }
.stat__n { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.section--dark .stat__n { color: #fff; }
.stat__l { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-top: 12px; font-weight: 650; }

/* ---------- 14. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.gallery__item {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in;
  background: var(--bg-tint); border: 1px solid var(--line);
  aspect-ratio: 4/3; padding: 0; display: block;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4,8,15,.5));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item span {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff;
  font-size: .8rem; font-weight: 650; opacity: 0; transform: translateY(7px);
  transition: .35s var(--ease);
}
.gallery__item:hover span { opacity: 1; transform: none; }
.gallery__item--wide { grid-column: span 2; }
/* Diagrams, colour charts and spec sheets must not be cropped by the 4:3 frame. */
.gallery__item--contain img { object-fit: contain; background: #fff; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4,8,15,.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 5vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); object-fit: contain; }
.lightbox__close {
  position: absolute; top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .25s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center;
}
.lightbox__nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.lightbox__nav button:hover { background: rgba(255,255,255,.2); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__count { color: #A9BAD2; font-size: .84rem; font-weight: 600; padding: 0 8px; }

/* ---------- 15. Model detail (models.html) ---------- */
.model-hero {
  position: relative; padding: calc(var(--header-h) + 60px) 0 0;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.model-hero__grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 40px; align-items: center; }
.model-hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.model-hero__visual img { max-height: 420px; width: auto; object-fit: contain; filter: drop-shadow(0 30px 44px rgba(11,18,32,.18)); }
.chipbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 620; color: var(--body);
}
.chip svg { width: 15px; height: 15px; color: var(--brand-600); }
.chip b { color: var(--ink); font-weight: 750; }

.model-nav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.model-nav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.model-nav__inner::-webkit-scrollbar { display: none; }
.model-nav a {
  padding: 9px 18px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 640; color: var(--muted);
  white-space: nowrap; transition: .25s var(--ease);
}
.model-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.model-nav a.is-active { background: var(--navy-900); color: #fff; }

.model-block { padding: var(--sec-y) 0; }
.model-block + .model-block { border-top: 1px solid var(--line); }
.model-block__head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: end; margin-bottom: 46px; }
.model-block__index {
  font-family: var(--font-display); font-size: .82rem; font-weight: 800; letter-spacing: .2em;
  color: var(--brand-600); margin-bottom: 12px; display: block;
}
.model-block__head p { max-width: 62ch; margin-top: 16px; font-size: 1.02rem; color: var(--muted); }

/* spec table */
.spec-wrap { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.spec-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.spec th, table.spec td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th {
  background: var(--navy-900); color: #fff; font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 0; white-space: nowrap;
}
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: #FAFCFF; }
table.spec tbody th, table.spec tbody td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
table.spec td { color: var(--body); }
table.spec .yes { color: var(--eco-600); font-weight: 800; }
table.spec .no  { color: var(--faint); }
tr.spec-group th {
  background: var(--bg-soft); color: var(--brand-700) !important;
  font-size: .735rem !important; letter-spacing: .13em !important; text-transform: uppercase;
  font-weight: 750 !important; padding: 11px 18px !important;
}
.spec-note { padding: 15px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .81rem; color: var(--muted); }
.spec-note b { color: var(--body); }

/* feature bullets grid inside model block */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 34px; }
.feat {
  padding: 24px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line);
}
.feat h4 { font-size: .97rem; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.feat h4 svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.feat p { font-size: .875rem; color: var(--muted); line-height: 1.62; }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px);
  background:
    radial-gradient(700px 380px at 82% 12%, rgba(42,130,255,.34), transparent 60%),
    radial-gradient(600px 400px at 6% 96%, rgba(0,192,139,.22), transparent 60%),
    linear-gradient(140deg, #060C18, #0C1D36);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #A9BAD2; max-width: 58ch; margin: 18px auto 32px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
}
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-of-type { padding-top: 0; }
.info-row__icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600);
}
.info-row__icon svg { width: 19px; height: 19px; }
.info-row dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 5px; }
.info-row dd { margin: 0; color: var(--ink); font-weight: 550; line-height: 1.6; }
.info-row dd small { display: block; color: var(--muted); font-weight: 450; font-size: .87rem; margin-top: 3px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 42px); box-shadow: var(--sh-1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink); letter-spacing: .01em; }
.field label .req { color: #E5484D; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #FCFDFF; color: var(--ink); font-family: inherit; font-size: .95rem; font-weight: 450;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42,130,255,.14);
}
.field .err { font-size: .78rem; color: #E5484D; min-height: 0; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #E5484D; background: #FFF8F8; }
.field.is-invalid .err { display: block; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form-foot .consent { font-size: .8rem; color: var(--muted); flex: 1; min-width: 220px; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 130%);
  z-index: 300; display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: var(--r-pill); background: var(--navy-900); color: #fff;
  font-size: .91rem; font-weight: 550; box-shadow: var(--sh-3); max-width: min(92vw, 620px);
  opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .35s var(--ease), visibility .35s var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.is-ok svg { color: #3EE0A8; }
.toast.is-err svg { color: #FF8A8A; }

/* ---------- 18. Footer ---------- */
.footer { background: var(--navy-950); color: #8698B4; padding: 76px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); font-weight: 750; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { color: #8698B4; transition: color .25s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__brand p { margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.footer__addr { line-height: 1.75; }
.footer__addr strong { color: #C6D2E4; font-weight: 600; display: block; margin-bottom: 4px; }
.footer__addr .kr { color: #7A8CA8; display: block; margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: .83rem; color: #6B7C96;
}
.footer__bottom a:hover { color: #fff; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* back to top */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-2); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: .35s var(--ease);
}
.totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brand-600); color: #fff; border-color: transparent; }
.totop svg { width: 19px; height: 19px; }

/* ---------- 19. Page header (sub pages) ---------- */
.page-head {
  padding: calc(var(--header-h) + 72px) 0 72px;
  background:
    radial-gradient(800px 400px at 88% 4%, rgba(42,130,255,.24), transparent 62%),
    linear-gradient(160deg, #060C18, #0A1730);
  color: #fff;
}
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { color: #A9BAD2; max-width: 62ch; margin-top: 20px; font-size: 1.06rem; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #7F91AD; margin-bottom: 22px; font-weight: 550; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- 20. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }
.reveal[data-d="5"] { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
}

/* ---------- 21. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mt-4 { margin-top: 48px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.notice {
  display: flex; gap: 12px; padding: 15px 18px; border-radius: var(--r-sm);
  background: #FFF8E6; border: 1px solid #F5E3AF; color: #7A5B12; font-size: .87rem; line-height: 1.6;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
}
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .header__burger { display: grid; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__copy { max-width: none; }
  .hero__visual { min-height: 320px; order: -1; }
  .hero-slide img { max-height: 40vh; }
  .hero__kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 0; }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__scroll { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .model-hero__grid { grid-template-columns: 1fr; }
  .model-hero__visual { order: -1; min-height: auto; }
  .model-hero__visual img { max-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .model-block__head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --gut: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery__item--wide { grid-column: span 2; }
  .feat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .cta-band { border-radius: var(--r-lg); }
  .split__badge { right: 12px; bottom: -14px; }
}
@media (max-width: 480px) {
  .model-card__specs { grid-template-columns: repeat(3,1fr); }
  .stats { grid-template-columns: 1fr; }
  .hero__kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ---------- 23. Print ---------- */
@media print {
  .header, .drawer, .totop, .hero__scroll, .ticker, .cta-band { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 18pt 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
