:root {
  --bg: #000000;
  --fg: #ffffff;
  --primary: #8219fc;
  --accent: #8e8e8e;
  --soft: #c7c7c7;
  --border: rgba(255, 255, 255, 0.08);
  --border-heavy: rgba(255, 255, 255, 0.15);
  --surface: #0c0c0c;
  --solution-surface: #222222;
  --mono: "JetBrains Mono", monospace;
  --sans: "SUIT", "Noto Sans KR", sans-serif;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.35;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: var(--primary);
  color: var(--fg);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  transform: translateY(-160%);
  border: 1px solid var(--border-heavy);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.6;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#canvas-container::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 78%, #000 100%);
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.label::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  height: 92px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  backdrop-filter: blur(8px);
}

.logo {
  display: block;
  width: 141px;
  height: 40px;
}

.logo img {
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: 850px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 252px 120px;
}

.hero > :not(#canvas-container) {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: flex;
  width: 100%;
  max-width: 1680px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 109px;
}

.hero-content {
  display: flex;
  width: 742px;
  flex: 0 0 742px;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content > .label {
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 678px;
  margin-bottom: 48px;
  font-size: 88px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.hero-description {
  width: 100%;
  color: var(--soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.hero-stats {
  display: flex;
  width: 829px;
  flex: 1 1 829px;
  flex-direction: column;
}

.stat-item {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 40px 8px;
}

.stat-item:first-child {
  border-top: 1px solid var(--border);
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.tech-section {
  display: flex;
  min-height: 876px;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0;
}

.section-header {
  padding: 0 120px 80px;
}

.section-header h2,
.contact h2 {
  max-width: 860px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.solutions-header {
  grid-column: 1 / -1;
  width: 520px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.solutions-header .label {
  justify-content: center;
  color: var(--soft);
}

.section-header.compact {
  padding-bottom: 72px;
}

.faq .section-header.compact {
  padding-right: 0;
  padding-left: 0;
}

.section-header p {
  max-width: 820px;
  margin-top: 28px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.blade-container {
  display: flex;
  height: 600px;
  gap: 12px;
  padding: 0 5vw;
}

.blade {
  position: relative;
  display: flex;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  transition:
    flex 0.7s var(--easing),
    border-color 0.4s ease,
    background 0.4s ease;
}

.blade::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.07) 36%, transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 32%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blade:hover,
.blade.active,
.blade:focus-visible {
  flex: 4;
  border-color: var(--border-heavy);
}

.blade:hover::before,
.blade.active::before,
.blade:focus-visible::before {
  opacity: 1;
}

.blade:focus-visible,
.logo:focus-visible,
.footer-nav a:focus-visible,
.submit-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.blade:focus-visible,
.logo:focus-visible,
.footer-nav a:focus-visible,
.submit-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--primary);
}

.blade-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 1px solid var(--border);
  padding: 30px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.blade:hover .blade-label,
.blade.active .blade-label,
.blade:focus-visible .blade-label {
  color: var(--fg);
}

.blade-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  contain: layout paint;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  will-change: opacity;
}

.blade:hover .blade-content,
.blade.active .blade-content,
.blade:focus-visible .blade-content {
  opacity: 1;
  pointer-events: auto;
}

.blade-content h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
}

.blade-content p {
  max-width: 520px;
  color: var(--accent);
  font-size: 16px;
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--border);
  padding: 120px;
}

.products.goals {
  padding-bottom: 120px;
}

.goals {
  background: rgba(255, 255, 255, 0.08);
}

.goals .product-card {
  min-height: 353px;
  gap: 70px;
  padding: 80px;
}

.goals .product-card p {
  max-width: 655px;
  margin-top: 0;
}

.products.solutions {
  gap: 56px 20px;
  background: var(--solution-surface);
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 353px;
  flex-direction: column;
  gap: 70px;
  background: var(--bg);
  padding: 80px;
}

.product-card h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.product-card p {
  max-width: 662px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.5;
}

.product-card p.pretext-measured {
  min-height: var(--pretext-height, auto);
}

.product-visual {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 662 / 372;
  height: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  content: "";
}

.product-visual::before,
.product-visual::after {
  display: none;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 16px;
}

.feature-list li::before {
  color: rgba(255, 255, 255, 0.7);
  content: "->";
  font-family: var(--mono);
}

.faq {
  border-top: 1px solid var(--border);
  padding: 120px;
}

.faq-list {
  padding: 0;
}

.faq-item {
  display: grid;
  grid-template-columns: 72px 520px minmax(420px, 880px);
  gap: 48px;
  border-top: 1px solid var(--border-heavy);
  padding: 32px 0;
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--easing);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-heavy);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateX(8px);
}

