:root {
  --bg: #f7f3ea;
  --ink: #151a24;
  --muted: #606a7c;
  --line: #ddd5c7;
  --paper: #fffdf7;
  --dark: #101722;
  --blue: #2868ff;
  --green: #13a978;
  --orange: #e77b4f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(21,26,36,.1);
  background: rgba(247,243,234,.9);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; font-size: 19px; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #80f0ff, var(--blue) 55%, #0d2c8f);
  box-shadow: 0 14px 30px rgba(40,104,255,.22);
}
.nav-menu, .nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-menu { justify-content: center; }
.nav-actions { justify-content: flex-end; }
.nav a, .nav button { border: 0; background: transparent; color: #334052; font-weight: 850; font-size: 14px; cursor: pointer; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dark) !important;
  color: #fff !important;
}
.mega {
  position: absolute;
  left: 50%;
  top: 64px;
  width: min(900px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: .16s ease;
}
.nav:hover .mega, .mega.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(21,26,36,.12);
  border-radius: 22px;
  background: rgba(255,253,247,.98);
  box-shadow: 0 28px 80px rgba(21,26,36,.16);
}
.mega-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}
.mega-card:hover { background: #f0ebe0; }
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), #0f2d8a);
}
.mega-card b { display: block; margin-bottom: 4px; font-size: 14px; }
.mega-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 54px;
  align-items: center;
  padding: 82px 0 66px;
}
.kicker { color: var(--blue); font-weight: 950; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(46px, 6.4vw, 82px); line-height: .98; letter-spacing: -.06em; }
.lead { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 950;
}
.button.primary { border-color: var(--dark); color: #fff; background: var(--dark); }

.dashboard {
  position: relative;
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(21,26,36,.1);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(40,104,255,.24), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(19,169,120,.18), transparent 30%),
    linear-gradient(145deg, #fffdf7, #eee7db);
  box-shadow: 0 30px 90px rgba(21,26,36,.12);
}
.dash-top { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 850; }
.dash-main {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash-card {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(21,26,36,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 35px rgba(21,26,36,.08);
}
.dash-card strong { display: block; margin-bottom: 10px; font-size: 20px; }
.dash-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.dash-wide { grid-column: 1 / -1; color: #fff; background: linear-gradient(135deg, var(--dark), #1f2c40); }
.dash-wide span { color: rgba(255,255,255,.75); }

.section { padding: 62px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}
.section h2 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.section-head p { max-width: 520px; color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card, .info-card, .case-card {
  border: 1px solid rgba(21,26,36,.1);
  border-radius: 22px;
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(21,26,36,.07);
}
.product-card { display: grid; gap: 14px; min-height: 284px; }
.product-card h3 { margin-bottom: 0; font-size: 25px; letter-spacing: -.03em; }
.product-card p, .info-card p, .case-card p { color: var(--muted); line-height: 1.65; }
.product-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ghost {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: #eef2ff;
  color: var(--blue);
  font-weight: 950;
  cursor: pointer;
}
.dark-band {
  margin: 34px 0;
  padding: 58px 0;
  background: var(--dark);
  color: #fff;
}
.dark-band .section-head p, .dark-band .info-card p { color: rgba(255,255,255,.68); }
.dark-band .info-card { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric {
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #162235, #24344b);
}
.metric b { display: block; margin-bottom: 8px; font-size: 22px; }
.metric span { color: rgba(255,255,255,.7); }
.final {
  margin: 54px auto;
  padding: 42px;
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #101722, #1d2b42);
}
.final p { color: rgba(255,255,255,.72); }
.footer { padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16,23,34,.56);
  backdrop-filter: blur(8px);
}
.modal-panel {
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 28px;
  background: var(--paper);
}
.modal-head { display: flex; justify-content: space-between; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); }
.modal-close { width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer; }
.modal-body { padding: 24px; }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr; padding: 16px 0; }
  .nav-menu, .nav-actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .mega { position: static; width: 100%; transform: none; display: none; opacity: 1; pointer-events: auto; }
  .mega.is-open { display: block; }
  .mega-panel, .hero, .grid, .metric-row { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section-head { display: block; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 22px, 1160px); }
  h1 { font-size: 42px; }
  .dashboard { min-height: 360px; padding: 16px; }
  .dash-main { grid-template-columns: 1fr; margin-top: 24px; }
  .final { padding: 30px 18px; }
}
