:root {
  --bg: #050a12;
  --bg-2: #08111e;
  --panel: #0d1726;
  --panel-2: #111d2e;
  --panel-3: #142238;
  --text: #f4f8ff;
  --muted: #9aabc1;
  --muted-2: #66758c;
  --line: rgba(118, 198, 255, .16);
  --line-strong: rgba(87, 231, 252, .3);
  --blue: #326af6;
  --cyan: #57e7fc;
  --main-gradient: linear-gradient(90deg, #5f8fa6 0%, #6fb7d6 35%, #bfeeff 70%, #67b8ff 100%);
  --red: #ef4d56;
  --green: #2da66f;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
  word-break: keep-all;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

section:not(.hero) {
  position: relative;
  overflow: hidden;
  padding: 80px 0; /* reduced to soften vertical spacing between sections */
  background: transparent; /* allow backgrounds to visually flow between sections */
}

section:not(.hero)::before,
section:not(.hero)::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

section:not(.hero)::before {
  top: -240px;
  right: -280px;
  width: 520px;
  height: 520px;
  opacity: .04; /* reduced decorative intensity */
  background: var(--blue);
}

section:not(.hero)::after {
  bottom: -230px;
  left: -240px;
  width: 420px;
  height: 420px;
  opacity: .03; /* reduced decorative intensity */
  background: var(--cyan);
}

section:not(.hero) > .shell {
  position: relative;
  z-index: 1;
}

/* Shared components */
.eyebrow,
.section-heading > p,
.faq header > p,
.contact p {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section-heading {
  max-width: 820px;
  margin: 0 0 48px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

/* Override for eyebrow-styled p inside light section headings */
.section-heading.light > p.eyebrow {
  color: var(--cyan);
}

.section-heading h2,
.faq header h2,
.sllm-copy h2,
.contact h2 {
  margin: 0;
  color: var(--text);
  font-size: 44px;
  line-height: 1.32;
  font-weight: 520;
}

.section-heading h2 b,
.sllm-copy h2 b {
  color: #73e9fa;
  font-weight: 760;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  /* 버튼에 메인 그라데이션 적용 (기존 톤 유지) */
  background-image: var(--main-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 16px 40px rgba(32, 118, 218, .32);
}

.btn.ghost {
  border-color: rgba(150, 218, 255, .23);
  background: rgba(8, 23, 43, .46);
}

.btn.ghost:hover,
.demo-tabs button:hover {
  border-color: rgba(87, 231, 252, .45);
  background: rgba(87, 231, 252, .08);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
  color: var(--white);
  background: #030812;
}

.hero-bg,
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 18, .18), rgba(3, 8, 18, .82) 62%, var(--bg) 100%);
}

.hero-orb {
  position: absolute;
  z-index: 1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(87, 231, 252, .12);
  filter: blur(80px);
  pointer-events: none;
}

.orb-a {
  top: 12%;
  right: 12%;
}

.orb-b {
  bottom: 12%;
  left: 8%;
  background: rgba(50, 106, 246, .14);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 600px;
  align-items: center;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  color: #71edff;
}

.hero h1 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 18px;
  align-items: baseline;
  margin: 20px 0 26px;
  font-size: 108px;
  line-height: 1.05;
  font-weight: 520;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .32);
}

.hero h1 strong {
  /* 텍스트에 메인 그라데이션 적용 */
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 760;
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto;
  color: #b9c9dc;
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags {
  gap: 14px;
  margin-top: 42px;
}

.hero-tags span {
  padding: 13px 22px;
  border: 1px solid rgba(87, 231, 252, .18);
  border-radius: 999px;
  color: #d7e6f7;
  background: rgba(11, 36, 65, .48);
  font-size: 14px;
  font-weight: 700;
}

/* Why */
.why {
  padding: 150px 0 138px;
}

.why .shell {
  width: min(1360px, calc(100vw - 112px));
}

.why .section-heading {
  margin-bottom: 92px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.feature-visual,
.service-grid article,
.before,
.after {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 29, 46, .96), rgba(10, 19, 32, .96));
  box-shadow: var(--shadow);
}

.why-grid article {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center; /* center icons and text */
  text-align: center;
  padding: 18px clamp(34px, 4vw, 62px) 36px;
}

.why-grid article + article {
  border-left: 1px solid rgba(87, 231, 252, .18);
}

.service-grid article:hover,
.feature-visual:hover,
.before:hover,
.after:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  transition: .25s;
}

.why-grid article > span {
  display: none; /* hide numeric badge as requested */
}

.why-icon {
  display: block;
  width: 100%;
  margin-bottom: 28px;
  text-align: left;
}

.why-icon img {
  width: 160px; /* larger icon size for desktop */
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px; /* center and add spacing below */
}

