:root {
  --red: #ed1b2f;
  --red-deep: #ba0e20;
  --ink: #090a0c;
  --charcoal: #121418;
  --panel: #191c21;
  --line: #30343b;
  --muted: #a5a8ae;
  --paper: #f2f2ef;
  --white: #ffffff;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; transform: translateY(-150%); padding: 12px 18px; background: var(--red); }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: linear-gradient(180deg, rgba(5,6,8,.96), rgba(5,6,8,.76), transparent);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(7,8,10,.94); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.header-inner { width: var(--shell); height: 92px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: flex-end; gap: 16px; }
.brand img { width: 152px; height: auto; }
.brand span { padding-bottom: 3px; color: #8e9299; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.primary-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 700; }
.primary-nav > a:not(.nav-cta) { color: #d7d8db; transition: color .2s ease; }
.primary-nav > a:not(.nav-cta):hover { color: var(--white); }
.nav-cta { padding: 13px 18px; border: 1px solid rgba(255,255,255,.35); transition: background .2s ease, border-color .2s ease; }
.nav-cta:hover { background: var(--red); border-color: var(--red); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { width: 25px; height: 2px; display: block; margin: 5px; background: white; }

.hero { min-height: 860px; height: 100svh; position: relative; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(4,5,7,.98) 0%, rgba(4,5,7,.88) 37%, rgba(4,5,7,.28) 67%, rgba(4,5,7,.38) 100%), url("assets/hero-product-range.jpg") center right / cover no-repeat; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.hero-content { padding-top: 74px; }
.eyebrow, .section-kicker { margin: 0 0 24px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 28px; height: 2px; background: var(--red); }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(52px, 6.3vw, 92px); line-height: 1.04; letter-spacing: -.055em; font-weight: 850; word-break: keep-all; }
.hero h1 em { color: var(--white); font-style: normal; }
.hero-copy { max-width: 580px; margin: 30px 0 0; color: #c7c9cd; font-size: 18px; line-height: 1.8; word-break: keep-all; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 24px; border: 1px solid transparent; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); }
.button-primary:hover { background: var(--red-deep); }
.button-ghost { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }
.hero-metrics { max-width: 720px; margin-top: 74px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-metrics div { display: flex; flex-direction: column; gap: 7px; }
.hero-metrics strong { font-size: 18px; letter-spacing: .04em; }
.hero-metrics span { color: #8d9197; font-size: 12px; }
.scroll-hint { position: absolute; right: 28px; bottom: 38px; color: #777b82; font-size: 9px; font-weight: 800; letter-spacing: .2em; writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
.scroll-hint span { width: 1px; height: 54px; background: linear-gradient(var(--red) 45%, rgba(255,255,255,.25) 45%); }

.solution-section { padding: 130px 0 0; background: var(--ink); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; }
.split-heading h2, .product-heading h2, .feature-copy h2, .cta-inner h2 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.15; letter-spacing: -.045em; }
.section-intro { border-left: 1px solid var(--line); padding-left: 52px; }
.section-intro p { margin: 0 0 16px; color: #aeb1b6; font-size: 16px; line-height: 1.85; word-break: keep-all; }
.signal-line { width: min(1370px, calc(100% - 24px)); margin: 90px auto 0; padding: 29px 5vw; border-block: 1px solid var(--line); display: flex; align-items: center; gap: 28px; color: #7d8188; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.signal-line i { height: 1px; flex: 1; position: relative; background: #282b31; }
.signal-line i::after { content: ""; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 12px rgba(237,27,47,.8); }

.product-section { padding: 130px 0 150px; background: var(--ink); }
.product-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.search-box { width: 260px; height: 50px; border-bottom: 1px solid #555960; display: flex; align-items: center; gap: 12px; }
.search-box svg { width: 19px; fill: none; stroke: #a2a5aa; stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: white; }
.search-box input::placeholder { color: #7e8288; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-button { border: 1px solid #353940; background: transparent; color: #9da0a6; padding: 10px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: .2s ease; }
.filter-button:hover, .filter-button.is-active { color: white; background: var(--red); border-color: var(--red); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; min-height: 465px; overflow: hidden; background: var(--panel); border: 1px solid #292c32; cursor: pointer; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-7px); border-color: #4c5058; box-shadow: var(--shadow); }
.product-card.is-hidden { display: none; }
.product-image { height: 235px; position: relative; overflow: hidden; background: #d6d6d4; }
.product-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(14,15,18,.2)); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.product-card:hover .product-image img { transform: scale(1.045); filter: contrast(1.05); }
.product-index { position: absolute; top: 18px; left: 18px; z-index: 2; min-width: 37px; padding: 7px 8px; background: rgba(9,10,12,.85); backdrop-filter: blur(8px); text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.product-card-body { padding: 26px 26px 28px; }
.product-tag { display: block; margin-bottom: 12px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.product-card h3 { margin: 0 0 14px; font-size: 23px; letter-spacing: -.025em; }
.product-card p { margin: 0; color: #a8abb1; font-size: 14px; line-height: 1.7; word-break: keep-all; }
.card-arrow { position: absolute; right: 23px; bottom: 23px; width: 34px; height: 34px; border: 1px solid #41454d; display: grid; place-items: center; color: #cdd0d5; transition: .25s ease; }
.product-card:hover .card-arrow { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
.empty-state { padding: 80px 20px; border: 1px solid var(--line); color: var(--muted); text-align: center; }

.feature-banner { min-height: 720px; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); color: var(--ink); }
.feature-media { min-height: 620px; overflow: hidden; background: #ccc; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(48px, 7vw, 112px); }
.feature-copy > p:not(.section-kicker) { margin: 28px 0; color: #555a61; line-height: 1.85; word-break: keep-all; }
.feature-copy ul { padding: 0; margin: 8px 0 32px; list-style: none; }
.feature-copy li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid #d1d2d0; font-size: 14px; font-weight: 700; }
.feature-copy li:last-child { border-bottom: 1px solid #d1d2d0; }
.feature-copy li span { color: var(--red); font-size: 10px; font-weight: 900; }
.text-link { align-self: flex-start; padding-bottom: 7px; border-bottom: 2px solid var(--red); font-size: 13px; font-weight: 850; }
.text-link span { color: var(--red); margin-left: 9px; }

.cta-section { padding: 120px 0; background: radial-gradient(circle at 78% 30%, rgba(237,27,47,.17), transparent 32%), var(--charcoal); }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 90px; }
.cta-inner > div:last-child p { color: #aeb1b6; line-height: 1.8; margin: 0 0 28px; }

.site-footer { padding: 72px 0 26px; background: #050608; border-top: 1px solid #202227; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 65px; }
.footer-brand img { width: 140px; }
.footer-brand p { max-width: 390px; margin-top: 22px; color: #777b82; font-size: 13px; }
.footer-grid h3 { margin: 0 0 20px; color: #777b82; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-grid a { color: #b7bac0; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #1e2025; display: flex; justify-content: space-between; gap: 20px; color: #62666d; font-size: 11px; }

.product-dialog { width: min(1040px, calc(100vw - 40px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; border: 0; color: white; background: var(--panel); box-shadow: var(--shadow); overflow: auto; }
.product-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.product-dialog[open] { display: grid; grid-template-columns: 1.05fr .95fr; animation: dialog-in .25s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.dialog-close { position: absolute; top: 15px; right: 15px; z-index: 3; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.56); font-size: 25px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--red); border-color: var(--red); }
.dialog-media { min-height: 550px; background: #d6d6d4; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { padding: 72px 54px 54px; }
.dialog-copy h2 { margin: 0 0 22px; font-size: 38px; letter-spacing: -.04em; }
.dialog-copy > p:not(.section-kicker) { color: #b4b7bc; line-height: 1.8; }
.dialog-copy ul { list-style: none; padding: 0; margin: 28px 0 35px; }
.dialog-copy li { position: relative; padding: 12px 0 12px 19px; border-top: 1px solid var(--line); color: #d7d9dc; font-size: 13px; }
.dialog-copy li:last-child { border-bottom: 1px solid var(--line); }
.dialog-copy li::before { content: ""; position: absolute; top: 18px; left: 0; width: 6px; height: 6px; background: var(--red); }

@media (max-width: 960px) {
  :root { --shell: min(100% - 36px, 760px); }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 82px 0 auto; display: none; padding: 28px 24px 34px; background: rgba(7,8,10,.98); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 5px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 4px; }
  .primary-nav .nav-cta { margin-top: 9px; padding: 14px; text-align: center; }
  .hero { min-height: 780px; }
  .hero-backdrop { background-position: 62% center; opacity: .75; }
  .hero-metrics { max-width: 100%; }
  .split-heading, .cta-inner { grid-template-columns: 1fr; gap: 42px; }
  .section-intro { padding-left: 0; border-left: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-media { min-height: 450px; max-height: 540px; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .dialog-media { min-height: 320px; max-height: 390px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { height: 76px; }
  .brand img { width: 124px; }
  .brand span { display: none; }
  .primary-nav { top: 70px; }
  .hero { min-height: 720px; height: auto; padding: 120px 0 68px; }
  .hero h1 { font-size: clamp(43px, 12vw, 56px); }
  .hero-copy { font-size: 15px; line-height: 1.75; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-metrics { margin-top: 50px; grid-template-columns: 1fr; gap: 16px; }
  .hero-metrics div { padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .scroll-hint { display: none; }
  .solution-section { padding-top: 90px; }
  .split-heading h2, .product-heading h2, .feature-copy h2, .cta-inner h2 { font-size: 37px; }
  .signal-line { overflow: hidden; gap: 14px; padding-inline: 18px; }
  .signal-line i { min-width: 35px; }
  .product-section { padding: 95px 0; }
  .product-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-row { flex-wrap: nowrap; padding-bottom: 7px; overflow-x: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 440px; }
  .feature-copy { padding: 70px 26px; }
  .feature-media { min-height: 330px; }
  .cta-section { padding: 90px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .product-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .dialog-copy { padding: 48px 25px 30px; }
  .dialog-copy h2 { font-size: 31px; }
}

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