:root {
  --black: #06111f;
  --white: #f7f9fc;
  --muted: rgba(232, 239, 247, 0.72);
  --line: rgba(236, 244, 255, 0.38);
  --ice: #6fddff;
  --red: #ff2038;
  --nav: rgba(7, 19, 36, 0.68);
  --ink: #07101a;
  --sans: "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.page {
  z-index: 2;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(18px, 2.6vh, 28px) clamp(18px, 4vw, 64px) clamp(18px, 3.4vh, 38px);
}

.bg,
.bg-city,
.city-scene,
.city-motion,
.bg-grade,
.bg-grain {
  position: absolute;
  inset: 0;
}

.bg {
  z-index: -1;
  overflow: hidden;
  background: var(--black);
}

.city-scene {
  inset: -3%;
  transform: scale(1.035);
  will-change: transform;
  pointer-events: none;
}

.bg-city {
  background: url("assets/cyber-city.png") center / cover no-repeat;
  filter: saturate(1.06) contrast(1.02) brightness(0.92);
}

.city-motion {
  width: 100%;
  height: 100%;
}

.motion-toggle {
  position: absolute;
  z-index: 3;
  top: 92px;
  right: clamp(18px, 4vw, 64px);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(180, 219, 246, .35);
  border-radius: 50%;
  background: rgba(6, 17, 31, .72);
  color: #e5f5ff;
  cursor: pointer;
}
.motion-toggle:hover { background: #17304a; }
.motion-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.motion-play { display: none; }
.motion-toggle[data-paused="true"] .motion-play { display: block; }
.motion-toggle[data-paused="true"] .motion-pause { display: none; }
body.menu-open .motion-toggle { visibility: hidden; }

.bg-grade {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(5, 14, 27, 0.68) 0 17%, rgba(5, 14, 27, 0.25) 35%, transparent 55%),
    linear-gradient(180deg, rgba(2, 9, 18, 0.14), transparent 27%, transparent 65%, rgba(3, 8, 16, 0.68)),
    linear-gradient(90deg, rgba(3, 8, 16, 0.28), transparent 22%, transparent 78%, rgba(3, 8, 16, 0.22));
}

.bg-grain {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  animation: slide-down 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 12, 24, 0.72);
  border: 1px solid rgba(255, 60, 83, 0.5);
  box-shadow: 0 0 24px rgba(255, 32, 56, 0.28), 0 4px 18px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, background-color 180ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
  background: rgba(15, 22, 36, 0.9);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.45);
}

.wordmark-loc {
  display: inline-block;
  width: 1.53em;
  height: .782em;
  margin-left: .025em;
  flex-shrink: 0;
  object-fit: contain;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 4px 7px;
  border: 1px solid rgba(132, 205, 255, 0.48);
  border-radius: 999px;
  background: var(--nav);
  box-shadow: inset 0 0 20px rgba(66, 155, 223, 0.08), 0 6px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px) saturate(120%);
}

.nav-link {
  position: relative;
  display: grid;
  min-width: 0;
  height: 38px;
  padding: 0 13px;
  white-space: nowrap;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(235, 245, 255, 0.66);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: -5px 0 var(--red), 5px 0 var(--red), 0 0 8px rgba(255, 32, 56, 0.8);
  content: "";
}

.header-cta,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  justify-self: end;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid rgba(255, 124, 139, 0.75);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2941, #d90024);
  box-shadow: 0 0 24px rgba(255, 32, 56, 0.38), 0 4px 18px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff4960, #ec0028);
}

