:root {
  --ink: #10211c;
  --muted: #5e6f68;
  --line: rgba(20, 42, 35, 0.14);
  --paper: #f6f8f4;
  --white: #ffffff;
  --sage: #2f745d;
  --pine: #173c34;
  --aqua: #4dbfb2;
  --lime: #b8e76b;
  --clay: #c7814a;
  --blue: #285f89;
  --shadow: 0 22px 70px rgba(14, 43, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #edf7ef;
  background: linear-gradient(180deg, rgba(9, 24, 21, 0.82), rgba(9, 24, 21, 0));
}

.brand,
.nav-links,
.hero-actions,
.metric-grid,
.service-layout,
.contact,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.24));
}

.brand strong,
.brand small {
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand small {
  color: rgba(237, 247, 239, 0.68);
  font-size: 11px;
}

.nav-links {
  gap: 28px;
  color: rgba(237, 247, 239, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(237, 247, 239, 0.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(237, 247, 239, 0.76);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover {
  color: var(--white);
  border-color: rgba(237, 247, 239, 0.5);
}

.lang-toggle-sep {
  color: rgba(237, 247, 239, 0.35);
  font-weight: 600;
  pointer-events: none;
}

.lang-toggle-part.lang-toggle-active {
  color: var(--white);
}

.lang-toggle-part.lang-toggle-muted {
  color: rgba(237, 247, 239, 0.42);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(237, 247, 239, 0.3);
  border-radius: 8px;
  color: rgba(237, 247, 239, 0.9);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 5vw, 72px) 84px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 40%, rgba(77, 191, 178, 0.26), transparent 26%),
    linear-gradient(135deg, #071614 0%, #10312c 48%, #1c422e 100%);
}

#earthCanvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

#earthCanvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 20, 0.88), rgba(7, 22, 20, 0.34) 48%, rgba(7, 22, 20, 0.12)),
    linear-gradient(0deg, rgba(7, 22, 20, 0.52), rgba(7, 22, 20, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 500;
  word-break: keep-all;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #09211c;
  background: var(--lime);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.mission-panel {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 72px);
  bottom: 52px;
  width: min(580px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 22, 20, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.45;
  word-break: keep-all;
}

.metric-grid {
  align-items: stretch;
  gap: 12px;
}

.metric-grid > span {
  flex: 1 1 0;
  min-width: 132px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.metric-grid b {
  display: block;
  color: var(--white);
  font-size: 18px;
}

section:not(.hero) {
  scroll-margin-top: 82px;
  padding: 96px clamp(20px, 5vw, 72px);
}

.section-band {
  background: var(--white);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}

.intro p,
.service-copy p,
.section-lead,
.application-card dd,
.audience-grid p,
.tech-grid p {
  color: var(--muted);
  word-break: keep-all;
}

.section-heading {
  max-width: 760px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.technology {
  background:
    linear-gradient(180deg, rgba(246, 248, 244, 0.96), rgba(232, 239, 232, 0.96)),
    repeating-linear-gradient(90deg, rgba(23, 60, 52, 0.06) 0 1px, transparent 1px 88px);
}

.tech-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.tech-grid article,
.audience-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.card-index {
  display: block;
  margin-bottom: 48px;
  color: var(--sage);
  font-weight: 800;
}

.service-layout {
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(30px, 6vw, 90px);
  margin-top: 42px;
}

.service-copy {
  max-width: 520px;
}

.service-list {
  display: grid;
  width: min(620px, 100%);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--pine);
  font-size: 19px;
  font-weight: 700;
  word-break: keep-all;
}

.applications {
  background:
    linear-gradient(180deg, rgba(246, 248, 244, 0.98), rgba(238, 244, 238, 0.98)),
    radial-gradient(circle at 82% 18%, rgba(77, 191, 178, 0.16), transparent 28%);
}

.applications .section-heading {
  max-width: 920px;
}

.section-lead {
  margin-top: 22px;
  max-width: 820px;
  font-size: 18px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.application-card {
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 48px rgba(14, 43, 35, 0.08);
}

.application-card h3 {
  min-height: 54px;
  word-break: keep-all;
}

.application-card dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.application-card dt {
  margin-bottom: 5px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.application-card dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.platform {
  background: #112923;
  color: var(--white);
}

.platform .section-heading {
  margin-bottom: 44px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.map-surface {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(77, 191, 178, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px),
    #173c34;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(184, 231, 107, 0.22) 50%, transparent 100%);
  height: 32%;
  animation: scan 6s ease-in-out infinite;
}

.tile {
  position: absolute;
  border-radius: 8px;
  opacity: 1;
}

.tile.water {
  left: 8%;
  top: 16%;
  width: 34%;
  height: 24%;
  background: #345f9f;
}

.tile.forest {
  left: 36%;
  top: 28%;
  width: 38%;
  height: 42%;
  background: #3f7f52;
}

.tile.crop {
  left: 12%;
  bottom: 15%;
  width: 30%;
  height: 28%;
  background: #c6a94a;
}

.tile.urban {
  right: 10%;
  top: 12%;
  width: 20%;
  height: 20%;
  background: #b94a48;
}

.tile.risk {
  right: 18%;
  bottom: 16%;
  width: 24%;
  height: 18%;
  background: #7a5436;
}

.aoi-box {
  position: absolute;
  left: 28%;
  top: 20%;
  width: 46%;
  height: 48%;
  border: 2px solid var(--lime);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(7, 22, 20, 0.14);
}

.workflow {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.workflow li:last-child {
  border-bottom: 0;
}

.workflow span,
.workflow b {
  display: block;
}

.workflow span {
  margin-bottom: 8px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workflow b {
  font-size: 20px;
  word-break: keep-all;
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience-grid article {
  min-height: 220px;
}

.contact {
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  background: linear-gradient(135deg, #173c34, #27533d 58%, #2f745d);
}

.contact h2 {
  max-width: 860px;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(16, 33, 28, 0.7);
  background: var(--paper);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pine);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-20%);
  }

  50% {
    transform: translateY(240%);
  }
}

@media (max-width: 960px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 128px;
  }

  .mission-panel {
    position: relative;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: calc(100% - 40px);
    margin-top: 28px;
  }

  .intro,
  .workbench {
    grid-template-columns: 1fr;
  }

  .tech-grid,
  .application-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-layout,
  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small,
  .header-actions .nav-cta {
    display: none;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
  }

  .metric-grid,
  .tech-grid,
  .application-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    display: grid;
  }

  section:not(.hero) {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .tech-grid article,
  .application-card,
  .audience-grid article {
    min-height: auto;
  }

  .map-surface {
    min-height: 360px;
  }
}
