/* === shared.css — CNI Techone common styles === */

:root {
  --cosmos: #090c14;
  --red: #c0392b;
  --blue: #4a90c4;
  --gold: #c9962a;
  --muted: rgba(255,255,255,.55);
  --accent: #4a90c4;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: var(--cosmos);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background */
.bg-fixed { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
canvas#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.content { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 68px;
  background: linear-gradient(135deg, rgba(9,12,20,.88), rgba(9,12,20,.80));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(74,144,196,.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-en { font-size: .875rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.nav-logo-kr { font-size: .65rem; font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: .12em; margin-top: .2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* Dropdown */
.nav-dd-wrap { position: relative; display: flex; align-items: center; }
.nav-dd-wrap > a { display: flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
.nav-dd-wrap > a:hover { color: #fff; }
.nav-dd-wrap.open > a { color: var(--accent); }
.dd-chevron { font-size: .6rem; opacity: .6; transition: transform .22s; }
.nav-dd-wrap.open .dd-chevron { transform: rotate(180deg); opacity: 1; }
.dd-panel {
  position: absolute; top: calc(100% + 14px); right: 0;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(160deg, rgba(9,12,22,.97) 0%, rgba(11,15,26,.95) 100%);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(74,144,196,.18); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 1.25rem; display: flex; gap: 0; min-width: 540px; z-index: 300;
}
.nav-dd-wrap.open .dd-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-col { display: flex; flex-direction: column; }
.dd-col-main { flex: 1; }
.dd-col-side { flex: 0 0 210px; }
.dd-sep { width: 1px; background: rgba(74,144,196,.14); margin: 0 1rem; flex-shrink: 0; }
.dd-group-label { display: flex; align-items: center; gap: .5rem; padding-bottom: .55rem; margin-bottom: .4rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.dd-badge { font-size: .52rem; font-weight: 800; letter-spacing: .12em; padding: .18rem .48rem; border-radius: 4px; background: rgba(74,144,196,.18); color: #4a90c4; border: 1px solid rgba(74,144,196,.28); }
.dd-badge-v { background: rgba(201,150,42,.14); color: #c9962a; border-color: rgba(201,150,42,.28); }
.dd-group-name { font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.38); letter-spacing: .05em; }
.dd-item { display: flex; align-items: center; gap: .65rem; padding: .5rem .5rem; border-radius: 8px; text-decoration: none; transition: background .15s; margin-bottom: .05rem; }
.dd-item:hover { background: rgba(74,144,196,.1); }
.dd-item-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(74,144,196,.1); border-radius: 7px; color: #4a90c4; font-size: .95rem; }
.dd-item-icon-v { background: rgba(201,150,42,.1); color: #c9962a; }
.dd-item-name { font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.2; }
.dd-item-sub { font-size: .62rem; color: rgba(255,255,255,.38); margin-top: .12rem; }

/* Page Banner */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 7rem 4rem 4rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
/* ::after content is set per-page */
.page-banner::after {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  letter-spacing: -.04em;
  pointer-events: none;
  white-space: nowrap;
}
.banner-inner { max-width: 1200px; width: 100%; margin: 0 auto; }
.banner-label { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.banner-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 1rem; }
.banner-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; }
.banner-sub strong { color: rgba(255,255,255,.88); font-weight: 700; }
.banner-line { width: 60px; height: 2px; background: var(--accent); margin-top: 1.5rem; border-radius: 2px; }

/* Main layout */
.main { max-width: 1200px; margin: 0 auto; padding: 5rem 4rem; }

/* Glass card */
.glass { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Section */
.section { margin-bottom: 5rem; }
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.section-title { font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.section-sub { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-top: .6rem; }
.section-sub strong { color: rgba(255,255,255,.88); font-weight: 700; }

/* Overview grid (shared across sub-pages) */
.overview-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; }
.overview-visual { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.ov-label { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.ov-title { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 1rem; }
.ov-sub { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.ov-sub strong { color: rgba(255,255,255,.88); font-weight: 700; }
.ov-icon { font-size: 3.5rem; color: var(--accent); opacity: .18; text-align: right; margin-top: 2rem; }
.overview-text { padding: 2.5rem; }
.overview-text p { font-size: .95rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.2rem; }
.overview-text p:last-child { margin-bottom: 0; }
.overview-text p strong { color: rgba(255,255,255,.88); font-weight: 700; }

/* Image banner strip */
.img-banner { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 3rem; height: 260px; }
.img-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.7); display: block; }
.img-banner-overlay { position: absolute; inset: 0; }

/* Photo placeholder */
.photo-placeholder-banner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #080d14 0%, #111c2b 45%, #0b1320 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
}
.photo-placeholder-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(74,144,196,.03) 24px, rgba(74,144,196,.03) 25px);
}
.photo-placeholder-spec {
  width: 100%; height: 100%; border-radius: 12px;
  background: linear-gradient(135deg, #080d14 0%, #111c2b 45%, #0b1320 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid rgba(74,144,196,.12); position: relative; overflow: hidden;
}
.photo-placeholder-spec::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(74,144,196,.03) 28px, rgba(74,144,196,.03) 29px);
}
.photo-placeholder-icon { font-size: 2.2rem; color: rgba(74,144,196,.35); position: relative; z-index: 1; display: block; line-height: 1; }
.photo-placeholder-text { font-size: .75rem; font-weight: 700; letter-spacing: .22em; color: rgba(255,255,255,.22); position: relative; z-index: 1; }
.photo-placeholder-sub { font-size: .58rem; letter-spacing: .16em; color: rgba(74,144,196,.28); position: relative; z-index: 1; margin-top: .05rem; }
.photo-placeholder-card {
  background: linear-gradient(135deg, #080d14 0%, #111c2b 45%, #0b1320 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  position: relative; overflow: hidden;
}
.photo-placeholder-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(74,144,196,.03) 20px, rgba(74,144,196,.03) 21px);
}
.photo-placeholder-card .photo-placeholder-icon { font-size: 1.6rem; }
.photo-placeholder-card .photo-placeholder-text { font-size: .65rem; letter-spacing: .2em; }
.photo-placeholder-card .photo-placeholder-sub { font-size: .52rem; }
.img-banner-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 2rem; }
.img-banner-caption-label { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-bottom: .3rem; }
.img-banner-caption-title { font-size: 1.1rem; font-weight: 700; }

/* Fade in on scroll */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade.visible { opacity: 1; transform: translateY(0); }

/* Footer */
footer { text-align: center; padding: 2.5rem; color: rgba(255,255,255,.25); font-size: .75rem; border-top: 1px solid rgba(255,255,255,.06); }
footer p + p { margin-top: .3rem; }

/* Strong emphasis (universal) */
strong { color: rgba(255,255,255,.88); font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .main { padding: 3rem 1.5rem; }
  .page-banner { padding: 6rem 1.5rem 3rem; }
}
