/* ========== SHARED SITE STYLES ========== */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F8F7FB;
  --bg-deep: #0E0826;
  --bg-panel: #160C3D;
  --surface: #FFFFFF;
  --surface-2: #F4F2FA;
  --border: #E8E5F0;
  --border-strong: #D4D0E0;
  --text: #14101F;
  --text-muted: #5C5675;
  --text-faint: #8B85A3;
  --violet: #7C3AED;
  --violet-2: #A855F7;
  --cyan: #0891B2;
  --cyan-2: #22D3EE;
  --pink: #EC4899;
  --gold: #D97706;
  --green: #059669;
  --grad-1: linear-gradient(135deg, #7C3AED 0%, #0891B2 100%);
  --grad-2: linear-gradient(135deg, #EC4899 0%, #7C3AED 100%);
  --grad-3: linear-gradient(135deg, #0891B2 0%, #059669 100%);
  --grad-text: linear-gradient(135deg, #7C3AED 0%, #0891B2 100%);
  --grad-dark: linear-gradient(135deg, #160C3D 0%, #0E0826 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 200ms;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-1); color: white; box-shadow: 0 6px 20px rgba(124,58,237,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,0.4); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: white; border-color: var(--violet); transform: translateY(-2px); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: var(--violet); transform: translateY(-2px); }
.btn-light { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-light:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 300ms ease;
}
.nav.over-dark { background: transparent; }
.nav.over-dark .nav-logo-text-1 { color: white; }
.nav.over-dark .nav-link { color: rgba(255,255,255,0.85); }
.nav.over-dark .nav-link:hover { color: white; }
.nav.over-dark .lang-btn { color: rgba(255,255,255,0.85); }
.nav.over-dark .lang-switcher { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.nav.over-dark .nav-mobile-toggle { color: white; }
.nav.scrolled, .nav.solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}
.nav.scrolled .nav-logo-text-1, .nav.solid .nav-logo-text-1 { color: var(--text); }
.nav.scrolled .nav-link, .nav.solid .nav-link { color: var(--text-muted); }
.nav.scrolled .nav-link:hover, .nav.solid .nav-link:hover { color: var(--violet); }
.nav.scrolled .nav-link.active, .nav.solid .nav-link.active { color: var(--violet); background: rgba(124,58,237,0.08); }
.nav.scrolled .lang-btn, .nav.solid .lang-btn { color: var(--text-muted); }
.nav.scrolled .lang-switcher, .nav.solid .lang-switcher { background: var(--surface-2); border-color: var(--border); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text-1 { font-family: 'Inter'; font-weight: 900; font-size: 14px; letter-spacing: -0.02em; line-height: 1; transition: color 250ms; }
.nav-logo-text-2 { font-family: 'JetBrains Mono'; font-weight: 500; font-size: 9px; letter-spacing: 0.2em; color: #22D3EE; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 500;
  text-decoration: none; padding: 8px 12px;
  border-radius: 999px; transition: all 200ms;
}
.nav-link:hover { background: rgba(124,58,237,0.1); }
.nav.over-dark .nav-link:hover { background: rgba(255,255,255,0.12); }
.nav.over-dark .nav-link.active { background: rgba(255,255,255,0.18); color: white; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switcher {
  display: flex; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  transition: all 250ms;
}
.lang-btn {
  background: none; border: none;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: all 200ms;
  font-family: inherit; letter-spacing: 0.5px;
}
.lang-btn.active { background: var(--grad-1); color: white !important; }

.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--text);
}
.nav-mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  flex-direction: column; gap: 4px;
  z-index: 99;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link {
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.nav-mobile-menu .nav-link:hover, .nav-mobile-menu .nav-link.active { background: var(--surface-2); color: var(--violet); }

/* ===== Inner page hero (compact dark) ===== */
.page-hero {
  position: relative;
  background: var(--grad-dark);
  color: white;
  padding: 160px 40px 100px;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(168,85,247,0.3), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(34,211,238,0.22), transparent 60%);
  pointer-events: none;
}
.page-hero canvas { position: absolute; inset: 0; pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--cyan-2);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.page-hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan-2); }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: white;
  max-width: 900px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin-bottom: 30px;
}
.gradient-text {
  background: linear-gradient(135deg, #C4B8FF 0%, #7CF9FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent-text {
  background: linear-gradient(135deg, #F472B6 0%, #C4B8FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic; font-weight: 600;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 30px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: white; }
.breadcrumb i { width: 14px; height: 14px; }

/* ===== Section ===== */
.section {
  padding: 100px 40px;
  position: relative;
}
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--grad-dark); color: white; }
.section .container { max-width: 1280px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--violet);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--violet); }
.section.dark .eyebrow { color: var(--cyan-2); }
.section.dark .eyebrow::before { background: var(--cyan-2); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text);
}
.section.dark .section-title { color: white; }
.section-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; max-width: 720px; }
.section.dark .section-sub { color: rgba(255,255,255,0.75); }

/* ===== Card primitives ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 250ms;
  box-shadow: 0 4px 12px rgba(15, 8, 38, 0.04);
}
.card:hover { border-color: var(--violet); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(124,58,237,0.12); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet);
  margin-bottom: 18px;
}
.card-icon i { width: 22px; height: 22px; }
.card h3 { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14px; }

/* ===== Footer ===== */
footer { padding: 60px 40px 30px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-tagline { color: var(--text-muted); margin-top: 16px; max-width: 320px; font-size: 14px; }
.footer-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 200ms; }
.footer-col a:hover { color: var(--violet); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-faint); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 34px; height: 34px; background: white; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 200ms; text-decoration: none; }
.footer-socials a:hover { background: var(--grad-1); color: white; border-color: transparent; }
.footer-socials i { width: 16px; height: 16px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled, .nav.solid { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-right .btn { display: none; }
  .page-hero { padding: 120px 20px 70px; }
  .section { padding: 70px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
