@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ---------- PAGE / BODY ---------- */
:root {
  --indigo-deep: #3B1F8E;
  --indigo-mid: #5B3FBF;
  --indigo-light: #8B6FE0;
  --cyan: #00D4FF;
  --cyan-dim: #00B4D8;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --bg: #FAFBFF;
  --surface: #FFFFFF;
  --gray-50: #F7F8FC;
  --gray-100: #F0F1F5;
  --gray-200: #E2E4EA;
  --gray-300: #C8CCD6;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-800: #374151;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #7C7C9A;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(59, 31, 142, 0.06);
  --shadow-md: 0 4px 20px rgba(59, 31, 142, 0.08);
  --shadow-lg: 0 12px 40px rgba(59, 31, 142, 0.12);
  --shadow-cyan: 0 4px 24px rgba(0, 212, 255, 0.25);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.938rem, 0.9rem + 0.2vw, 1.063rem);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 2rem + 2.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }

p {
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  transition: color 0.2s ease;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.container--narrow {
  max-width: 860px;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--indigo-deep);
}

.header-brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.header-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: none;
}

.header-contact a {
  color: var(--indigo-mid);
  font-weight: 500;
}

.header-contact a:hover {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--indigo-deep);
  background: var(--gray-50);
}

.nav-links a.nav-cta {
  background: var(--indigo-deep);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

.nav-links a.nav-cta:hover {
  background: var(--indigo-mid);
  color: #fff;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- HERO ---------- */
.page-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  text-align: center;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-orb--1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(139, 111, 224, 0.5), transparent 70%);
  top: -15%;
  left: -10%;
}

.hero-bg-orb--2 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
  bottom: -10%;
  right: -8%;
}

.hero-bg-orb--3 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: radial-gradient(circle, rgba(139, 111, 224, 0.3), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo-mid);
  background: linear-gradient(135deg, rgba(91, 63, 191, 0.08), rgba(0, 212, 255, 0.08));
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(91, 63, 191, 0.12);
  margin-bottom: 1.5rem;
}

.hero-eyebrow svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo-mid) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.hero-image-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.938rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo-mid));
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 31, 142, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 31, 142, 0.4);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--indigo-deep);
  border: 1.5px solid var(--gray-200);
}

.btn--secondary:hover {
  border-color: var(--indigo-light);
  background: var(--gray-50);
  transform: translateY(-2px);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--indigo-deep);
  box-shadow: var(--shadow-cyan);
}

.btn--cyan:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.35);
  color: var(--indigo-deep);
}

.btn--ghost {
  color: var(--text-secondary);
  padding: 13px 16px;
}

.btn--ghost:hover {
  color: var(--indigo-deep);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

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

/* ---------- SECTIONS ---------- */
.section-wrapper {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section-wrapper--alt {
  background: var(--gray-50);
}

.section-wrapper--indigo {
  background: linear-gradient(160deg, var(--indigo-deep) 0%, #2A1570 100%);
  color: #fff;
}

.section-wrapper--indigo h2,
.section-wrapper--indigo h3,
.section-wrapper--indigo h4 {
  color: #fff;
}

.section-wrapper--indigo p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.section-heading {
  margin-bottom: 1rem;
}

.lead-paragraph {
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.body-text {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-dim);
  margin-bottom: 0.75rem;
}

/* ---------- CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.card--featured {
  background: linear-gradient(160deg, var(--indigo-deep), #2A1570);
  border-color: transparent;
  color: #fff;
}

.card--featured h3,
.card--featured h4 {
  color: #fff;
}

.card--featured p {
  color: rgba(255, 255, 255, 0.75);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-icon--indigo {
  background: linear-gradient(135deg, rgba(59, 31, 142, 0.1), rgba(91, 63, 191, 0.15));
  color: var(--indigo-deep);
}

.card-icon--cyan {
  background: var(--cyan-glow);
  color: var(--cyan-dim);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.card--featured .card-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* ---------- IMAGE ---------- */
.image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- STATS / METRICS ---------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--indigo-deep);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- LOGOS / TRUST BAR ---------- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 2rem 0;
  opacity: 0.5;
}

.trust-bar svg {
  height: 28px;
  width: auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(3rem, 5vw, 4.5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- CODE BLOCK ---------- */
.code-block {
  background: var(--text-primary);
  color: #E2E4EA;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}

.code-block .token-keyword {
  color: var(--cyan);
}

.code-block .token-string {
  color: #A78BFA;
}

.code-block .token-comment {
  color: var(--gray-400);
}

/* ---------- DIVIDER ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 0;
  border: none;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--cyan {
  background: var(--cyan-glow);
  color: var(--cyan-dim);
}

.badge--indigo {
  background: rgba(91, 63, 191, 0.1);
  color: var(--indigo-mid);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .header-contact {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    width: 100%;
    text-align: left;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .mobile-toggle {
    display: flex;
  }

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

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- ANIMATIONS ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.7; }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.pulse-anim {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(91, 63, 191, 0.2);
  color: var(--indigo-deep);
}

/* ---------- ICON GRID PREVIEW ---------- */
.icon-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.75rem;
}

.icon-preview-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-preview-cell:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  transform: scale(1.08);
}

.icon-preview-cell svg {
  width: 28px;
  height: 28px;
  color: var(--indigo-deep);
}

/* ---------- TOC / SIDEBAR ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-nav {
  position: sticky;
  top: 90px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.sidebar-nav h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-nav a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--indigo-deep);
  border-left-color: var(--cyan);
}

/* ---------- INLINE CODE ---------- */
code {
  font-family: 'SF Mono', 'Fira Code', var(--font-body);
  font-size: 0.88em;
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--indigo-mid);
  word-wrap: break-word;
}

/* ---------- TABLE ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- ALERT / NOTE ---------- */
.note {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.65;
  border-left: 3px solid;
}

.note--info {
  background: var(--cyan-glow);
  border-left-color: var(--cyan);
  color: var(--indigo-deep);
}

.note--tip {
  background: rgba(91, 63, 191, 0.06);
  border-left-color: var(--indigo-mid);
  color: var(--text-primary);
}
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
