/* ============================================================
   Zaokit — Corporate Site
   Dark × Glow brand aesthetic. Minimal, premium, spacious.
   ============================================================ */

:root {
  /* canvas & surfaces */
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.55);
  --surface-2: rgba(39, 39, 42, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #71717a;

  /* brand */
  --v-300: #c4b5fd;
  --v-400: #a78bfa;
  --v-500: #8b5cf6;
  --v-600: #7c3aed;
  --indigo: #6366f1;
  --fuchsia: #d946ef;
  --pink: #ec4899;
  --amber: #fcd34d;

  /* layout */
  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--v-600); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Background aurora
   ============================================================ */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
  will-change: transform;
}
.aurora-1 {
  width: 620px; height: 620px; top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora-2 {
  width: 560px; height: 560px; top: -120px; right: -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.42), transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}
.aurora-3 {
  width: 520px; height: 520px; top: 40%; left: 35%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.22), transparent 70%);
  animation: drift3 30s ease-in-out infinite;
}
.grid-veil {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift1 { 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-50px, 60px) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(40px, -50px) scale(1.12); } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 11, 0.8);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: inline-flex; filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.45)); }
.brand-text {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c4b5fd 60%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav .nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
  display: inline-block; padding: 8px 14px; font-size: 14.5px; color: var(--text-3);
  border-radius: 10px; transition: color 0.25s, background 0.25s;
}
.nav-links > li > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.lang-switch {
  margin-left: 8px; padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-2); border: 1px solid var(--border); border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.lang-switch:hover { color: #fff; border-color: var(--v-500); background: rgba(139, 92, 246, 0.12); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: 0.3s var(--ease); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-size: 15px; font-weight: 500; border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff; position: relative;
  background: linear-gradient(110deg, var(--v-500), var(--pink) 55%, var(--v-600));
  background-size: 200% auto;
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: gradient-x 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(236, 72, 153, 0.6); }
.btn-ghost {
  color: var(--text-2); border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { color: #fff; border-color: var(--v-400); background: rgba(139, 92, 246, 0.08); transform: translateY(-2px); }
@keyframes gradient-x { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(80px, 16vh, 170px) 0 clamp(70px, 10vh, 120px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 28px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--v-300);
  border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(8px);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--v-400); box-shadow: 0 0 10px var(--v-400); }

.hero-title {
  font-size: clamp(40px, 7vw, 76px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 26px;
}
.shimmer {
  background: linear-gradient(110deg, var(--v-400), var(--fuchsia) 45%, var(--amber));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-x 5s ease infinite;
}
.hero-sub {
  max-width: 660px; font-size: clamp(16px, 2vw, 19px); color: var(--text-3);
  line-height: 1.7; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.hero-stats {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: 22px 34px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(14px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat b {
  font-size: clamp(20px, 3vw, 26px); font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: var(--text-4); }
.stat-sep { width: 1px; height: 34px; background: var(--border-strong); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(70px, 11vh, 130px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(44px, 6vh, 72px); text-align: center; }
.section-kicker {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--v-400); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 46px); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.section-desc { font-size: clamp(15px, 1.8vw, 18px); color: var(--text-3); line-height: 1.7; }

/* ============================================================
   Product grid
   ============================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.product-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 34px 32px 30px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 30px 60px -24px var(--accent-shadow);
}
.pc-glow {
  position: absolute; top: -40%; right: -20%; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease); z-index: -1; filter: blur(20px);
}
.product-card:hover .pc-glow { opacity: 1; }

.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pc-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  font-size: 20px; border-radius: 13px; color: #fff;
  background: var(--accent-grad); box-shadow: 0 8px 22px -6px var(--accent-shadow);
}
.pc-tag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--accent-text);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}
.pc-name { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.pc-desc { font-size: 15px; color: var(--text-3); line-height: 1.65; margin-bottom: 24px; }
.pc-link {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 14px; color: var(--text-2); transition: gap 0.3s var(--ease), color 0.3s;
}
.pc-link i { font-style: normal; transition: transform 0.3s var(--ease); }
.product-card:hover .pc-link { color: var(--accent-text); }
.product-card:hover .pc-link i { transform: translateX(4px); }

/* accent themes */
[data-accent="violet"] {
  --accent-grad: linear-gradient(135deg, #8b5cf6, #ec4899);
  --accent-glow: rgba(139, 92, 246, 0.4); --accent-shadow: rgba(139, 92, 246, 0.5);
  --accent-border: rgba(167, 139, 250, 0.4); --accent-soft: rgba(139, 92, 246, 0.1); --accent-text: #c4b5fd;
}
[data-accent="indigo"] {
  --accent-grad: linear-gradient(135deg, #6366f1, #06b6d4);
  --accent-glow: rgba(99, 102, 241, 0.4); --accent-shadow: rgba(99, 102, 241, 0.5);
  --accent-border: rgba(129, 140, 248, 0.4); --accent-soft: rgba(99, 102, 241, 0.1); --accent-text: #a5b4fc;
}
[data-accent="amber"] {
  --accent-grad: linear-gradient(135deg, #f59e0b, #f97316);
  --accent-glow: rgba(245, 158, 11, 0.36); --accent-shadow: rgba(245, 158, 11, 0.45);
  --accent-border: rgba(251, 191, 36, 0.4); --accent-soft: rgba(245, 158, 11, 0.1); --accent-text: #fcd34d;
}
[data-accent="emerald"] {
  --accent-grad: linear-gradient(135deg, #10b981, #14b8a6);
  --accent-glow: rgba(16, 185, 129, 0.36); --accent-shadow: rgba(16, 185, 129, 0.45);
  --accent-border: rgba(52, 211, 153, 0.4); --accent-soft: rgba(16, 185, 129, 0.1); --accent-text: #6ee7b7;
}

/* ============================================================
   Capabilities
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-item {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cap-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.cap-num {
  font-family: var(--mono); font-size: 13px; color: var(--v-400);
  display: block; margin-bottom: 18px; letter-spacing: 0.05em;
}
.cap-item h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.cap-item p { font-size: 14px; color: var(--text-3); line-height: 1.65; }

/* ============================================================
   About
   ============================================================ */
.about-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.about-text .section-kicker { margin-bottom: 14px; }
.about-text .section-title { text-align: left; margin-bottom: 22px; }
.about-text p { font-size: 16px; color: var(--text-3); line-height: 1.8; margin-bottom: 16px; max-width: 56ch; }
.about-quote {
  padding: 40px 36px; border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.04));
  backdrop-filter: blur(14px);
}
.about-quote blockquote {
  font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.4; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.quote-by { font-size: 14px; color: var(--text-4); }

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 80px) 32px; border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(24, 24, 27, 0.8), rgba(17, 17, 20, 0.6));
  backdrop-filter: blur(18px);
}
.cta-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 25% 0%, rgba(139, 92, 246, 0.25), transparent 55%),
    radial-gradient(circle at 80% 110%, rgba(236, 72, 153, 0.2), transparent 55%);
}
.cta-card h2 {
  font-size: clamp(26px, 4vw, 42px); font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 16px; line-height: 1.15;
}
.cta-card p { font-size: clamp(15px, 1.8vw, 18px); color: var(--text-3); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-primary { font-family: var(--mono); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag { font-size: 14px; color: var(--text-4); max-width: 240px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-4); padding: 5px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--v-300); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-4); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.product-grid .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.product-grid .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.product-grid .reveal.in:nth-child(4) { transition-delay: 0.24s; }
.cap-grid .reveal.in:nth-child(2) { transition-delay: 0.06s; }
.cap-grid .reveal.in:nth-child(3) { transition-delay: 0.12s; }
.cap-grid .reveal.in:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-text .section-title { text-align: left; }
}

@media (max-width: 680px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; padding: 16px 24px 24px;
    background: rgba(9, 9, 11, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); opacity: 0; pointer-events: none;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links > li > a { display: block; padding: 12px 14px; }
  .lang-switch { margin: 8px 0 0; width: 100%; }
  .hero-stats { flex-direction: column; gap: 18px; width: 100%; }
  .stat-sep { width: 60%; height: 1px; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 36px; }
}