/* Responsive: reduce icon size on smaller viewports */
@media (max-width: 900px) {
  .why-icon img {
    width: 140px;
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-icon img {
    width: 110px;
  }
  .why-grid article {
    padding: 16px 18px 28px;
  }
}

/* Remove circular colored backgrounds for a flat icon-only look */
.why-icon.leak,
.why-icon.rule,
.why-icon.shield {
  background: none;
  border-radius: 0;
}

.why-grid h3,
.feature-copy h3 {
  margin: 0 0 14px;
  color: var(--text);
}

.why-grid h3 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.35;
}

.why-grid p {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.85;
}

.why-grid p,
.feature-copy > p,
.sllm-copy > p,
.faq-list p,
.services-inner > .section-heading span {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Feature stories */
.features {
  isolation: isolate;
  padding: 132px 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 19% 34%, rgba(120, 205, 255, .65) 0 1px, transparent 1.8px),
    radial-gradient(circle at 33% 17%, rgba(255, 255, 255, .48) 0 1px, transparent 1.8px),
    radial-gradient(circle at 53% 9%, rgba(255, 255, 255, .62) 0 1px, transparent 1.8px),
    radial-gradient(circle at 68% 27%, rgba(127, 231, 255, .72) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .58) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 43%, rgba(155, 219, 255, .5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 76%, rgba(255, 255, 255, .42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 82%, rgba(127, 231, 255, .42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 18%, rgba(87, 231, 252, .12), transparent 28%),
    radial-gradient(circle at 12% 46%, rgba(50, 106, 246, .12), transparent 34%),
    linear-gradient(180deg, #020610 0%, #050a13 48%, #040912 100%) !important;
}

.features::before,
.features::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.features::before {
  inset: 0;
  z-index: 0;
  opacity: .94;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1400' fill='none'%3E%3Cg opacity='.86'%3E%3Cpath d='M-110 260C180 55 432 78 662 186C920 307 1138 287 1512 92' stroke='%2357E7FC' stroke-opacity='.35' stroke-width='1.2'/%3E%3Cpath d='M-90 552C196 438 399 465 631 556C872 650 1110 742 1536 442' stroke='%23E8FAFF' stroke-opacity='.27' stroke-width='1'/%3E%3Cpath d='M-132 842C202 741 440 795 671 918C926 1053 1148 1028 1535 752' stroke='%2357E7FC' stroke-opacity='.26' stroke-width='1.1'/%3E%3Cpath d='M-92 1196C261 1075 549 1108 772 1211C1002 1318 1186 1324 1510 1146' stroke='%23FF6288' stroke-opacity='.23' stroke-width='1'/%3E%3Cpath d='M34 154C161 410 262 746 190 1174' stroke='%2357E7FC' stroke-opacity='.22' stroke-width='1'/%3E%3Cpath d='M1228 206C1065 498 1026 824 1198 1210' stroke='%2357E7FC' stroke-opacity='.18' stroke-width='1'/%3E%3Ccircle cx='46' cy='244' r='3.4' fill='%23E8FAFF'/%3E%3Ccircle cx='462' cy='180' r='3.2' fill='%2357E7FC'/%3E%3Ccircle cx='764' cy='232' r='2.4' fill='%23E8FAFF'/%3E%3Ccircle cx='1248' cy='218' r='2.9' fill='%2357E7FC'/%3E%3Ccircle cx='548' cy='520' r='4.2' fill='%2357E7FC'/%3E%3Ccircle cx='1014' cy='618' r='3' fill='%23E8FAFF'/%3E%3Ccircle cx='1328' cy='498' r='3.6' fill='%2357E7FC'/%3E%3Ccircle cx='276' cy='802' r='2.5' fill='%23E8FAFF'/%3E%3Ccircle cx='700' cy='934' r='4.7' fill='%23E8FAFF'/%3E%3Ccircle cx='1132' cy='1002' r='3.3' fill='%23FF7BA0'/%3E%3Ccircle cx='418' cy='1126' r='2.5' fill='%2357E7FC'/%3E%3Ccircle cx='934' cy='1260' r='3.2' fill='%23E8FAFF'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Ccircle cx='46' cy='244' r='9' stroke='%2357E7FC' stroke-opacity='.35'/%3E%3Ccircle cx='548' cy='520' r='12' stroke='%2357E7FC' stroke-opacity='.26'/%3E%3Ccircle cx='700' cy='934' r='14' stroke='%23E8FAFF' stroke-opacity='.24'/%3E%3Ccircle cx='1132' cy='1002' r='10' stroke='%23FF7BA0' stroke-opacity='.2'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
  filter: drop-shadow(0 0 14px rgba(87, 231, 252, .24));
  mix-blend-mode: screen;
}

.features::after {
  left: -18%;
  top: 2%;
  z-index: 0;
  width: min(860px, 64vw);
  height: 98%;
  border-radius: 50%;
  opacity: .7;
  border-right: 1px solid rgba(87, 231, 252, .46);
  box-shadow:
    18px 0 30px rgba(87, 231, 252, .22),
    inset -9px 0 28px rgba(87, 231, 252, .14);
  transform: rotate(9deg);
  filter: none;
  mix-blend-mode: screen;
}

.features::before,
.features::after {
  display: none;
}

.feature-constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: .52;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
}

.feature-constellation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(140px);
  transition: transform .35s ease;
}

.constellation-stars circle {
  fill: rgba(220, 246, 255, .76);
  filter: drop-shadow(0 0 7px rgba(87, 231, 252, .8));
}

.constellation-stars {
  opacity: .36;
}

.constellation-lines {
  opacity: .42;
}

.constellation-nodes {
  opacity: .6;
}

.constellation-nodes .node:nth-child(4),
.constellation-nodes .node:nth-child(7),
.constellation-nodes .node:nth-child(10),
.constellation-nodes .node:nth-child(11),
.constellation-nodes .node:nth-child(12) {
  display: none;
}

.orbit {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.orbit.cyan {
  stroke: rgba(87, 231, 252, .58);
  stroke-width: .9;
}

.orbit.white {
  stroke: rgba(235, 250, 255, .42);
  stroke-width: .85;
}

.orbit.pink {
  stroke: rgba(255, 98, 136, .24);
  stroke-width: .75;
}

.orbit.dim {
  stroke: rgba(87, 231, 252, .18);
  stroke-width: .7;
}

.node.cyan {
  fill: #57e7fc;
}

.node.white {
  fill: #f2fbff;
}

.node.pink {
  fill: #ff6f96;
}

.constellation-nodes .node {
  stroke: rgba(255, 255, 255, .42);
  stroke-width: .8;
}

.features .shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100vw - 112px));
}

