:root {
  --navy: #0a1628;
  --navy-mid: #132238;
  --teal: #00a8b5;
  --teal-light: #4dd4de;
  --teal-glow: rgba(0, 168, 181, 0.25);
  --white: #ffffff;
  --gray-100: #f4f7fa;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --text: #1e293b;
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #132238 45%, #0d3d47 100%);
  --gradient-accent: linear-gradient(90deg, #00a8b5, #4dd4de);
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 168, 181, 0.45);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  display: block;
  height: clamp(28px, 5vw, 36px);
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal-light);
}

/* Hero */
.hero {
  min-height: 92vh;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 4vw, 2rem) 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 181, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 181, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 168, 181, 0.15);
  border: 1px solid rgba(0, 168, 181, 0.35);
  border-radius: 100px;
  color: var(--teal-light);
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: var(--gradient-accent);
  color: var(--navy);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--teal-light);
}

/* Sections */
section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.section-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 640px;
}

/* About */
.about {
  background: var(--gray-100);
}

.about-lead {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 680px;
  line-height: 1.8;
}

.about-visual {
  margin-top: 2.5rem;
  max-width: 640px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
}

.about-visual-inner {
  text-align: center;
  color: var(--white);
  padding: 1.5rem;
}

.about-visual-inner .tagline {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-visual-inner p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.portfolio-icon {
  display: inline-grid;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 168, 181, 0.1);
  margin-bottom: 1rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
}

.portfolio-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Operations */
.operations {
  background: var(--navy);
  color: var(--white);
}

.operations .section-label {
  color: var(--teal-light);
}

.operations .section-title {
  color: var(--white);
}

.operations .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.ops-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ops-number {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(0, 168, 181, 0.35);
  margin-bottom: 0.75rem;
}

.ops-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--teal-light);
}

.ops-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* Vision */
.vision {
  text-align: center;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.vision blockquote {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.vision blockquote strong {
  color: var(--teal);
  font-weight: 700;
}

.vision cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--gray-400);
  font-family: var(--font-en);
}

/* Footer */
footer {
  background: var(--navy-mid);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  height: clamp(24px, 4vw, 32px);
  width: auto;
}

.footer-contact {
  text-align: right;
}

.footer-contact-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(77, 212, 222, 0.65);
  margin-bottom: 0.75rem;
}

.footer-contact-line {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.footer-contact-line a {
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-en);
  font-weight: 400;
  transition: color 0.2s;
}

.footer-contact-line a:hover {
  color: var(--teal-light);
}

.footer-site-link {
  display: inline-block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-site-link:hover {
  color: var(--teal-light);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 404 */
.error-header {
  background: var(--navy);
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.page-error {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--gray-100);
}

.page-error h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
}

.page-error p {
  color: var(--gray-600);
}

@media (max-width: 900px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .portfolio-card:hover {
    transform: none;
  }
}
