/* ONOFF SYSTEM Safety Portal — mobile-first design system */
:root {
  --navy: #103b73;
  --navy-deep: #082b57;
  --blue: #1976d2;
  --blue-light: #e8f2fc;
  --ink: #17253a;
  --muted: #65758b;
  --surface: #ffffff;
  --background: #f4f7fb;
  --border: #e3eaf2;
  --shadow: 0 12px 40px rgba(14, 50, 91, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color .3s ease, background-color .3s ease;
}

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

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -60px;
  left: 16px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(227, 234, 242, .85);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.header-inner,
.hero-inner,
.quick-inner,
.content-section,
.footer-inner {
  width: min(100% - 36px, var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand, .footer-brand { display: flex; align-items: center; gap: 10px; }

/* Official company logo and service identity are intentionally separate. */
.company-logo {
  display: flex;
  width: auto;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
}
.company-logo img {
  display: block;
  width: auto;
  max-width: 52px;
  height: 100%;
  object-fit: contain;
}
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.06; }
.brand-copy strong { color: var(--navy); font-size: .82rem; letter-spacing: -.018em; }
.brand-copy small { display: none; margin-top: 5px; color: var(--muted); font-size: .5rem; font-weight: 600; letter-spacing: .025em; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.status-pill { display: none; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: #13734f; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #1db97d; box-shadow: 0 0 0 4px rgba(29, 185, 125, .12); }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.icon-button:hover { transform: translateY(-2px); background: var(--blue-light); }

.hero {
  position: relative;
  overflow: hidden;
  /* Compact enterprise hero keeps primary workflows visible in the first view. */
  padding: 26px 0 35px;
  color: white;
  background:
    linear-gradient(118deg, rgba(8, 43, 87, .97), rgba(16, 59, 115, .94) 62%, rgba(25, 118, 210, .86)),
    radial-gradient(circle at 80% 30%, #2f8ce2, transparent 36%);
}
.hero::after {
  position: absolute;
  right: -5%;
  bottom: -90px;
  width: 58%;
  height: 180px;
  content: "";
  transform: rotate(-5deg);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-one { width: 240px; height: 240px; top: -120px; right: 8%; background: rgba(78, 162, 244, .12); }
.hero-glow-two { width: 170px; height: 170px; left: -80px; bottom: -100px; border: 1px solid rgba(255,255,255,.12); }
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 7px 11px;
  color: #d9ecff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow .material-symbols-rounded { font-size: 17px; color: #7dc0ff; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 12vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { display: block; margin-bottom: 10px; color: #61b0ff; font-size: .38em; letter-spacing: .02em; }
.hero-copy > p { margin: 15px 0 0; color: #d7e7f8; font-size: clamp(1rem, 4vw, 1.24rem); letter-spacing: -.02em; }
.hero-visual { display: none; }

.quick-bar { position: relative; z-index: 4; margin-top: -24px; }
.quick-inner {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(227, 234, 242, .75);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 15px 18px;
}
.quick-item > .material-symbols-rounded:first-child { color: var(--blue); font-size: 24px; }
.quick-item > span:not(.material-symbols-rounded) { display: flex; flex-direction: column; gap: 2px; }
.quick-item small { color: var(--muted); font-size: .65rem; }
.quick-item strong { font-size: .82rem; }
.quick-divider { height: 1px; margin-inline: 18px; background: var(--border); }
.emergency-link { color: #ba2c2c; }
.emergency-link .arrow { margin-left: auto; font-size: 20px; transition: transform .2s ease; }
.emergency-link:hover .arrow { transform: translateX(4px); }

.content-section { padding-top: 64px; }
/* The first content section sits closer to the compact hero/status area. */
.menu-section.content-section { padding-top: 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 7vw, 2.2rem); letter-spacing: -.045em; }
.section-heading p { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.card-grid { display: grid; gap: 14px; }
.menu-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 130px;
  overflow: hidden;
  padding: 25px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(14, 50, 91, .045);
  transition: transform .3s cubic-bezier(.2,.65,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.menu-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  transform: scaleY(.45);
  border-radius: 0 4px 4px 0;
  background: var(--card-accent);
  transition: transform .28s ease;
}
.menu-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--card-accent) 30%, var(--border)); box-shadow: 0 15px 36px rgba(14, 50, 91, .105); }
.menu-card:hover::before { transform: scaleY(1); }
.card-number { position: absolute; top: 12px; right: 14px; color: #edf1f6; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.card-icon { position: relative; z-index: 1; display: grid; width: 52px; height: 52px; place-items: center; color: var(--card-accent); border-radius: 15px; background: color-mix(in srgb, var(--card-accent) 10%, white); }
.card-icon .material-symbols-rounded { font-size: 28px; }
.card-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.card-copy strong { font-size: 1rem; letter-spacing: -.025em; }
.card-copy small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { position: relative; z-index: 1; color: #a0acbb; font-size: 20px; transition: color .2s ease, transform .2s ease; }
.menu-card:hover .card-arrow { color: var(--card-accent); transform: translate(3px, -3px); }

/* Featured workflow cards receive a stronger edge, surface tint and label. */
.featured-card {
  min-height: 144px;
  border-color: color-mix(in srgb, var(--card-accent) 28%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 7%, var(--surface)), var(--surface) 68%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--card-accent) 10%, transparent);
}
.featured-card::before { width: 5px; transform: scaleY(1); }
.featured-label {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--card-accent);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.featured-label .material-symbols-rounded {
  font-size: 12px;
  font-variation-settings: "FILL" 1, "wght" 500;
}

.update-section { padding-bottom: 76px; }
.notice-list { display: grid; gap: 12px; }
.notice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 21px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.notice-card:hover { transform: translateY(-3px); border-color: #bcd5ed; box-shadow: 0 16px 38px rgba(14, 50, 91, .11); }
.notice-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--blue); border-radius: 14px; background: var(--blue-light); }
.notice-icon .material-symbols-rounded { font-size: 25px; }
.notice-content { min-width: 0; }
.notice-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: .65rem; }
.notice-content h3 { margin: 0 0 5px; overflow: hidden; color: var(--navy); font-size: .92rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.notice-content time { display: block; color: var(--muted); font-size: .68rem; }
.new-badge { display: inline-flex; padding: 3px 7px; color: white; border-radius: 6px; background: var(--blue); font-size: .52rem; font-weight: 800; }
.notice-arrow { color: #a0acbb; font-size: 20px; }

.safety-message { padding: 62px 0; color: white; text-align: center; background: linear-gradient(115deg, var(--navy-deep), var(--navy)); }
.safety-message-inner { width: min(100% - 36px, 760px); margin: auto; }
.safety-message .material-symbols-rounded { color: #66b2fa; font-size: 38px; }
.safety-message p { margin: 8px 0 18px; font-size: clamp(1.4rem, 7vw, 2.25rem); line-height: 1.45; letter-spacing: -.04em; }
.safety-message strong { color: #6fbdff; }
.safety-message .line { display: block; width: 30px; height: 2px; margin: 0 auto 13px; background: #63b4fb; }
.message-signature { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.message-signature strong { color: #fff; font-size: .72rem; letter-spacing: .12em; }
.message-signature small { color: #adc6df; font-size: .6rem; font-weight: 500; letter-spacing: .06em; }

.site-footer { padding: 30px 0; background: #071f3e; color: #b6c8dc; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-logo { display: block; width: auto; height: 28px; object-fit: contain; }
.footer-brand > span:last-child { display: flex; flex-direction: column; }
.footer-brand strong { color: white; font-size: .82rem; }
.footer-brand small { margin-top: 3px; font-size: .63rem; }
.footer-meta { display: flex; align-items: center; gap: 8px; font-size: .66rem; }
.footer-meta .dot { color: #4d6d91; }

.toast {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: white;
  border-radius: 12px;
  background: #253448;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: .78rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--delay, 0ms), transform .65s cubic-bezier(.2,.65,.2,1) var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* User-selectable dark mode */
body.dark {
  --ink: #e9f0f8;
  --muted: #9fb0c5;
  --surface: #102943;
  --background: #091d32;
  --border: #24415f;
  --blue-light: #143c65;
  --shadow: 0 12px 42px rgba(0, 0, 0, .24);
  color-scheme: dark;
}
body.dark .site-header { background: rgba(9, 29, 50, .9); border-bottom-color: var(--border); }
body.dark .brand-copy strong, body.dark .section-heading h2, body.dark .notice-content h3 { color: #e6f1fd; }
body.dark .card-number { color: #183550; }
body.dark .card-icon { background: color-mix(in srgb, var(--card-accent) 17%, #102943); }

@media (min-width: 600px) {
  .header-inner, .hero-inner, .quick-inner, .content-section, .footer-inner { width: min(100% - 56px, var(--content-width)); }
  .status-pill { display: flex; }
  .company-logo { width: auto; height: 44px; }
  .brand-copy small { display: block; }
  .hero { padding: 33px 0 40px; }
  .quick-inner { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .quick-divider { width: 1px; height: auto; margin-block: 17px; margin-inline: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .notice-card { padding: 24px 26px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 920px) {
  .header-inner { min-height: 72px; }
  .company-logo { width: auto; height: 44px; }
  .brand-copy strong { font-size: .86rem; }
  .hero { min-height: 225px; display: grid; align-items: center; padding: 31px 0 38px; }
  .hero-inner { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; }
  .hero-visual { display: grid; place-items: center; }
  /* Illustration is intentionally secondary to the title and workflows. */
  .shield-orbit { position: relative; display: grid; width: 260px; height: 260px; place-items: center; }
  .orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; animation: spin 22s linear infinite; }
  .orbit-one { width: 216px; height: 216px; border-style: dashed; }
  .orbit-two { width: 156px; height: 156px; animation-direction: reverse; animation-duration: 16s; }
  .shield { display: grid; width: 102px; height: 102px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 31px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); box-shadow: 0 20px 52px rgba(0, 0, 0, .18); backdrop-filter: blur(8px); transform: rotate(45deg); }
  .shield .material-symbols-rounded { color: #8bc7ff; font-size: 54px; transform: rotate(-45deg); font-variation-settings: "FILL" 0, "wght" 300; }
  .float-icon { position: absolute; display: grid; width: 42px; height: 42px; place-items: center; color: #d7ebff; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
  .icon-one { top: 24px; right: 21px; }
  .icon-two { bottom: 36px; left: 17px; }
  .icon-three { right: 3px; bottom: 52px; color: #ffb4b4; }
  .content-section { padding-top: 78px; }
  .menu-section.content-section { padding-top: 46px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-card { display: flex; min-height: 224px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px; }
  .featured-card { min-height: 244px; }
  .featured-card .card-icon { margin-top: 17px; }
  .card-icon { width: 58px; height: 58px; margin-bottom: auto; }
  .card-copy strong { font-size: 1.08rem; }
  .card-arrow { position: absolute; right: 22px; bottom: 25px; }
  .emergency-card { grid-column: span 3; min-height: 150px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .emergency-card .card-icon { margin: 0; }
  .emergency-card .card-arrow { position: relative; right: auto; bottom: auto; margin-left: auto; }
  .update-section { padding-bottom: 96px; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