.features .section-heading {
  margin-bottom: 140px;
}

.feature-stories {
  display: grid;
  gap: 220px;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 6vw, 96px);
  align-items: start; /* align top of left and right columns */
}

.feature-story:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
}

.feature-story:nth-child(even) .feature-copy {
  order: 2;
}

.feature-copy {
  max-width: 500px;
}

.feature-copy {
  max-width: 500px;
}
.feature-visual {
  display: flex;
  align-items: flex-start; /* align inner panel top with left text */
  justify-content: center;
}
.feature-visual > * {
  width: 100%;
  box-sizing: border-box;
}

/* Standardize min-height for demo/panel boxes so ratios match */
.mask-demo,
.policy-demo,
.file-demo,
.admin-demo,
.log-demo {
  min-height: 310px;
  padding: 24px;
}
.history-panel,
.policy-panel {
  min-height: 0;
}

/* Ensure inner demo content fills available height nicely */
.mask-demo > div,
.policy-demo > div,
.file-demo > div,
.admin-demo > div,
.log-demo > div,
.history-panel > .history-list,
.policy-panel > .policy-list {
  width: 100%;
}


.feature-copy .num {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
}

.feature-copy h3 {
  font-size: 42px;
  line-height: 1.12;
}

/* Ensure feature 04 title stays on a single line */
.feature-story:nth-child(4) .feature-copy h3 {
  white-space: nowrap;
  word-break: keep-all;
}

/* Keep 2nd feature title on a single line (no wrap) */
.feature-story:nth-child(2) .feature-copy h3 {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.feature-copy > p {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.78;
}

/* Nudge feature 04 description slightly upward to match UI panel alignment */
.feature-story:nth-child(4) .feature-copy {
  transform: translateY(-12px);
}

/* Nudge feature 05 description slightly upward to better align with its UI box */
.feature-story:nth-child(5) .feature-copy {
  transform: translateY(-12px);
}

/* Nudge feature 03 description slightly upward to match panel alignment */
.feature-story:nth-child(3) .feature-copy {
  transform: translateY(-12px);
}

.feature-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  position: relative;
  padding-left: 18px;
  color: #c4d2e3;
  font-weight: 700;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.feature-visual {
  min-width: 0;
  padding: 26px;
  border-radius: 24px;
}

/* Remove outer UI background boxes in KEY FEATURES while keeping inner elements */
.features .feature-visual {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Restore subtle boxes for specific feature items and scale 1/2 */
.feature-stories .feature-story:nth-child(1) .feature-visual,
.feature-stories .feature-story:nth-child(2) .feature-visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) !important;
  border: 1px solid rgba(118,198,255,0.12) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28) !important;
  padding: 34px !important;
  min-height: 380px;
  border-radius: 22px !important;
}

.feature-stories .feature-story:nth-child(3) .feature-visual,
.feature-stories .feature-story:nth-child(4) .feature-visual,
.feature-stories .feature-story:nth-child(5) .feature-visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)) !important;
  border: 1px solid rgba(118,198,255,0.12) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.02) !important;
  padding: 26px !important;
  border-radius: 18px !important;
}

