/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:   #03c1ff;
  --secondary: #b806d2;
  --gradient:  linear-gradient(135deg, #03c1ff 0%, #b806d2 100%);
  --dark:      #07070e;
  --dark2:     #0f0f1a;
  --white:     #ffffff;
  --gray-bg:   #f6f7fb;
  --text:      #111827;
  --text-muted:#6b7280;
  --border:    rgba(0,0,0,0.08);
  --radius:    20px;
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
#header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.lang-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.lang-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 60px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-a {
  width: 600px; height: 600px;
  background: rgba(3, 193, 255, 0.18);
  top: -120px; left: -100px;
}
.orb-b {
  width: 500px; height: 500px;
  background: rgba(184, 6, 210, 0.18);
  bottom: -80px; right: -80px;
}
.orb-c {
  width: 700px; height: 700px;
  background: rgba(3, 193, 255, 0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTON ── */
.btn-gradient {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .3px;
  transition: transform .25s, opacity .25s, box-shadow .25s;
  box-shadow: 0 8px 28px rgba(3,193,255,0.25);
}
.btn-gradient:hover {
  transform: translateY(-3px);
  opacity: .9;
  box-shadow: 0 14px 36px rgba(3,193,255,0.35);
}

/* ── SHARED SECTION ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section:not(#hero):not(#contact) h2,
#contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.5px;
}
#contact h2 { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 64px;
}

/* ── PRODUCTS ── */
#products {
  padding: 120px 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Center last row of 2 in 3-col grid */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .product-card:nth-child(1) { grid-column: 1 / 3; }
  .product-card:nth-child(2) { grid-column: 3 / 5; }
  .product-card:nth-child(3) { grid-column: 5 / 7; }
  .product-card:nth-child(4) { grid-column: 2 / 4; }
  .product-card:nth-child(5) { grid-column: 4 / 6; }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.p-demo {
  width: calc(100% + 64px);
  margin: -32px -32px 28px -32px;
  height: 180px;
  background: linear-gradient(135deg, rgba(3,193,255,0.08), rgba(184,6,210,0.08));
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.p-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.p-demo span {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .3px;
}

.p-demo img ~ span { display: none; }

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.09);
}
.product-card:hover::after { opacity: 1; }

.p-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3,193,255,0.1), rgba(184,6,210,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
}

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.product-card p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(3,193,255,0.1), rgba(184,6,210,0.08));
  color: var(--primary);
  border: 1px solid rgba(3,193,255,0.2);
}

/* ── ABOUT ── */
#about {
  padding: 120px 0;
  background: var(--gray-bg);
}

.about-desc {
  max-width: 720px;
  margin: 24px auto 64px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-n {
  display: block;
  font-size: 3.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-l {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .3px;
}

.stat-div {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── CONTACT ── */
#contact {
  padding: 120px 0;
  background: var(--dark2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

#contact p {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  margin: 16px auto 44px;
  max-width: 440px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 32px;
}

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

footer p {
  color: rgba(255,255,255,0.3);
  font-size: .82rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  #hero { padding: 80px 20px 60px; }
  #products, #about, #contact { padding: 80px 0; }

  .products-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; max-width: none; }

  .stats-row { gap: 32px; }
  .stat-div { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}
