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

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* ── CUSTOM PROPERTIES ── */
:root {
  --color-bg: #08070e;
  --color-bg-raised: #0f0e18;
  --color-bg-elevated: #161425;
  --color-bg-card: #1a1830;
  --color-surface: #222040;
  --color-border: #2e2b50;
  --color-border-light: #3d3a6b;

  --color-violet: #7c3aed;
  --color-violet-deep: #5b21b6;
  --color-blue: #38bdf8;
  --color-magenta: #e879f9;
  --color-magenta-neon: #ff2d98;

  --color-white: #ffffff;
  --color-text: #e2e0f0;
  --color-text-muted: #9896b0;
  --color-text-dim: #6b6888;

  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #38bdf8 50%, #e879f9 100%);
  --gradient-subtle: linear-gradient(135deg, #7c3aed 0%, #e879f9 100%);
  --gradient-card: linear-gradient(160deg, #1a1830 0%, #222040 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.25) 0%, transparent 70%),
                    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
                    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(232, 121, 249, 0.1) 0%, transparent 60%);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --fs-hero: clamp(2.8rem, 6vw + 1rem, 5.5rem);
  --fs-h1: clamp(2.2rem, 4vw + 0.5rem, 3.8rem);
  --fs-h2: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
  --fs-h3: clamp(1.3rem, 2vw + 0.3rem, 1.8rem);
  --fs-body: clamp(1rem, 0.8vw + 0.5rem, 1.125rem);
  --fs-small: clamp(0.8rem, 0.6vw + 0.3rem, 0.9rem);
  --fs-mono: clamp(0.75rem, 0.5vw + 0.3rem, 0.85rem);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --max-width: 1200px;
  --header-height: 64px;
  --radius: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── BODY & BASE ── */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
}

/* ── PAGE WRAPPER ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── HEADER / NAV ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 7, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.header__logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
  background: rgba(124, 58, 237, 0.15);
}

.nav__link--active {
  color: var(--color-blue);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__cta .btn-primary {
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--fs-small);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition-fast);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-4xl);
  text-align: center;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--color-blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero__visual {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.hero__gradient-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #7c3aed, #38bdf8, #e879f9, #7c3aed);
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.1),
    0 20px 60px -15px rgba(124, 58, 237, 0.3),
    0 0 120px -30px rgba(56, 189, 248, 0.15);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  max-width: 600px;
  margin: 0 auto;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--color-text-dim);
  margin-top: var(--space-xs);
}

/* ── SECTIONS ── */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--bordered {
  border-top: 1px solid var(--color-border);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.section__heading-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.2rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── EYEBROW / LABEL ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-magenta);
  margin-bottom: var(--space-md);
  display: inline-block;
}

.eyebrow--blue {
  color: var(--color-blue);
}

.eyebrow--violet {
  color: var(--color-violet);
}

/* ── BODY TEXT ── */
.body-text {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 720px;
}

.body-text + .body-text {
  margin-top: var(--space-lg);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-white);
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-border-light);
  color: var(--color-white);
  background: rgba(124, 58, 237, 0.08);
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-mono);
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

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

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

/* ── CARD ── */
.card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(124, 58, 237, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-violet);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card__text {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

/* ── IMAGE ── */
.image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.image--fluid {
  max-width: 100%;
}

/* ── CODE BLOCK ── */
.code-block {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-2xl);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.8;
  color: var(--color-text-muted);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

.code-block .keyword { color: var(--color-magenta); }
.code-block .string { color: var(--color-blue); }
.code-block .property { color: var(--color-violet); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4xl) 0;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-raised);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: var(--fs-small);
  color: var(--color-text-dim);
  line-height: 1.7;
}

.footer__column-title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-blue);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: var(--fs-mono);
  color: var(--color-text-dim);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-dim);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer__social:hover {
  border-color: var(--color-violet);
  color: var(--color-white);
}

/* ── MOBILE MENU OVERLAY ── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(8, 7, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.nav__mobile--open {
  display: flex;
}

.nav__mobile .nav__link {
  font-size: var(--fs-body);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .nav__list {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .hero__gradient-preview {
    aspect-ratio: 16 / 9;
  }

  .hero__stats {
    gap: var(--space-2xl);
  }

  .section {
    padding: var(--space-4xl) 0;
  }

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

  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header__inner {
    padding: 0 var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── SELECTION ── */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--color-white);
}
/* 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}