.demo-tabs button {
  border: 1px solid var(--line);
  color: #9db0c8;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.features,
.feature-stories,
.feature-story,
.feature-story > *,
.feature-visual > * {
  min-width: 0;
}

/* Product demos inside feature panels */
.mask-demo,
.policy-demo,
.file-demo,
.admin-demo,
.log-demo {
  min-height: 310px;
  padding: 24px;
  border: none;
  border-radius: 22px;
  background: transparent;
}

/* 숫자 텍스트 강조: 분홍색 박스로 표시한 숫자 영역을 시안색으로 변경 */
.digit-highlight {
  color: var(--cyan);
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
}

/* 높은 우선순위로 .mask-demo 내부의 숫자 강조에 대해 상속된 크기를 적용합니다 */
.mask-demo .digit-highlight {
  color: var(--cyan);
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
}

/* Metrics panel for feature 05 */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
  width: 100%;
  padding: 28px 18px;
}
.metric-item {
  text-align: center;
  padding: 24px 18px;
  min-height: 180px;
}
.metric-item + .metric-item {
  border-left: 1px solid rgba(118, 198, 255, .07);
}
.metric-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 28, 44, .5);
  box-shadow: 0 8px 24px rgba(0,0,0,.36);
}
.metric-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.metric-label {
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}
.metric-value {
  font-size: 64px;
  font-weight: 900;
  margin-top: 14px;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 6px 18px rgba(87, 231, 252, .08);
}

/* Stronger rule to ensure color applies inside the no-border feature panel */
.feature-visual.no-border .metric-value {
  color: var(--white) !important;
}

@media (max-width: 900px) {
  .metrics-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-value { font-size: 44px; }
}

.mask-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.mask-demo > div,
.chat-line,
.file-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #e9f1fb;
  background: var(--panel-2);
}

.mask-demo > div {
  min-height: 190px;
  padding: 18px;
}

.mask-demo span {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
}

.mask-demo small,
.file-card small {
  display: block;
  margin-bottom: 12px;
  color: #8395ad;
  font-weight: 800;
}

.mask-demo p {
  margin: 0;
  line-height: 1.95; /* 줄간을 넉넉히 늘려 가독성 개선 */
}

/* <br>로 나눠진 줄 사이에 여유를 추가 (마지막 줄은 제외) */
.mask-demo p br {
  display: block;
  margin-bottom: 8px;
}

.mask-demo .safe {
  border-color: rgba(255, 139, 54, .42);
}

.mask-demo b,
.admin-row b,
.log-row b {
  color: #ffb359;
}

.policy-demo,
.file-demo {
  display: grid;
  align-content: center;
  gap: 18px;
}

/* Attachment UI inside feature panel */
.attachment-ui {
  display: flex;
  flex-direction: column;
  gap: 18px; /* 더 넉넉한 내부 간격 */
  margin-bottom: 14px; /* 아래 요소들과 간격 확보 */
}

.attached-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10,22,34,.55), rgba(8,18,28,.55));
  border: 1px solid rgba(255,255,255,.03);
}

.file-icon {
  font-size: 22px;
  opacity: .96;
}

.file-meta b {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.file-meta small {
  display: block;
  color: var(--muted-2);
  margin-top: 4px;
  font-weight: 700;
}

.attached-file .remove {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  cursor: default; /* non-interactive visual */
}

.upload-input {
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(10,20,32,.35);
  border: 1px dashed rgba(255,255,255,.03);
}

/* Red alert banner used in attachment area */
.upload-alert-red {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,80,92,.08), rgba(255,80,92,.04));
  border: 1px solid rgba(255,80,92,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  margin-top: 12px; /* 첨부파일 박스와 배너 사이 여백 */
}

.upload-alert-red .alert-icon {
  font-size: 16px;
  color: #ff6b73;
}

.upload-alert-red .alert-body {
  color: #ffb9bf;
  font-weight: 700;
}

/* Upload progress visual (replaces alert banner) */
.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px; /* 배너와 진행바 사이 여백 */
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(87,231,252,0.9), rgba(50,106,246,0.8));
  box-shadow: 0 6px 18px rgba(50,106,246,0.08);
  transition: width .5s ease;
}

.progress-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.progress-text {
  color: var(--muted);
  font-weight: 700;
}

.progress-failed {
  color: #ff6b73;
  font-weight: 900;
  margin-left: 6px;
}

.chat-line,
.file-card {
  padding: 20px;
}

/* trailing text in chat-line: align with inline bubbles */
.chat-line .chat-rest {
  display: inline-block;
  vertical-align: middle;
  color: #edf5ff;
  font-weight: 600;
  line-height: 1;
  margin-left: 4px;
}

.danger-word {
  color: #ff5b65;
  font-weight: 900;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  line-height: 1;
  vertical-align: middle;
}

/* 말풍선: 금지 키워드 라벨 (위쪽 표시) */
.chat-line .danger-word {
  position: relative;
  z-index: 2;
}

.chat-line .danger-word::after {
  content: "금지 키워드";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  background: #dfe6ea;
  color: #07294a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(3, 9, 16, .6);
  pointer-events: none;
}

.chat-line .danger-word::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #dfe6ea;
  pointer-events: none;
}