.menu-toggle {
  display: none;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { white-space: nowrap; padding-inline: 20px; }
.language-control {
  display: flex; align-items: center; gap: 6px; height: 46px;
  padding: 0 10px; border: 1px solid rgba(132, 205, 255, 0.32);
  border-radius: 999px; background: var(--nav); backdrop-filter: blur(16px);
}
.language-control svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-control select {
  width: 83px; min-height: 40px; border: 0; background: transparent;
  color: var(--white); font: 500 12px var(--sans); cursor: pointer;
}
.language-control option { background: #0b1a2b; color: white; }
:is(button, a, select):focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.panel-cta { margin-top: 28px; padding: 14px 24px; border: 0; border-radius: 999px; background: #df1530; color: white; font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-sheet { max-height: calc(100dvh - 106px); overflow-y: auto; }
.brief-copy { overflow-wrap: anywhere; }
html:not([lang="en"]) .hero-title { font-size: clamp(44px, 5.5vw, 84px); line-height: 1.25; letter-spacing: -0.035em; }
html:not([lang="en"]) .hero-title span { white-space: nowrap; }
html:not([lang="en"]) .dialog-content h2 { line-height: 1.25; letter-spacing: -0.025em; }
html[lang="ko"] :is(.hero-copy, .dialog-content) { word-break: keep-all; overflow-wrap: break-word; }

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(980px, 92vw);
  flex: 1;
  align-self: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(32px, 7vh, 84px) 0 clamp(20px, 4vh, 44px);
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(89, 204, 255, 0.16), 0 5px 36px rgba(0, 0, 0, 0.64);
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: title-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.13s;
}

.hero-copy {
  max-width: 620px;
  margin: clamp(24px, 3.8vh, 38px) auto 0;
  color: rgba(245, 250, 255, 0.84);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
  opacity: 0;
  animation: reveal 0.8s 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.primary-cta {
  text-decoration: none;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 24px;
  margin-top: clamp(24px, 3.7vh, 36px);
  padding: 0 23px 0 28px;
  border: 1px solid rgba(255, 147, 160, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2a42, #d90024);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 36px rgba(255, 25, 57, 0.42);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  animation: reveal 0.8s 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 48px rgba(255, 25, 57, 0.62);
  transform: translateY(-2px) scale(1.015);
}

.primary-cta svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.capabilities {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 64px);
  width: min(1340px, 100%);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(111, 201, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(4, 13, 26, 0.66), rgba(8, 18, 36, 0.5));
  box-shadow: inset 0 0 40px rgba(37, 126, 191, 0.06), 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.capability {
  text-decoration: none;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  opacity: 0;
  animation: reveal 0.75s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.capability:nth-child(2) { animation-delay: 0.58s; }
.capability:nth-child(3) { animation-delay: 0.66s; }
.capability:nth-child(4) { animation-delay: 0.74s; }

.capability-line {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.capability-line::after {
  position: absolute;
  inset: 0;
  background: var(--ice);
  content: "";
  transform: translateX(-101%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.capability:hover .capability-line::after,
.capability:focus-visible .capability-line::after {
  transform: translateX(0);
}

.capability-copy {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.8vw, 27px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
}

.capability-copy b {
  color: #ff5063;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 3;
  inset: 0;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(2, 5, 9, 0.64);
  backdrop-filter: blur(8px);
}

.menu-sheet {
  position: absolute;
  top: 82px;
  right: 18px;
  left: 18px;
  display: grid;
  padding: 18px;
  border-radius: 24px;
  background: rgba(247, 249, 252, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  animation: menu-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(7, 16, 26, 0.11);
  background: transparent;
  color: rgba(7, 16, 26, 0.68);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.mobile-link.active {
  color: var(--ink);
}

.mobile-cta {
  width: 100%;
  margin-top: 16px;
  background: var(--ink);
}

.info-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: min(82dvh, 760px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.info-dialog::backdrop {
  background: rgba(1, 4, 8, 0.66);
  backdrop-filter: blur(10px);
}

.info-dialog[open] {
  animation: dialog-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dialog-shell {
  position: relative;
  max-height: min(82dvh, 760px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: rgba(246, 249, 252, 0.98);
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(7, 16, 26, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.dialog-eyebrow {
  margin-bottom: 19px;
  color: #4476a8;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-content h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dialog-content > p {
  max-width: 470px;
  margin: 19px 0 0;
  color: rgba(7, 16, 26, 0.64);
  font-size: 14px;
  line-height: 1.6;
}

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.service-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(7, 16, 26, 0.12);
}

.service-item b {
  color: #4476a8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.service-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.service-item p {
  margin: 0;
  color: rgba(7, 16, 26, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.quote-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.quote-form label {
  display: grid;
  gap: 7px;
}

.quote-form label > span {
  color: rgba(7, 16, 26, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 16, 26, 0.13);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quote-form input {
  height: 46px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: #6da7df;
  box-shadow: 0 0 0 3px rgba(87, 151, 214, 0.14);
}

.submit-button,
.copy-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.form-note,
.copy-status {
  margin: -5px 0 0;
  color: rgba(7, 16, 26, 0.5);
  font-size: 11px;
  text-align: center;
}

.brief-result {
  margin-top: 28px;
}

.brief-copy {
  padding: 18px;
  border: 1px solid rgba(7, 16, 26, 0.13);
  border-radius: 15px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-button {
  width: 100%;
  margin-top: 14px;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    flex-shrink: 0;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(5, 12, 24, 0.78);
    box-shadow: 0 0 22px rgba(255, 32, 56, 0.22);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 3px;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle span:nth-child(1) { transform: translateY(-5px); }
  .menu-toggle span:nth-child(3) { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .hero-title {
    font-size: clamp(50px, 10.8vw, 84px);
  }
}

@media (max-width: 680px) {
  .header-actions { gap: 8px; }
  .site-header { gap: 8px; }
  .brand { gap: 7px; }
  .language-control { padding-inline: 8px; }
  .language-control svg { display: none; }
  .language-control select { width: 78px; }
  html:not([lang="en"]) .hero-title { font-size: clamp(30px, 7.5vw, 48px); }
  .hero-title { font-size: clamp(36px, 11.5vw, 70px); }
  .page {
    padding: 18px 18px 20px;
  }

  .wordmark {
    font-size: 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .hero {
    width: 100%;
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(36px, 11.5vw, 70px);
    line-height: 0.94;
  }

  .hero-copy {
    max-width: 420px;
    font-size: 14px;
  }

  .primary-cta {
    min-height: 54px;
    margin-top: 25px;
  }

  .capabilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 17px 20px;
    padding: 14px;
  }

  .capability {
    gap: 8px;
  }

  .capability-copy {
    gap: 10px;
    font-size: 12px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .wordmark { font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark img { width: 30px; height: 30px; }
  .menu-toggle { width: 42px; height: 42px; }
  .language-control { height: 42px; }
}

@media (max-height: 700px) and (min-width: 681px) {
  .page { padding-top: 16px; padding-bottom: 18px; }
  .hero { padding-top: 24px; padding-bottom: 18px; }
  .hero-title { font-size: clamp(48px, 7vw, 82px); }
  .hero-copy { margin-top: 18px; }
  .primary-cta { min-height: 50px; margin-top: 18px; }
  .capability { gap: 8px; }
}

@media (max-height: 620px) and (max-width: 680px) {
  .site-header .wordmark { display: none; }
  .hero { padding-top: 18px; padding-bottom: 12px; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }
  .hero-copy { margin-top: 16px; line-height: 1.4; }
  .primary-cta { min-height: 48px; margin-top: 16px; }
  .capabilities { gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
