/* ============================================================
   INVIOLA 홈페이지 — 브랜드북 Ver 1.0 시각 시스템 준수
   컬러: Obsidian #0D0A18 · Imperial #231A4F · Tyrian Violet #7C5CF0
         Gold #E3B65A · Parchment #F7F5F1 · Line #E7E3DA · Slate #6A6477
   타이포: Space Grotesk(디스플레이) + Plus Jakarta Sans/Noto Sans KR(본문)
   ============================================================ */

:root {
  --obsidian: #0D0A18;
  --imperial: #231A4F;
  --violet:   #7C5CF0;
  --gold:     #E3B65A;
  --parchment:#F7F5F1;
  --line:     #E7E3DA;
  --slate:    #6A6477;
  --white:    #FFFFFF;
  --display: "Space Grotesk", "Noto Sans KR", sans-serif;
  --body: "Plus Jakarta Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--parchment);
  color: var(--imperial);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pc-br { display: none; }
@media (min-width: 860px) { .pc-br { display: inline; } }

/* ---------- 스크롤 리빌 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 워드마크 (링-O) ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .14em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
}
.wordmark .ring-o { width: 1.06em; height: 1.06em; margin: 0 .04em; display: inline-block; vertical-align: -0.13em; }
.ring-line   { fill: none; stroke: var(--violet); stroke-width: 10; }
.orbit-trail { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; opacity: .55; }
.patrol-node { fill: var(--gold); }
.wordmark.small { font-size: 1.25rem; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(13, 10, 24, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease;
}
.site-header.solid { background: rgba(13, 10, 24, .92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.gnb { display: flex; gap: 34px; align-items: center; }
.gnb a {
  color: rgba(255,255,255,.82);
  font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.gnb a:hover { color: var(--gold); }
.gnb-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 7px 18px; border-radius: 999px;
}
.gnb-cta:hover { background: var(--gold); color: var(--obsidian) !important; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .menu-btn span { width: 22px; height: 2px; background: var(--white); transition: .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnb {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13,10,24,.97);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .gnb.open { max-height: 340px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .gnb a { padding: 15px 24px; width: 100%; text-align: center; }
  .gnb-cta { border: 0; padding: 15px 24px; border-radius: 0; }
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(124,92,240,.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 85%, rgba(35,26,79,.55), transparent 65%),
    var(--obsidian);
  color: var(--white);
  overflow: hidden;
  padding: 130px 0 90px;
}
.hero-orbit {
  position: absolute; top: 50%; right: -140px;
  width: min(620px, 60vw); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .9; pointer-events: none;
}
.h-ring { fill: none; stroke: rgba(124,92,240,.35); stroke-width: 1.5; }
.h-ring.dim  { stroke: rgba(124,92,240,.14); }
.h-ring.dim2 { stroke: rgba(124,92,240,.10); stroke-dasharray: 3 7; }
.h-trail { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: .5; }
.h-node { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(227,182,90,.9)); }
.h-rotor { transform-origin: 300px 300px; animation: patrol 14s linear infinite; }
@keyframes patrol { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .h-rotor { animation: none; } }

.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--display);
  font-size: .85rem; letter-spacing: .32em;
  color: var(--gold); margin-bottom: 26px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -0.01em;
}
.gold-dot { color: var(--gold); }
.hero-sub.ko {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500; color: rgba(255,255,255,.92);
  margin-top: 22px;
}
.hero-desc {
  margin-top: 26px;
  color: rgba(255,255,255,.62);
  font-size: 1.02rem;
  max-width: 640px;
}
.hero-desc strong { color: var(--gold); font-weight: 600; }
.hero-actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-weight: 600; font-size: .98rem;
  padding: 14px 32px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(227,182,90,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 10px); opacity: .3; } }

/* ---------- 공통 섹션 ---------- */
.section { padding: 110px 0; scroll-margin-top: 68px; }
.sec-eyebrow {
  font-family: var(--display);
  font-size: .82rem; letter-spacing: .3em;
  color: var(--violet); margin-bottom: 16px;
}
.sec-eyebrow.light { color: var(--gold); }
.sec-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700; line-height: 1.28;
  margin-bottom: 22px;
}
.sec-title.light { color: var(--white); }
.sec-lead { max-width: 760px; color: var(--slate); font-size: 1.04rem; margin-bottom: 40px; }
.sec-lead.light { color: rgba(255,255,255,.65); }
.sec-lead strong { color: inherit; }