/* 점선 박스: 프롬프트 인젝션 라벨 */
.chat-line .injection {
  position: relative;
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #e9f7ff;
  background: rgba(255,255,255,0.02);
  margin-right: 6px;
  z-index: 2;
  font-weight: 800;
  vertical-align: middle;
}

.chat-line .injection::after {
  content: "프롬프트 인젝션";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #dfe6ea;
  color: #07294a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(3, 9, 16, .6);
  pointer-events: none;
}

.chat-line .injection::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #dfe6ea;
  pointer-events: none;
}

.blocked,
.upload-error {
  padding: 20px;
  border: 1px solid #ef5662;
  border-radius: 16px;
  color: #ff8e96;
  background: rgba(239, 63, 76, .08);
}

.blocked p {
  margin: 8px 0 0;
}

.file-card {
  display: grid;
  gap: 5px;
}

.admin-demo,
.log-demo {
  display: grid;
  align-content: center;
}

.admin-row,
.log-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #c5d2e2;
}

.admin-row.header {
  color: #8fa3bd;
  background: var(--panel-3);
  font-weight: 800;
}

.admin-row .red,
.log-row .red {
  color: var(--red);
}

.admin-row .green,
.log-row .green {
  color: var(--green);
}

/* Compact history panel (right UI) */
.history-panel {
  padding: 18px 18px;
  border-radius: 14px;
  background: transparent;
  border: 0;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.history-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.history-view {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}
/* disable 'view all' link interaction in history panel */
.history-view {
  pointer-events: none;
  cursor: default;
  opacity: 0.95;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  min-height: 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border: 0;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.02);
  flex: 0 0 44px;
}
.service-icon img { width: 28px; height: 28px; object-fit: contain; }
.service-meta { flex: 1; min-width: 0; }
.service-name { color: var(--white); font-weight: 800; font-size: 14px; }
.history-time { color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}
.status-pill.normal { background: rgba(47,109,244,0.12); color: #bfe2ff; }
.status-pill.alert { background: rgba(239,77,86,0.12); color: #ffd4d6; }

.log-head {
  display: flex;
  justify-content: space-between;
  padding: 0 0 18px;
  color: #f5f9ff;
  font-size: 20px;
  font-weight: 900;
}

.log-head span {
  color: var(--cyan);
  font-size: 13px;
}

/* Demo */
.demo {
  background: #050b15;
}

.demo::before {
  opacity: .12;
}

.sllm-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 7vw, 96px);
  align-items: center;
}

.sllm-copy > p {
  margin-top: 20px;
  font-size: 17px;
}

/* Demo video */
.demo {
  color: var(--white);
}

.demo .section-bg {
  opacity: .32;
}

.demo-inner {
  position: relative;
  z-index: 1;
}

/* Demo 섹션은 영상이 더 넓게 보이도록 컨테이너 너비를 약간 늘립니다. */
.demo .shell {
  width: min(1280px, calc(100% - 48px));
}

.demo-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 46px;
  align-items: stretch;
}

.demo-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.demo-tabs button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  column-gap: 8px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid rgba(64, 144, 255, .45);
  border-left: 2px solid rgba(57, 132, 255, .82);
  border-radius: 9px;
  text-align: left;
  background: linear-gradient(180deg, rgba(8, 18, 32, .82), rgba(5, 12, 25, .88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .04);
  color: #dbeefc;
}

.demo-tabs button::after {
  content: '›';
  grid-column: 3;
  color: var(--cyan);
  font-weight: 900;
  font-size: 22px;
  text-align: right;
}

.demo-tabs button span {
  grid-column: 1;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.demo-tabs button span {
  grid-column: 1;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.demo-tabs button b {
  grid-column: 2;
  color: #edf5ff;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.video-box {
  position: relative;
  display: grid;
  /* 기본 종횡비: 16:9. JS가 로드 시 실제 영상 비율로 덮어씁니다. */
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 980px; /* 중앙에서 최대 확장할 너비 (조절 가능) */
  margin: 0 auto;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #030812;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .4);
}

.video-box video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#videoEmpty {
  display: grid;
  gap: 10px;
  place-items: center;
  color: #c6d7ea;
  text-align: center;
}

#videoEmpty b {
  color: var(--white);
  font-size: 28px;
}

/* Services */
.services-inner > .section-heading span {
  display: block;
  margin-top: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.service-grid article {
  display: grid;
  min-height: 142px;
  place-items: center;
  padding: 22px 12px;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .24);
}

.service-grid img {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  object-fit: contain;
}

.service-grid b {
  color: #edf5ff;
}

/* sLLM review */
.sllm-copy small {
  display: block;
  margin-top: 22px;
  color: #7f91a8;
  line-height: 1.7;
}

.review-scale {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scale {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  overflow: visible; /* allow speech-bubble to extend above the scale */
  gap: 0; /* remove any gaps between segments */
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
}

.scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  min-height: 48px;
}

.scale span:nth-child(1) {
  background: var(--green);
}

.scale span:nth-child(2) {
  background: #d79f2a;
}

