:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #10141b;
  --panel-2: #151b24;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f7fb;
  --muted: #9aa7b8;
  --soft: #647286;
  --cyan: #5ee7ff;
  --green: #62f2a4;
  --amber: #f7c873;
  --coral: #ff7f6e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.desktop-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(94, 231, 255, 0.12), transparent 28rem),
    linear-gradient(120deg, transparent 0 45%, rgba(98, 242, 164, 0.05) 45% 46%, transparent 46% 100%);
  opacity: 0.8;
}

.app-shell {
  position: relative;
  width: min(100vw, 390px);
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 28px;
  overflow: hidden;
  background: rgba(7, 9, 12, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
  isolation: isolate;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 16px;
  backdrop-filter: blur(18px);
}

.brand-mark,
.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 27, 0.82);
}

.brand-mark {
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: #dfeaf5;
  font-size: 13px;
  font-weight: 800;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(98, 242, 164, 0.9);
}

.topbar-cta {
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.screen-panel,
.section-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 27, 36, 0.92), rgba(10, 13, 18, 0.92));
}

.hero {
  position: relative;
  min-height: 620px;
  padding: 18px;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.76;
}

#labCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0, rgba(94, 231, 255, 0.12) 48%, transparent 55%);
  transform: translateY(-80%);
  animation: scan 5.5s linear infinite;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(94, 231, 255, 0.08), transparent 46%),
    linear-gradient(180deg, transparent 0%, rgba(7, 9, 12, 0.66) 52%, rgba(7, 9, 12, 0.9) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow,
.section-kicker,
.modal-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(42px, 12.9vw, 52px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-title {
  position: relative;
  display: grid;
  gap: 2px;
  perspective: 900px;
}

.hero-title::before {
  content: none;
}

.hero-title span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.hero-title span:nth-child(4) {
  color: #d9fbff;
  text-shadow: 0 0 24px rgba(94, 231, 255, 0.18);
}

.hero-text {
  display: grid;
  gap: 3px;
  max-width: 31ch;
  margin-bottom: 0;
  word-break: keep-all;
}

.hero-text span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.contact-section p,
.strength-card p,
.delivery-card p,
.process-list p,
.detail-grid p,
.flow-box li,
#modalSummary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.hero-actions,
.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.contact-actions {
  grid-template-columns: 1fr;
}

.hero-availability {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(9, 13, 18, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-availability span,
.hero-availability strong {
  display: block;
}

.availability-label {
  color: #85f4b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.95;
  text-transform: uppercase;
}

.hero-availability strong {
  color: #eef7ff;
  font-size: 13px;
  line-height: 1.25;
}

.availability-note {
  color: #9aa7b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  overflow: hidden;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid rgba(94, 231, 255, 0.7);
  background: #e9fbff;
  color: #061016;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.section-block {
  margin-top: 12px;
  padding: 22px 18px;
}

.capability-section {
  padding-bottom: 30px;
}

.build-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0 2px;
}

.build-strip span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #c7d2df;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 22px;
}

.capability-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0;
  min-height: 168px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent), transparent 76%), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 42%, transparent 80%),
    var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform, opacity;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 26%), rgba(255, 255, 255, 0.08) 32%, transparent 74%);
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -28%;
  bottom: -42%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 72%), transparent 68%);
  opacity: 0.42;
  pointer-events: none;
  transform: scale(0.88);
  transition: opacity 220ms ease, transform 220ms ease;
}

.capability-card:hover::after,
.capability-card:focus-visible::after {
  opacity: 0.7;
  transform: scale(1);
}

.capability-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-meta span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 48%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 92%);
  color: var(--accent);
  font-style: normal;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 82%);
}

.capability-card h3 {
  max-width: 15ch;
  margin-bottom: 10px;
}

.capability-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-facts {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.card-facts span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #c8d5e5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.card-action {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 92%);
  color: #eef7ff;
  font-size: 12px;
  font-weight: 800;
}

.card-action::after {
  content: "↗";
  color: var(--accent);
  font-size: 12px;
}

.strength-stack {
  display: grid;
  gap: 10px;
}

.delivery-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.strength-card,
.delivery-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.strength-card span,
.delivery-card span,
.process-list span,
.detail-grid span,
.flow-box span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding: 15px 15px 15px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.process-list li span {
  position: absolute;
  top: 15px;
  left: 15px;
  margin: 0;
  color: var(--green);
}

.process-list strong {
  display: block;
  margin-bottom: 4px;
}

.process-list p {
  margin-bottom: 0;
}

.contact-section {
  margin-top: 12px;
  padding: 24px 18px 28px;
}

.contact-prompt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.contact-prompt span {
  min-height: 38px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce7f2;
  font-size: 12px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.detail-panel {
  width: min(100%, 480px);
  max-height: 92vh;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px 12px 8px 8px;
  background: #0d1118;
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
}

.modal-backdrop.is-open .detail-panel {
  animation: panelIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.gsap-ready .modal-backdrop.is-open .detail-panel {
  animation: none;
}

.close-button {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.close-button span {
  position: absolute;
  top: 19px;
  left: 10px;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.close-button span:first-child {
  transform: rotate(45deg);
}

.close-button span:last-child {
  transform: rotate(-45deg);
}

.demo-screen {
  min-height: 168px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 68%);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent), transparent 76%), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    #111720;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-window {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}

.preview-topbar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 12%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent), transparent 50%);
}

.preview-topbar span:nth-child(2),
.preview-topbar span:nth-child(3) {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.preview-topbar strong {
  margin-left: auto;
  color: #cbd6e4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-stage {
  display: grid;
  gap: 8px;
}

.preview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 9, 12, 0.38);
}

.preview-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.preview-card b {
  color: #eff6ff;
  font-size: 12px;
  line-height: 1.25;
}

.preview-card i {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aebdce;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.preview-status {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 8px;
}

.preview-status span {
  min-height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 12%), rgba(255, 255, 255, 0.08));
}

.preview-status span:nth-child(2) {
  opacity: 0.55;
}

.preview-status span:nth-child(3) {
  opacity: 0.78;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-grid div,
.flow-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.detail-grid p {
  margin: 0;
}

.flow-box {
  margin-top: 10px;
}

.flow-box ol {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.flow-box li {
  padding-left: 4px;
}

.gsap-ready .reveal {
  transition: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease, clip-path 700ms ease;
}

.reveal[data-motion="stack"] {
  clip-path: inset(12% 0 0 0 round 8px);
}

.reveal[data-motion="slide"] {
  transform: translateX(28px);
}

.reveal[data-motion="tilt"] {
  transform: perspective(800px) rotateX(10deg) translateY(28px);
}

.reveal[data-motion="process"] {
  transform: translateX(-18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 8px);
}

.hero.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 8px);
}

.magnetic:hover,
.capability-card:hover {
  transform: translateY(-2px);
}

@keyframes scan {
  to {
    transform: translateY(120%);
  }
}

@keyframes panelIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
