:root {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #0f172a;
  --surface-2: #162238;
  --border: rgba(56, 189, 248, 0.22);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --emerald: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.12), transparent 40%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 13, 24, 0.84);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero p.lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-item strong {
  display: block;
  font-size: 20px;
  color: var(--accent);
}

.stat-item span {
  font-size: 12px;
  color: var(--muted);
}

.hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding: 56px 0;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.sec-head h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Workflow cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 24px;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #cbd5e1;
}

.card li + li {
  margin-top: 4px;
}

/* Video */
.video-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #020617;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.shot-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot-card figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: #cbd5e1;
}

.shot-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

/* Architecture strip */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Native <dialog> modals */
dialog {
  width: min(960px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background-color: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dialog-head h3 {
  margin: 0;
  font-size: 16px;
}

.dialog-close {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}

.dialog-body {
  padding: 18px;
}

.dialog-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.demo-box {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
}

.demo-box code {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards-3,
  .gallery-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