.scale span:nth-child(3) {
  background: var(--red);
}

/* Rounded ends for the pill segments */
.scale span:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.scale span:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.scale-labels,
.review-flow {
  margin-top: 14px;
}

.scale-labels {
  position: relative;
  height: 18px;
  color: #8598b0;
  font-size: 12px;
}

.scale-labels i {
  position: absolute;
  top: 0;
  font-style: normal;
  transform: translateX(-50%);
}

.scale-labels i:nth-child(1) {
  left: 0;
  transform: none;
}

.scale-labels i:nth-child(2) {
  left: 60%;
}

.scale-labels i:nth-child(3) {
  left: 80%;
}

.scale-labels i:nth-child(4) {
  right: 0;
  transform: none;
}

.review-flow {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  margin-top: 30px;
}

.review-flow div {
  padding: 0 clamp(12px, 2vw, 24px);
  border-right: 1px solid rgba(87, 231, 252, .13);
  color: #8fa2bb;
  line-height: 1.6;
  text-align: center;
}

.review-flow div:last-child {
  border-right: 0;
}

.review-flow b {
  color: #f1f6fc;
}

.review-flow div:nth-child(1) b {
  color: #6ee072;
}

.review-flow div:nth-child(2) b {
  color: #ffa72d;
}

.review-flow div:nth-child(3) b {
  color: #ff5b65;
}

/* Effects */
section.effects {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("assets/images/rounded-line.png") center bottom / cover no-repeat !important;
  position: relative;
  overflow: hidden;
}

/* subtle blur layer and dark overlay for readability */
section.effects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/rounded-line.png") center bottom / cover no-repeat;
  filter: blur(16px) brightness(0.5) saturate(0.6) !important;
  transform: scale(1.05) !important;
  z-index: 0;
  pointer-events: none;
}

section.effects::after {
  content: "";
  position: absolute;
  inset: 0;
  /* subtle top+bottom fades to blend with adjacent sections */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 24%) top/100% 260px no-repeat,
    linear-gradient(to top,   rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 24%) bottom/100% 260px no-repeat;
  background-repeat: no-repeat;
  background-position: top, bottom;
  background-size: 100% 260px, 100% 260px;
  filter: blur(8px); /* soften the fade edges */
  z-index: 2 !important;
  pointer-events: none;
}

section.effects > .shell { position: relative; z-index: 3 !important; }

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.before,
.after {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.before h3,
.after h3 {
  width: max-content;
  min-width: 118px;
  margin: -54px auto 28px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  font-size: 15px;
  text-align: center;
}

.before h3 {
  background: #596879;
}

.after h3 {
  background: #1e679f;

/* remove outer box for specific feature-visual instances */
.feature-visual.no-border {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* aggressively remove any inner borders/shadows/outlines for this panel */
.feature-visual.no-border,
.feature-visual.no-border * {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.feature-visual.no-border::before,
.feature-visual.no-border::after {
  display: none !important;
  content: none !important;
}
.feature-visual.no-border .history-panel {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Extra-specific overrides in case other rules persist */
.feature-stories .feature-story > .feature-visual.no-border,
.feature-story > .feature-visual.no-border {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
}

.before ul,
.after ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.before li,
.after li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #c7d4e4;
  line-height: 1.7;
}

.change {
  color: var(--cyan);
  font-size: 34px;
  font-weight: 900;
}

/* FAQ */
.faq-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.faq-list summary {
  position: relative;
  padding: 22px 34px 22px 0;
  color: #edf5ff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 0;
  color: var(--cyan);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 0 22px;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, #071221, #0a2842 58%, #083c50) !important;
}

.contact::before {
  opacity: .16 !important;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact span {
  color: #b5c7da;
  line-height: 1.7;
}

.contact a {
  flex: 0 0 auto;
  padding: 16px 26px;
  border-radius: 14px;
  color: #0e3557;
  background: linear-gradient(135deg, #ffffff, #dff9ff);
  box-shadow: 0 12px 36px rgba(87, 231, 252, .17);
  font-weight: 900;
  text-decoration: none;
}

/* Policy builder visual for feature 04 */
.policy-panel {
  max-width: 740px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 20, 34, .9), rgba(7, 14, 25, .82));
  border: 1px solid rgba(118, 198, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  pointer-events: none;
}

.policy-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(118, 198, 255, .09);
}

.policy-builder-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.policy-shield,
.choice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cyan);
  background: rgba(10, 34, 52, .58);
  border: 1px solid rgba(35, 215, 249, .1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.policy-shield {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 24px;
}

.policy-builder-title h3,
.choice-card-head h4 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.policy-builder-title h3 {
  font-size: 20px;
  line-height: 1.2;
}

.policy-builder-title p,
.choice-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.policy-builder-title p {
  font-size: 13px;
}

.policy-builder-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.policy-cancel,
.policy-save {
  min-width: 76px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 7px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.policy-cancel {
  border: 1px solid rgba(118, 198, 255, .18);
  background: rgba(7, 16, 28, .58);
}

.policy-save {
  border: 1px solid rgba(61, 133, 255, .55);
  background: linear-gradient(135deg, #1e79ff, #064de8);
  box-shadow: 0 10px 24px rgba(7, 80, 239, .28);
}

.policy-builder-grid {
  display: grid;
  grid-template-columns: .88fr 1fr 1.18fr;
  gap: 12px;
}

.policy-choice-card {
  min-width: 0;
  padding: 14px 14px 16px;
  border: 1px solid rgba(118, 198, 255, .13);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 27, 45, .76), rgba(9, 18, 31, .58));
}

.choice-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 12px;
}

.choice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
}

.choice-icon.ai {
  font-size: 25px;
}

.choice-card-head h4 {
  font-size: 15px;
  line-height: 1.2;
}

.choice-card-head p {
  font-size: 11px;
  line-height: 1.35;
}

.choice-options {
  display: grid;
  gap: 7px;
}

.choice-options span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(118, 198, 255, .11);
  border-radius: 7px;
  color: #eef5ff;
  background: rgba(8, 18, 30, .58);
  font-size: 13px;
  font-weight: 800;
}

.choice-options span i {
  width: 13px;
  height: 13px;
  margin-left: auto;
  border: 1px solid rgba(103, 154, 206, .6);
  border-radius: 3px;
  background: rgba(10, 23, 38, .72);
}

.radio-options span i {
  border-radius: 50%;
}

.service-options span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.service-options .select-all {
  color: #c6d3e4;
}

/* Feature 04 policy UI: single wide mockup with column dividers */
.feature-story:nth-child(4) {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, .64fr);
  gap: clamp(64px, 6vw, 92px);
}