/* ---------- 회사소개 ---------- */
.about { background: var(--parchment); }
.about-grid { display: grid; gap: 48px; margin-top: 30px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.15fr .85fr; } }
.naming-formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 26px;
}
.nf-part { display: flex; flex-direction: column; }
.nf-part em {
  font-family: var(--display); font-style: normal;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .06em;
}
.nf-part small { color: var(--slate); font-size: .8rem; margin-top: 2px; }
.nf-op { font-family: var(--display); color: var(--violet); font-size: 1.2rem; }
.nf-result em { color: var(--violet); }
.about-naming > p { color: var(--slate); margin-bottom: 20px; }
.about-naming > p em { font-style: normal; font-weight: 600; color: var(--imperial); }
.motto {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  background: var(--white);
  border-radius: 0 12px 12px 0;
}
.motto-latin {
  display: block;
  font-family: var(--display); font-weight: 700;
  letter-spacing: .28em; color: var(--imperial);
}
.motto-ko { display: block; font-size: .88rem; color: var(--slate); margin-top: 6px; }

.persona-cards { display: grid; gap: 16px; align-content: start; }
.p-card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px;
  transition: transform .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(35,26,79,.10); }
.p-card h3 {
  font-family: var(--display); font-size: 1.02rem; letter-spacing: .12em;
  color: var(--imperial);
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
}
.p-card h3 small { font-family: var(--body); font-weight: 500; letter-spacing: 0; color: var(--violet); font-size: .85rem; }
.p-card p { color: var(--slate); font-size: .93rem; }

