:root {
  --bg: #08111f;
  --bg-soft: #0f1b2e;
  --card: rgba(255, 255, 255, 0.07);
  --card-hover: rgba(255, 255, 255, 0.105);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #9fb0c6;
  --primary: #38bdf8;
  --primary-strong: #0ea5e9;
  --mint: #2dd4bf;
  --warning: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 15%, rgba(45, 212, 191, 0.16), transparent 34rem),
    linear-gradient(180deg, #08111f 0%, #0c1728 52%, #07101d 100%);
}

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

button {
  font: inherit;
}

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

.locale-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.locale-button {
  min-height: 34px;
  min-width: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.locale-button.is-active {
  color: #04111f;
  background: linear-gradient(135deg, var(--primary), var(--mint));
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-description {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--primary), var(--mint));
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card {
  min-height: 420px;
  position: relative;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -15% -30% 18%;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 65%);
}

.window-bar {
  display: flex;
  gap: 8px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.experiment-panel {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.65);
  border: 1px solid var(--card-border);
}

.panel-line {
  height: 12px;
  width: 58%;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.panel-line.wide {
  width: 86%;
  background: linear-gradient(90deg, var(--primary), rgba(255, 255, 255, 0.24));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.metric {
  min-height: 92px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
}

.metric.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.42), rgba(45, 212, 191, 0.12));
}

.lab-icon {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 168px;
  color: var(--primary);
  filter: drop-shadow(0 16px 40px rgba(56, 189, 248, 0.25));
}

.lab-icon img {
  width: 100%;
  height: auto;
  opacity: 0.96;
}

.accent-icons {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.82;
}

.accent-icons img {
  width: 26px;
  height: 26px;
}

.feature-grid,
.project-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 84px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article,
.project-card,
.about,
.cta,
.service-hero,
.service-panel {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.feature-grid article {
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--primary);
  font-weight: 900;
}

.feature-grid h2,
.project-card h3 {
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.feature-grid p,
.project-card p,
.about p,
.cta p,
.service-panel p,
.service-lead,
.section-description,
.project-points {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 110px auto 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.about h2,
.cta h2,
.service-hero h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
}

.project-grid {
  width: 100%;
  margin-top: 0;
}

.project-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  padding: 26px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
}

.project-card.featured {
  position: relative;
  overflow: hidden;
}

.project-card.featured::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 50%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 65%);
}

.project-badge,
.status-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9eeaff;
  background: rgba(56, 189, 248, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.status-badge.live {
  color: #b8fff0;
  background: rgba(45, 212, 191, 0.14);
}

.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--mint);
  font-weight: 800;
}

.project-points {
  margin: 18px 0 0;
  padding-left: 20px;
}

.project-points li + li {
  margin-top: 8px;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 36px;
}

.cta {
  text-align: center;
  padding: 54px 24px;
}

.cta .button {
  margin-top: 18px;
}

.service-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 54px auto 0;
}

.breadcrumb {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--mint);
  font-weight: 800;
}

.service-hero {
  padding: clamp(28px, 5vw, 54px);
}

.service-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.service-lead {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 19px;
}

.service-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.service-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.service-panel {
  padding: 28px;
}

.service-panel h2 {
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.service-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
}

.info-table th,
.info-table td {
  padding: 13px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--card-border);
}

.info-table th {
  width: 110px;
  color: var(--text);
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 80px auto 0;
  padding: 28px 0 42px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav {
    gap: 18px;
  }

  .hero,
  .service-layout,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 34px;
  }

  .hero-card {
    min-height: 420px;
  }

  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 18px;
  }

  .service-hero-top,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
  }

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

  .lab-icon {
    right: 18px;
    bottom: 18px;
    width: 132px;
  }

  .accent-icons {
    left: 18px;
    bottom: 18px;
  }

  .hero-card {
    padding-bottom: 40px;
  }
}
