:root {
  --bg: #050508;
  --fg: #f0f0f5;
  --muted: #8b8fa3;
  --line: rgba(255, 255, 255, 0.06);
  --line-bright: rgba(255, 255, 255, 0.12);
  --glass: rgba(12, 12, 18, 0.72);
  --accent: #6366f1;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --glow: rgba(99, 102, 241, 0.35);
  --pad: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

html:not([data-i18n-ready]) body {
  visibility: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ── Global background ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(168, 85, 247, 0.06) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: left 0.4s ease, top 0.4s ease;
  will-change: left, top;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb--1 {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, #4338ca 0%, transparent 70%);
  top: -20vmax;
  left: -10vmax;
}

.orb--2 {
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, #be185d 0%, transparent 70%);
  top: 10vmax;
  right: -15vmax;
  animation-delay: -8s;
  animation-direction: alternate-reverse;
}

.orb--3 {
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  bottom: -10vmax;
  left: 30vmax;
  animation-delay: -14s;
}

@keyframes orbFloat {
  to {
    transform: translate(5vmax, 8vmax) scale(1.08);
  }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(760px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 18px;
  background: rgba(10, 10, 16, 0.65);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.footer-brand {
  display: inline-flex;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background-color:white;
}

.brand-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.95;
}

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

.nav-links a,
.footer-links a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
}

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

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 8px 16px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px var(--glow);
}

.nav-cta:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--fg);
}

.lang-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.spacer {
  height: calc(72px + var(--safe-top));
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--pad) 80px;
  overflow: clip;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 14ch;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #c4b5fd 35%,
    #67e8f9 65%,
    #fda4af 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.stat-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #eef2ff;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 8px 32px var(--glow);
}

.btn--primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-bright);
  color: var(--fg);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Orbit ring */
.orbit-wrap {
  position: relative;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.orbit-ring--inner {
  inset: 18%;
  border-style: solid;
  border-color: rgba(99, 102, 241, 0.15);
}

.orbit-center,
.orbit-chip,
.product-icon {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #16161f, #0a0a10);
  display: grid;
  place-items: center;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 0 60px var(--glow), 0 0 120px rgba(168, 85, 247, 0.2);
  z-index: 2;
}

.orbit-center img {
  width: 52%;
  object-fit: contain;
}

.orbit-chip {
  --s: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: center center;
  transition: box-shadow 0.3s;
}

.orbit-chip:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.orbit-chip img,
.product-icon img {
  width: 58%;
  object-fit: contain;
}

.orbit-chip img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── Stats bar ── */
.stats {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat-label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Marquee ── */
.marquee-section {
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  white-space: nowrap;
}

.marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.marquee-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Sections ── */
.section {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.4),
    transparent 40%,
    transparent 60%,
    rgba(168, 85, 247, 0.3)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(99, 102, 241, 0.08);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

.bento-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-icon {
  --s: 44px;
  width: var(--s);
  height: var(--s);
  border-radius: 13px;
  flex-shrink: 0;
}

.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent3);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.bento-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bento-actions .btn {
  padding: 10px 18px;
  font-size: 0.84rem;
}

.bento-visual {
  position: relative;
  background: #080810;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.bento-card:not(.bento-card--featured) .bento-visual {
  border-left: none;
  border-top: 1px solid var(--line);
  aspect-ratio: 16/9;
}

.bento-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.5s;
}

.bento-card:hover .bento-visual img {
  opacity: 1;
  transform: scale(1.03);
}

.bento-card--featured .bento-visual {
  min-height: 280px;
}

.bento-card--featured .bento-visual img {
  object-fit: contain;
  padding: 16px;
}

/* ── About ── */
.about-block {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(12, 12, 18, 0.9) 50%,
    rgba(168, 85, 247, 0.06) 100%
  );
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.about-block::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(99, 102, 241, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.about-block .section-title {
  position: relative;
}

.about-block .section-desc {
  position: relative;
  font-size: clamp(16px, 2vw, 18px);
}

.about-quote {
  position: relative;
  margin-top: 32px;
  padding: 24px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: rgba(0, 0, 0, 0.3);
  font-style: italic;
  color: #c4c8d4;
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 2;
  padding: 48px 0 calc(48px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #5a5e6e;
}

.footer-copy a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--accent3);
}

/* ── Reveal (below-fold only; hero uses GSAP) ── */
.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  :root {
    --pad: 18px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .bento-card,
  .bento-card--featured {
    grid-column: span 12;
  }

  .bento-card--featured {
    grid-template-columns: 1fr;
  }

  .bento-card--featured .bento-visual {
    border-left: none;
    border-top: 1px solid var(--line);
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 14px;
  }

  nav {
    top: calc(8px + var(--safe-top));
    padding: 8px 8px 8px 14px;
  }

  .nav-links a.nav-link:not(.nav-cta) {
    display: none;
  }

  .spacer {
    height: calc(64px + var(--safe-top));
  }

  .orbit-chip {
    --s: 38px;
  }

  .orbit-center {
    width: 56px;
    height: 56px;
  }

  .orbit-center img {
    width: 58%;
  }

  .stat {
    padding: 20px 12px;
  }

  .bento-body {
    padding: 20px;
  }
}

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

  .reveal {
    opacity: 1;
  }
}
