/* K-Pop Theme — MantleKit */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --bg: oklch(0.08 0.02 120);
  --fg: oklch(0.95 0.01 120);
  --primary: #cfff11;
  --accent: oklch(0.70 0.20 330);
  --card-bg: oklch(0.12 0.02 120);
  --muted: oklch(0.55 0.05 120);
  --secondary-bg: oklch(0.18 0.03 120);
  --radius: 0px;
  --max-w: 1280px;
}

html {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  height: 4.5rem;
  border-bottom: 8px solid var(--primary);
  background: var(--bg);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar__links a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--primary);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Main ────────────────────────────────────────────── */
main {
  flex: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* ── Typography ──────────────────────────────────────── */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.btn--primary:hover {
  background: oklch(0.90 0.20 120);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}

.btn--accent:hover {
  filter: brightness(1.15);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 6px solid var(--primary);
  padding: 1.5rem;
  transition: transform 0.15s;
}

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

/* ── Grid Utilities ──────────────────────────────────── */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ── Stats Bar ───────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--secondary-bg);
  border-bottom: 1px solid var(--secondary-bg);
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── Feature Icon ────────────────────────────────────── */
.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card__title {
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Hero Eyebrow ───────────────────────────────────── */
.hero__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Section Eyebrow ────────────────────────────────── */
.section__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ── Logo Bar ───────────────────────────────────────── */
.logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-bar span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* ── Split Layout ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__text .section__eyebrow {
  text-align: left;
}

/* ── Check List ─────────────────────────────────────── */
.check-list {
  list-style: none;
}

.check-list li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--fg);
}

.check-list li::before {
  content: '\2713';
  color: var(--primary);
  margin-right: 0.75rem;
  font-weight: 700;
}

/* ── Code Block ─────────────────────────────────────── */
.code-block {
  background: oklch(0.06 0.015 120);
  border-left: 6px solid var(--primary);
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: oklch(0.10 0.02 120);
  border-bottom: 1px solid var(--secondary-bg);
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.code-block__filename {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: auto;
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg);
}

.code-kw { color: var(--accent); }
.code-str { color: var(--primary); }
.code-val { color: oklch(0.75 0.15 150); }

/* ── Showcase (rave image) ──────────────────────────── */
.showcase {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.showcase__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.showcase__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.showcase__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      oklch(0.08 0.02 120) 0%,
      oklch(0.08 0.02 120 / 85%) 15%,
      oklch(0.08 0.02 120 / 60%) 40%,
      oklch(0.08 0.02 120 / 60%) 60%,
      oklch(0.08 0.02 120 / 85%) 85%,
      oklch(0.08 0.02 120) 100%
    );
}

.showcase__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.showcase__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.showcase__card {
  background: oklch(0.08 0.02 120 / 80%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 6px solid var(--primary);
  padding: 1.5rem;
  text-align: left;
}

.showcase__card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.showcase__card h4 {
  margin-bottom: 0.5rem;
}

.showcase__card p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Testimonials ───────────────────────────────────── */
.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial__text {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  background: var(--secondary-bg);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.testimonial__name {
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial__role {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── CTA Section ─────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 4rem 0;
  background: var(--secondary-bg);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Blog Cards ──────────────────────────────────────── */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-card__date {
  color: var(--muted);
  font-size: 0.75rem;
}

.blog-card__tag {
  background: var(--primary);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
}

.blog-card__excerpt {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-left: 6px solid var(--primary);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-left-color: var(--accent);
  position: relative;
}

.pricing-card--featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
}

.pricing-card__name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pricing-card__period {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card__features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--secondary-bg);
}

.pricing-card__features li::before {
  content: '\2713';
  color: var(--primary);
  margin-right: 0.75rem;
  font-weight: 700;
}

/* ── About ───────────────────────────────────────────── */
.about-story {
  max-width: 700px;
}

.about-story p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.team-card {
  background: var(--card-bg);
  border-left: 6px solid var(--primary);
  padding: 1.5rem;
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  background: var(--secondary-bg);
  border: 2px solid var(--primary);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted);
}

.team-card__name {
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--accent);
  font-size: 0.8rem;
}

.mission {
  background: var(--secondary-bg);
  padding: 3rem;
  margin-top: 3rem;
  border-left: 6px solid var(--accent);
}

.mission p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--secondary-bg);
  border: 1px solid oklch(0.25 0.02 120);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.sidebar-card {
  background: var(--card-bg);
  border-left: 6px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.sidebar-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-left: 6px solid var(--primary);
  margin-bottom: 1rem;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── KB ──────────────────────────────────────────────── */
.search-bar {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--card-bg);
  border: 2px solid oklch(0.25 0.02 120);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
}

.kb-category {
  margin-bottom: 2.5rem;
}

.kb-category__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--secondary-bg);
}

.kb-card__title {
  margin-bottom: 0.25rem;
}

.kb-card__desc {
  color: var(--muted);
  font-size: 0.8rem;
}

.kb-card__arrow {
  color: var(--primary);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  display: inline-block;
  transition: transform 0.15s;
}

.card:hover .kb-card__arrow {
  transform: translateX(4px);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 8px solid var(--primary);
  background: var(--bg);
  padding: 2rem 0;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── Theme Switcher ──────────────────────────────────── */
.theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
}

.theme-switcher__btn {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.theme-switcher__btn:hover {
  background: var(--primary);
  color: var(--bg);
}

.theme-switcher__menu {
  display: none;
  position: absolute;
  bottom: 52px;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  min-width: 160px;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

.theme-switcher__menu.open {
  display: block;
}

.theme-switcher__menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.theme-switcher__menu a:hover {
  color: var(--primary);
  background: var(--secondary-bg);
}

.theme-switcher__menu a.current {
  color: var(--primary);
  font-weight: 700;
}

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--secondary-bg);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
}

.page-header p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: calc(4.5rem + 8px);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--primary);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__toggle {
    display: block;
  }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .stats-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .logo-bar {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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