.feature-stories .feature-story:nth-child(4) .feature-visual {
  justify-content: flex-start;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 18px !important;
}

.feature-stories .feature-story:nth-child(4) .policy-panel {
  width: 100%;
  max-width: 760px;
  min-height: 416px;
  padding: 30px 30px 28px;
  border-color: rgba(118, 198, 255, .22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 18, 31, .94), rgba(5, 13, 24, .9)) !important;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .03) !important;
}

.feature-stories .feature-story:nth-child(4) .policy-builder-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom-color: rgba(118, 198, 255, .14);
}

.feature-stories .feature-story:nth-child(4) .policy-builder-title {
  gap: 0;
}

.feature-stories .feature-story:nth-child(4) .policy-shield {
  display: none;
}

.feature-stories .feature-story:nth-child(4) .policy-builder-title h3 {
  font-size: 24px;
}

.feature-stories .feature-story:nth-child(4) .policy-builder-grid {
  grid-template-columns: .86fr 1.05fr 1.18fr;
  gap: 0;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

.feature-stories .feature-story:nth-child(4) .policy-choice-card {
  min-height: 258px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Show a subtle vertical ellipsis at the right of each policy column (gives "more" feeling) */
.feature-stories .feature-story:nth-child(4) .policy-choice-card {
  position: relative;
}
.feature-stories .feature-story:nth-child(4) .policy-choice-card::after {
  content: '⋮';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(118, 198, 255, 0.28);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.feature-stories .feature-story:nth-child(4) .policy-choice-card:first-child {
  padding-left: 0;
}

.feature-stories .feature-story:nth-child(4) .policy-choice-card + .policy-choice-card {
  border-left: 1px solid rgba(118, 198, 255, .18);
}

.feature-stories .feature-story:nth-child(4) .choice-card-head {
  gap: 14px;
  min-height: 52px;
  margin-bottom: 22px;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Hide supplemental description text and ensure icon/text are vertically centered in feature-04 */
.feature-stories .feature-story:nth-child(4) .choice-card-head p {
  display: none;
}
.feature-stories .feature-story:nth-child(4) .choice-card-head {
  align-items: center;
  gap: 12px;
}

.feature-stories .feature-story:nth-child(4) .choice-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(7, 28, 44, .78) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22) !important;
  font-size: 22px;
  display: inline-grid;
  place-items: center;
}

/* Ensure icon images fit the smaller containers */
.choice-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.feature-stories .feature-story:nth-child(4) .choice-icon img {
  width: 22px;
  height: 22px;
}

.feature-stories .feature-story:nth-child(4) .choice-card-head h4 {
  background: transparent !important;
  font-size: 17px;
}

.feature-stories .feature-story:nth-child(4) .choice-card-head p {
  margin-top: 6px;
  background: transparent !important;
  font-size: 12px;
}

.feature-stories .feature-story:nth-child(4) .choice-options {
  gap: 15px;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.feature-stories .feature-story:nth-child(4) .choice-options span {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 15px;
  gap: 10px;
}

.feature-stories .feature-story:nth-child(4) .choice-options span i {
  order: -2;
  width: 17px;
  height: 17px;
  margin: 0;
  border-color: rgba(47, 190, 244, .76);

/* Hide only the lower text rows in the middle and right policy columns (visual dots remain) */
.feature-stories .feature-story:nth-child(4) .policy-choice-card:nth-child(2) .choice-options span:nth-child(n+4) {
  color: transparent;
}
.feature-stories .feature-story:nth-child(4) .policy-choice-card:nth-child(3) .choice-options span:nth-child(n+4) {
  color: transparent;
}
  background: rgba(4, 14, 26, .78) !important;
}

.feature-stories .feature-story:nth-child(4) .service-options span img {
  order: -1;
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 980px) {
  .shell {
    width: min(calc(100% - 40px), 1180px);
  }

  .hero {
    min-height: 700px;
    padding: 72px 0;
  }

  .hero-inner {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why .shell {
    width: min(calc(100% - 40px), 1180px);
  }

  .why-grid article:last-child {
    grid-column: 1 / -1;
  }

  .features .shell {
    width: min(calc(100% - 40px), 1180px);
  }

  .features::before {
    inset: 0;
    opacity: .58;
    background-position: center top;
    background-size: auto 100%;
  }

  .features::after {
    left: -34%;
    opacity: .34;
  }

  .sllm-layout,
  .feature-story,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .feature-story:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-story:nth-child(even) .feature-copy {
    order: 0;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    display: block;
    gap: 10px;
  }

  .hero h1 span,
  .hero h1 strong {
    display: block;
  }

  .mask-demo {
    grid-template-columns: 1fr;
  }

  .mask-demo span {
    transform: rotate(90deg);
    text-align: center;
  }

  .admin-row,
  .log-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }

  section:not(.hero) {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .sllm-copy h2,
  .contact h2,
  .faq header h2 {
    font-size: 31px;
    line-height: 1.42;
  }

  .section-heading > p,
  .faq header > p,
  .contact p,
  .eyebrow {
    font-size: 11px;
    line-height: 1.6;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 56px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    margin: 15px 0 20px;
    font-size: 36px;
    line-height: 1.28;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-tags {
    gap: 10px;
    margin-top: 30px;
  }

  .hero-tags span {
    padding: 10px 14px;
    font-size: 12px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .why-grid article:last-child {
    grid-column: auto;
  }

  .why-grid article {
    min-height: auto;
    padding: 24px 8px 30px;
  }

  .why-grid article + article {
    border-left: 0;
  }

  .why-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 15px;
  }

  .why-grid h3 {
    font-size: 20px;
  }

  .why-grid p {
    font-size: 14px;
    line-height: 1.75;
  }

  .feature-stories {
    gap: 96px;
  }

  .features::before {
    inset: 0;
    opacity: .42;
    background-position: 50% top;
    background-size: auto 100%;
  }

  .features::after {
    left: -92%;
    width: 520px;
    opacity: .22;
  }

  .feature-visual {
    padding: 18px;
    border-radius: 20px;
  }

  .feature-copy h3 {
    font-size: 27px;
  }

  .mask-demo,
  .policy-demo,
  .file-demo,
  .admin-demo,
  .log-demo {
    min-height: auto;
    padding: 18px;
  }

  .demo-tabs {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .demo-tabs button {
    width: 100%;
  }

  .video-box {
    min-height: 260px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-grid article {
    min-height: 128px;
    padding: 18px 8px;
  }

  .service-grid img {
    width: 48px;
    height: 48px;
  }

  .review-scale {
    padding: 0;
  }

  .scale,
  .scale-labels,
  .review-flow {
    grid-template-columns: 1fr;
  }

  .scale-labels {
    display: none;
  }

  .review-flow {
    gap: 12px;
  }

  .review-flow div {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .before,
  .after {
    padding: 26px 20px;
  }

  .before h3,
  .after h3 {
    margin: -44px auto 24px;
  }

  .change {
    transform: rotate(90deg);
    text-align: center;
    font-size: 30px;
  }

  .faq-list summary {
    padding-right: 24px;
    font-size: 16px;
    line-height: 1.55;
  }

  .faq-list p {
    font-size: 14px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 32px;
  }

  .section-heading h2,
  .sllm-copy h2,
  .contact h2,
  .faq header h2 {
    font-size: 28px;
  }

  .hero-tags span {
    font-size: 11px;
  }

}

/* sLLM: 말풍선 지시 텍스트 (밝은 회색 배경, 남색 텍스트) */
.scale span {
  position: relative; /* 각 span을 기준으로 말풍선 절대 위치 지정 */
}

.scale span .speech-bubble {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  background: #eef2f4; /* 밝은 회색 */
  color: #062a5a; /* 남색 텍스트 */
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(2,8,20,0.45);
  white-space: nowrap;
  z-index: 6;
  font-size: 15px;
}

.scale span .speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #eef2f4; /* 화살표 색은 말풍선 배경과 동일 */
}

@media (max-width: 640px) {
  .scale span .speech-bubble {
    left: 50%;
    top: -38px;
    transform: translateX(-50%);
    font-size: 13px;
    padding: 8px 12px;
  }
}
