:root {
  --bg: #0b0f14;
  --bg-soft: #10161d;
  --surface: #141c25;
  --surface-2: #1a2531;
  --line: #24303d;
  --text: #eef3f8;
  --text-soft: #9fb0c0;
  --muted: #6c7d8e;
  --accent: #2f80ed;
  --accent-2: #56ccf2;
  --accent-soft: rgba(47, 128, 237, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(47, 128, 237, 0.45);
}

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-2) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.78) 45%, rgba(11, 15, 20, 0.55) 100%),
    linear-gradient(to top, rgba(11, 15, 20, 0.9), transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 880px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 26px 0 36px;
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 640px;
}

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

.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 60px 0 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hero-stats li:first-child {
  align-items: flex-start;
  text-align: center;
}

.hero-stats li:nth-child(2) {
  align-items: center;
  text-align: center;
}

.hero-stats li:last-child {
  align-items: flex-end;
  text-align: center;
}

.hero-stats strong {
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
}

.hero-stats span {
  font-size: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.tag.light {
  color: #041018;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-desc {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4/4;
  object-fit: cover;
}

.about-visual figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-lead p {
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.about-lead strong {
  color: var(--text);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: -10px;
}

.about-points li {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-points li:hover {
  transform: translateX(6px);
  border-color: var(--accent);
}

.point-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-2);
}

.about-points h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.about-points p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-media {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline li:hover .timeline-media img {
  transform: scale(1.05);
}

.timeline-body {
  position: relative;
  padding: 24px 26px 30px;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  z-index: 1;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.step-index {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.timeline h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.timeline p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.tech-item {
  padding: 0;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-media {
  height: 220px;
  overflow: hidden;
}

.tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tech-item:hover .tech-media img {
  transform: scale(1.04);
}

.tech-item h3,
.tech-item > p,
.tech-item ul {
  padding-left: 34px;
  padding-right: 34px;
}

.tech-item h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-top: 32px;
}

.tech-item > p {
  color: var(--text-soft);
  margin-bottom: 22px;
}

.tech-item ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 40px;
}

.tech-item li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.tech-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--accent-2);
}

.fields {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.field-card {
  padding: 34px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.field-card.has-media {
  padding: 0;
  overflow: hidden;
}

.field-media {
  height: 180px;
  overflow: hidden;
}

.field-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.field-card.has-media:hover .field-media img {
  transform: scale(1.05);
}

.field-card.has-media h3,
.field-card.has-media p {
  padding-left: 28px;
  padding-right: 28px;
}

.field-card.has-media h3 {
  padding-top: 28px;
}

.field-card.has-media p {
  padding-bottom: 34px;
}

.field-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.field-card.highlight {
  background: linear-gradient(155deg, rgba(47, 128, 237, 0.16), var(--surface));
  border-color: rgba(86, 204, 242, 0.4);
}

.field-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.field-card p {
  color: var(--text-soft);
  font-size: 0.97rem;
}

.cta {
  padding: 100px 0;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(86, 204, 242, 0.12), transparent 60%),
    var(--bg);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text .tag {
  color: var(--accent-2);
}

.cta-text p {
  color: var(--text-soft);
  font-size: 1.03rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 58px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  min-width: 76px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-list a {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.contact-form .form-field > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0f14;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.success {
  color: #5dffb1;
}

.form-status.error {
  color: #ff8e8e;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .about-grid,
  .tech-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .about-visual img {
    aspect-ratio: 16 / 9;
  }
  .cards,
  .timeline,
  .fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    padding: 40px 28px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 15, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero {
    padding: 150px 0 80px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .hero-stats li,
  .hero-stats li:first-child,
  .hero-stats li:nth-child(2),
  .hero-stats li:last-child {
    align-items: flex-start;
    text-align: left;
  }
  .cards,
  .timeline,
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 80px 0;
  }
}
