:root {
  --bg-main: #071226;
  --bg-sub: #0f203d;
  --card: #10284c;
  --text: #edf3ff;
  --muted: #e7ecf4;
  --gold: #d6b36a;
  --gold-strong: #e5c47d;
  --line: rgba(214, 179, 106, 0.28);
  --radius: 18px;
  --bottom-cta-height: 74px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  word-break: keep-all;
  background:
    radial-gradient(
      circle at 12% 9%,
      rgba(22, 51, 94, 0.55) 0%,
      transparent 38%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(123, 89, 50, 0.3) 0%,
      transparent 33%
    ),
    linear-gradient(170deg, var(--bg-main) 0%, #060d1d 70%);
  line-height: 1.65;
}

input,
button,
textarea,
select {
  word-break: keep-all;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.045;
  z-index: -1;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 140px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 33, 0.84);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: "Noto Serif KR", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.brand-meaning {
  margin-top: 1px;
  font-size: 0.73rem;
  color: var(--muted);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--bottom-cta-height));
  padding: 72px 12px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("assets/images/hero_background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  bottom: -150px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.18) 48%,
    rgba(0, 0, 0, 0) 100%
  );
}

.eyebrow {
  color: var(--gold-strong);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Noto Serif KR", serif;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}

.hero-copy {
  max-width: 66ch;
  color: var(--muted);
  margin-bottom: 24px;
  word-break: keep-all;
}

.hero-copy > strong {
  color: var(--gold);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #0a162c;
  background: linear-gradient(120deg, var(--gold) 0%, #f0d291 100%);
  box-shadow: 0 8px 24px rgba(214, 179, 106, 0.28);
  width: 100%;
  text-align: center;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  right: 0;
  top: 18px;
  width: min(38vw, 380px);
  height: min(38vw, 380px);
}

.hourglass {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 48% 52% 44% 56% / 42% 56% 44% 58%;
  background: conic-gradient(
    from 180deg,
    rgba(214, 179, 106, 0.2),
    rgba(255, 255, 255, 0.03),
    rgba(214, 179, 106, 0.3)
  );
  transform: rotate(8deg);
  animation: breathe 8s ease-in-out infinite;
}

.section {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--bottom-cta-height));
  padding: 56px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  height: 150px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.18) 48%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -150px;
  height: 150px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.18) 48%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.cta::after,
.site-footer::before {
  display: none;
}

.section > * {
  position: relative;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.section-lead {
  color: var(--muted);
  max-width: 72ch;
}

strong {
  color: var(--gold);
}

.pillar-grid,
.phase-list,
.guardrail-grid {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.pillar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.phase-list,
.guardrail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.pillar-card,
.phase-item,
.panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 10px 20px 0;
}

.panel-warn {
  border-left: 3px solid rgba(255, 178, 136, 0.55);
  padding-left: 14px;
}

.panel-ok {
  border-left: 3px solid rgba(156, 223, 191, 0.6);
  padding-left: 14px;
}

.pillar-card h3,
.phase-item h3,
.panel h3 {
  margin-bottom: 8px;
}

.pillar-card p,
.phase-item p,
.panel p {
  margin: 0;
  color: var(--muted);
}

ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--muted);
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.cta-actions > .btn {
  width: 100%;
}

.bottom-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  min-height: var(--bottom-cta-height);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px;
  border-radius: 16px 16px 0 0;
  background: rgba(6, 16, 33, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 13, 0.72);
}

.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 28px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(12, 27, 51, 0.97),
    rgba(8, 19, 38, 0.97)
  );
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.modal-eyebrow {
  margin: 0 0 6px;
  color: var(--gold-strong);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
}

.modal-form {
  margin-top: 16px;
}

.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.modal-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-form input:focus-visible {
  outline: 2px solid rgba(229, 196, 125, 0.42);
  outline-offset: 2px;
}

.modal-error {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #ffb0a0;
  font-size: 0.9rem;
}

.modal-form .btn {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%,
  100% {
    transform: rotate(8deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.03);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 15px;
  }

  .hero-art {
    position: relative;
    width: min(62vw, 280px);
    height: min(62vw, 280px);
    margin: 18px 0 0;
  }

  .pillar-grid,
  .phase-list,
  .guardrail-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card,
  .phase-item,
  .panel {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --bottom-cta-height: 70px;
  }

  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-meaning {
    display: none;
  }

  .modal {
    padding: 14px;
  }

  .modal-dialog {
    padding: 24px 16px 18px;
  }

  .bottom-cta {
    width: 100vw;
    bottom: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

footer {
  margin-bottom: 64px;
}