/* ---------- 배경(왜 지금) ---------- */
.why { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; gap: 18px; }
@media (min-width: 700px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.w-card {
  background: var(--parchment);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px;
}
.w-card h3 { font-size: 1.04rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-card p { color: var(--slate); font-size: .93rem; }
.tag {
  font-family: var(--display); font-size: .68rem; letter-spacing: .08em;
  background: var(--imperial); color: var(--gold);
  padding: 3px 9px; border-radius: 999px;
}
.w-card-ref { background: var(--imperial); border-color: var(--imperial); }
.w-card-ref h3 { color: var(--gold); }
.w-card-ref p { color: rgba(255,255,255,.75); }

/* ---------- 제품 ---------- */
.product {
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(124,92,240,.14), transparent 60%),
    var(--obsidian);
  color: var(--white);
}
.argus-name { color: var(--gold); letter-spacing: .04em; }
.flow {
  display: flex; align-items: stretch; gap: 0;
  margin: 30px 0 10px;
  flex-wrap: wrap; justify-content: center;
}
.flow-node {
  flex: 1 1 200px; max-width: 300px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(124,92,240,.35);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.fn-label { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.fn-sub { color: rgba(255,255,255,.55); font-size: .84rem; }
.flow-core { border-color: var(--gold); background: rgba(227,182,90,.07); box-shadow: 0 0 40px rgba(227,182,90,.12); }
.flow-core .fn-label { color: var(--gold); }
.fn-badges { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.fn-badges b {
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.fn-badges .allow { background: rgba(96,190,120,.18); color: #7fd89a; }
.fn-badges .mask  { background: rgba(227,182,90,.18); color: var(--gold); }
.fn-badges .block { background: rgba(235,90,90,.18);  color: #f19a9a; }
.flow-arrow {
  flex: 0 0 56px;
  display: flex; align-items: center; justify-content: center;
}
.flow-arrow i {
  width: 30px; height: 2px; position: relative;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}
.flow-arrow i::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 5px solid transparent; border-left-color: var(--gold);
}
@media (max-width: 720px) {
  .flow { flex-direction: column; align-items: center; }
  .flow-node { width: 100%; max-width: 420px; }
  .flow-arrow { transform: rotate(90deg); flex-basis: 40px; }
}
.flow-note { text-align: center; color: rgba(255,255,255,.5); font-size: .88rem; margin-bottom: 40px; }
.prod-points { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 860px) { .prod-points { grid-template-columns: repeat(3, 1fr); } }
.pp {
  border-top: 2px solid var(--violet);
  background: rgba(255,255,255,.04);
  border-radius: 0 0 14px 14px;
  padding: 24px;
}
.pp h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 10px; }
.pp p { color: rgba(255,255,255,.65); font-size: .93rem; }

/* ---------- 핵심 역량 (번호 섹션) ---------- */
.business { background: var(--parchment); }
.biz-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.biz-item:last-child { border-bottom: 0; }
.biz-num {
  font-family: var(--display);
  font-size: 2.4rem; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--violet);
  line-height: 1;
}
.biz-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.biz-body > p { color: var(--slate); margin-bottom: 16px; max-width: 760px; }
.biz-body ul { display: grid; gap: 9px; }
.biz-body li {
  position: relative; padding-left: 22px;
  color: var(--imperial); font-size: .95rem;
}
.biz-body li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--gold);
}
.biz-body li strong { color: var(--imperial); }
@media (max-width: 640px) {
  .biz-item { grid-template-columns: 1fr; gap: 8px; }
  .biz-num { font-size: 1.9rem; }
}

/* ---------- 컴플라이언스 ---------- */
.compliance { background: var(--white); border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.c-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
.c-table th {
  font-family: var(--display);
  text-align: left; font-size: .92rem; letter-spacing: .04em;
  background: var(--imperial); color: var(--white);
  padding: 16px 22px;
}
.c-table th:first-child { width: 38%; }
.c-table td { padding: 15px 22px; border-top: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.c-table td:first-child { font-weight: 600; }
.c-table td:last-child { color: var(--slate); }
.c-table tbody tr:hover td { background: var(--parchment); }
.c-ref { margin-top: 16px; color: var(--slate); font-size: .84rem; }

/* ---------- 에디션 ---------- */
.editions { background: var(--parchment); }
.ed-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .ed-grid { grid-template-columns: 1fr 1fr; } }
.ed-card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 34px;
}
.ed-card h3 {
  font-family: var(--display); font-size: 1.3rem;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ed-card ul { display: grid; gap: 10px; }
.ed-card li {
  position: relative; padding-left: 24px;
  font-size: .93rem; color: var(--slate);
}
.ed-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--violet); font-weight: 700;
}
.ed-premier { background: var(--imperial); border-color: var(--imperial); }
.ed-premier h3 { color: var(--gold); border-color: rgba(255,255,255,.14); }
.ed-premier li { color: rgba(255,255,255,.78); }
.ed-premier li::before { color: var(--gold); }

/* ---------- 도입 문의 ---------- */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(124,92,240,.16), transparent 60%),
    var(--obsidian);
  color: var(--white);
  text-align: center;
}
.contact .sec-lead { margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid; gap: 14px;
  max-width: 640px; margin: 0 auto 40px;
  text-align: left;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.ct {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(124,92,240,.3);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.ct-k { font-size: .78rem; letter-spacing: .14em; color: var(--gold); font-family: var(--display); }
.ct a:hover { color: var(--violet); }
.contact .hero-actions { justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--obsidian);
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 0 40px;
  font-size: .86rem;
}
.footer-inner { display: grid; gap: 26px; }
.f-tagline { font-family: var(--display); color: rgba(255,255,255,.4); margin-top: 10px; letter-spacing: .06em; }
.f-info p { margin: 3px 0; }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .78rem; letter-spacing: .04em;
}
.f-motto { font-family: var(--display); color: var(--gold); letter-spacing: .2em; }
