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

:root {
  --bg: #090c14;
  --bg-alt: #0f1424;
  --surface: #141a2e;
  --surface-2: #1a2138;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --text-dim: #9aa4bf;
  --text-faint: #626d8c;

  --primary: #3b6dff;
  --primary-light: #7c9bff;
  --accent: #ff5b35;
  --accent-light: #ff8a63;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.text-gradient {
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--primary), #5b8dff);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(59, 109, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -6px rgba(59, 109, 255, 0.7); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.07); }

.btn-ghost {
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 12, 20, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
}
.logo-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary-light);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.glow-1 {
  width: 560px; height: 560px;
  top: -180px; left: 50%;
  transform: translateX(-70%);
  background: radial-gradient(circle, rgba(59,109,255,0.55), transparent 70%);
}
.glow-2 {
  width: 460px; height: 460px;
  bottom: -160px; right: 10%;
  background: radial-gradient(circle, rgba(255,91,53,0.4), transparent 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats strong {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 13px; color: var(--text-faint); }

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  color: var(--text-faint);
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 100%; height: 100%; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================== Trust strip ===================== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.trust-item svg { width: 22px; height: 22px; color: var(--primary-light); flex-shrink: 0; }

/* ===================== Section shared ===================== */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.section-head h2, .why-copy h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-desc { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }

/* ===================== Categories ===================== */
.categories { max-width: var(--container); margin: 0 auto; padding: 140px 24px 120px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.category-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(59,109,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 155, 255, 0.35);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}
.category-card:hover::before { opacity: 1; }

.cat-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(124, 155, 255, 0.1);
  color: var(--primary-light);
  margin-bottom: 22px;
  position: relative;
}
.cat-icon svg { width: 26px; height: 26px; }

.category-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; position: relative; }
.category-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 22px; position: relative; }

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.cat-link i { font-style: normal; transition: transform 0.25s var(--ease); }
.category-card:hover .cat-link i { transform: translateX(4px); }

/* ===================== Why ===================== */
.why { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.why-copy .section-desc { margin-bottom: 32px; }

.why-cards { display: flex; flex-direction: column; gap: 16px; }
.why-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.why-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-light);
  flex-shrink: 0;
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ===================== CTA banner ===================== */
.cta-banner { padding: 120px 24px; }
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59,109,255,0.16), rgba(255,91,53,0.12));
  border: 1px solid rgba(124,155,255,0.25);
}
.cta-inner h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.cta-inner p { color: var(--text-dim); font-size: 15px; margin-bottom: 32px; }

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; font-weight: 700; letter-spacing: 0.5px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ===================== Reveal animation ===================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    background: rgba(9, 12, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn-ghost { display: none; }

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

@media (max-width: 560px) {
  .header-inner { padding: 0 18px; }
  .logo-text { font-size: 15px; }
  .category-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .hero { padding: 120px 20px 64px; }
  .hero-stats { gap: 28px; }
  .categories, .cta-banner, .why-inner { padding-top: 88px; padding-bottom: 88px; }
  .cta-inner { padding: 48px 24px; }
}

.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }
