/* Fonts */
@font-face {
  font-family: 'Inter Variable';
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('assets/fonts/pretendard-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('assets/fonts/pretendard-regular.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Base */
body {
  background-color: #000;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Cursor blink */
.cursor {
  animation: blink 0.8s step-end infinite;
  color: #fff;
}
.cursor--done {
  animation: blink 1.2s step-end infinite;
  color: #333;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Terminal prompt */
.prompt {
  color: #444;
  margin-right: 8px;
}

/* Scroll reveal */
.reveal-target {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-target.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal-target:nth-child(2) { transition-delay: 0.1s; }
.reveal-target:nth-child(3) { transition-delay: 0.2s; }
.reveal-target:nth-child(4) { transition-delay: 0.15s; }

/* Section label reveal has its own timing */
.section-label.reveal-target {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease;
}
.section-label.reveal-target.revealed {
  opacity: 1;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 60px;
  display: flex;
  align-items: center;
}

.nav__inner img {
  width: 44px;
  height: 44px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero__text {
  margin-bottom: 64px;
  min-height: calc(1.3em * 2 + 64px);
}

.hero__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -3px;
  color: #fff;
  min-height: 1.3em;
}

.hero__subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -3px;
  color: #333;
  min-height: 1.3em;
}

.hero__vanta {
  width: 100vw;
  margin-left: calc(-60px);
  height: 500px;
  position: relative;
}

.hero__vanta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}

.hero__vanta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
  z-index: 1;
}

.hero__thesis {
  margin-top: 64px;
  font-size: 18px;
  color: #555;
  line-height: 2;
  word-break: keep-all;
  max-width: 100%;
}

/* ── SECTION SHARED ── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 56px;
}

/* ── PRODUCTS ── */
.products {
  padding: 140px 60px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 48px;
  background: #060606;
  border-radius: 2px;
  transition: background 0.3s;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.product-card:hover {
  background: #0a0a0a;
}

.product-card img {
  border-radius: 8px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.product-card__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.product-card__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ── BACKGROUND ── */
.background {
  padding: 140px 60px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.background__logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.background__logo {
  display: flex;
  align-items: center;
  padding: 48px;
  background: #060606;
  border-radius: 2px;
  position: relative;
  min-height: 100px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.background__logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.background__logo:hover {
  opacity: 1;
}

.background__logo img {
  height: auto;
  max-height: 40px;
}

/* ── TEAM ── */
.team {
  padding: 140px 60px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.team__card {
  background: #060606;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.team__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.team__card-top {
  padding: 40px 40px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.team__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}

.team__name-kr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.team__name-en {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.team__card-body {
  padding: 24px 40px 40px;
}

.team__bio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.team__bio-list li {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.team__bio-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bio-dash {
  color: #222;
  flex-shrink: 0;
}

.team__bio-sub {
  list-style: none;
  margin-top: 6px;
}

.team__bio-sub li {
  font-size: 13px;
  color: #444;
  padding: 3px 0;
  border-bottom: none;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.team__bio-sub li::before {
  content: '·';
  flex-shrink: 0;
  color: #333;
}

/* ── FOOTER ── */
.footer {
  padding: 120px 60px 60px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.footer__logo {
  flex-shrink: 0;
}

.footer__logo img {
  width: 44px;
  height: 44px;
  opacity: 0.6;
}

.footer__content {
  display: flex;
  justify-content: flex-end;
  gap: 120px;
  flex: 1;
}

.footer__links {
  min-width: 200px;
  text-align: right;
}

.footer__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 15px;
  color: #555;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer__company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.footer__detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero__title,
  .hero__subtitle {
    font-size: 40px;
  }

  .section-label {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .nav__inner {
    padding: 16px 24px;
  }

  .hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero__title,
  .hero__subtitle {
    font-size: 28px;
    letter-spacing: -1px;
    min-height: 1.3em;
  }

  .hero__text {
    min-height: calc(28px * 1.3 * 4 + 24px);
  }

  .section-label {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .hero__vanta {
    margin-left: -24px;
    width: calc(100% + 48px);
    height: 50vh;
  }

  .hero__thesis {
    font-size: 16px;
  }

  .products,
  .background,
  .team,
  .footer {
    padding: 80px 24px;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 32px;
  }

  .background__logos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .background__logo {
    padding: 32px;
  }

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

  .team__card-top {
    padding: 32px 28px 0;
  }

  .team__photo {
    width: 80px;
    height: 80px;
  }

  .team__name-kr {
    font-size: 24px;
  }

  .team__role {
    font-size: 11px;
  }

  .team__name-en {
    font-size: 13px;
  }

  .team__card-body {
    padding: 20px 28px 32px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__content {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .footer__links {
    text-align: left;
  }

  .footer__info {
    text-align: left;
  }
}