.faq-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.faq-item h3 {
  max-width: 520px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.faq-item p {
  max-width: 880px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.activity {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 120px;
}

.activity h2 {
  max-width: 520px;
  margin-top: 30px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  gap: 40px;
  margin-top: 60px;
  padding-bottom: 40px;
  scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-item {
  min-width: 0;
  border-left: 1px solid var(--border-heavy);
  padding: 24px;
}

.timeline-date {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.timeline-item h3 {
  font-size: 22px;
  font-weight: 600;
}

.timeline-item p {
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
}

.contact {
  background: var(--surface);
  padding: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border-heavy);
  padding: 20px 0;
}

.input-group label {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  outline: none;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.input-group select option {
  background: var(--surface);
  color: var(--fg);
}

.input-group textarea {
  min-height: 96px;
  resize: vertical;
}

.input-group small {
  min-height: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.input-group.has-error {
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

.input-group.has-error small {
  color: rgba(255, 255, 255, 0.82);
}

.span-2,
.form-message {
  grid-column: span 2;
}

.submit-btn {
  grid-column: span 2;
  border: none;
  background: var(--primary);
  color: var(--fg);
  padding: 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.18s ease;
}

.submit-btn:hover {
  opacity: 0.8;
}

.submit-btn:active {
  transform: translateY(1px) scale(0.99);
}

.form-message {
  min-height: 20px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 80px 144px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-logo {
  display: block;
  width: 201px;
  height: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--accent);
  font-size: 16px;
  font-style: normal;
  line-height: 1;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.contact-row img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.copyright {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav a {
  color: var(--fg);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 24px;
  }

  .hero {
    padding: 120px 24px 72px;
  }

  .products,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .hero-content,
  .hero-stats {
    width: 100%;
    flex: none;
  }

  .products {
    padding: 80px 24px;
  }

  .products.solutions {
    gap: 48px;
  }

  .products.goals {
    padding-bottom: 80px;
  }

  .solutions-header {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .solutions-header .label {
    justify-content: flex-start;
  }

  .product-card {
    width: 100%;
    min-height: auto;
    padding: 40px 24px;
  }

  .section-header,
  .faq,
  .contact,
  .activity,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section-header.compact {
    padding-right: 0;
    padding-left: 0;
  }

  .faq-list {
    padding: 0;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 30px;
  }

  .faq-item:hover {
    transform: none;
  }

  .blade-container {
    height: auto;
    flex-direction: column;
    padding: 0 24px;
  }

  .blade {
    min-height: 100px;
    flex: none;
    flex-direction: column;
  }

  .blade:hover,
  .blade.active,
  .blade:focus-visible {
    min-height: 400px;
    flex: none;
  }

  .blade-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-left: none;
    padding: 20px;
    writing-mode: horizontal-tb;
  }

  .blade-content {
    padding: 30px;
  }

  .goals .product-card {
    padding: 40px 24px;
  }

  .timeline {
    display: flex;
    overflow-x: auto;
  }

  .span-2,
  .submit-btn,
  .form-message {
    grid-column: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 48px;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 1500px) and (min-width: 901px) {
  .hero {
    padding-right: 80px;
    padding-left: 80px;
  }

  .hero-layout {
    gap: 64px;
  }

  .hero h1 {
    font-size: clamp(64px, 5.35vw, 88px);
  }

  .hero-content {
    flex: 1 1 742px;
  }

  .hero-stats {
    flex: 1 1 520px;
  }

  .faq {
    padding-right: 80px;
    padding-left: 80px;
  }

  .faq-item {
    grid-template-columns: 56px minmax(260px, 0.55fr) minmax(360px, 0.85fr);
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .section-header h2,
  .activity h2,
  .contact h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10.5vw, 3.1rem);
    word-break: keep-all;
  }

  .hero-description {
    font-size: 16px;
  }

  .product-visual {
    height: 240px;
  }

  .timeline {
    gap: 24px;
  }

  .timeline-item {
    min-width: 260px;
  }
}
