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

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.header-topbar {
  background: #0f172a;
  padding: 8px 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-topbar__contact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-topbar__contact a {
  color: #94a3b8;
}

.header-topbar__contact a:hover {
  color: #10b981;
}

.header-topbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-topbar__links a {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.header-topbar__links a:hover {
  color: #10b981;
}

.header-main {
  padding: 16px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: #0f172a;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.5px;
}

.header-logo span {
  color: #10b981;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.header-nav a.active {
  color: #10b981;
  background: #ecfdf5;
}

.header-cta {
  flex-shrink: 0;
}

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

.header-mobile-toggle:hover {
  background: #f1f5f9;
}

.header-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  border-color: #e2e8f0;
}

.btn-secondary:hover {
  border-color: #10b981;
  color: #10b981;
  background: #f0fdf4;
}

.btn-ghost {
  background: transparent;
  color: #10b981;
  padding: 12px 16px;
}

.btn-ghost:hover {
  background: #ecfdf5;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ========== HERO ========== */
.hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 96px);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid #d1fae5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__eyebrow svg {
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__title .highlight {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__preview {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.hero__preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.hero__preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero__preview-dot--red { background: #ef4444; }
.hero__preview-dot--yellow { background: #eab308; }
.hero__preview-dot--green { background: #10b981; }

.hero__preview-title {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.hero__preview-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  line-height: 1.8;
  color: #e2e8f0;
  min-height: 180px;
  overflow-x: auto;
}

.hero__preview-body .code-line {
  display: block;
  white-space: pre;
}

.hero__preview-body .token-comment { color: #64748b; }
.hero__preview-body .token-keyword { color: #c084fc; }
.hero__preview-body .token-string { color: #10b981; }
.hero__preview-body .token-function { color: #60a5fa; }
.hero__preview-body .token-operator { color: #94a3b8; }
.hero__preview-body .token-match { color: #fbbf24; }
.hero__preview-body .token-regex { color: #fb923c; }

/* ========== SECTIONS ========== */
.section {
  padding: clamp(48px, 6vw, 96px) 0;
}

.section--gray {
  background: #f8fafc;
}

.section--dark {
  background: #0f172a;
  color: #e2e8f0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section--dark .section__heading {
  color: #ffffff;
}

.section__lead {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: #64748b;
  line-height: 1.7;
}

.section--dark .section__lead {
  color: #94a3b8;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card__icon--green {
  background: #ecfdf5;
  color: #10b981;
}

.card__icon--navy {
  background: #f1f5f9;
  color: #1e293b;
}

.card__icon--purple {
  background: #f3e8ff;
  color: #8b5cf6;
}

.card__icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.card__icon--rose {
  background: #fff1f2;
  color: #e11d48;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
  transition: gap 0.2s ease;
}

.card__link:hover {
  gap: 10px;
}

/* Dark cards */
.section--dark .card {
  background: #1e293b;
  border-color: #334155;
}

.section--dark .card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.section--dark .card__title {
  color: #f1f5f9;
}

.section--dark .card__text {
  color: #94a3b8;
}

/* ========== CODE BLOCK ========== */
.code-block {
  background: #0f172a;
  border-radius: 12px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #e2e8f0;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.code-block .token-comment { color: #64748b; }
.code-block .token-keyword { color: #c084fc; }
.code-block .token-string { color: #10b981; }
.code-block .token-function { color: #60a5fa; }
.code-block .token-operator { color: #94a3b8; }
.code-block .token-regex { color: #fb923c; }

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #10b981;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: clamp(48px, 6vw, 96px) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section__text {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ========== IMAGE ========== */
.image {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}

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

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  background: #e2e8f0;
  border: none;
  margin: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-top {
  padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}

.footer-brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand__name .header-logo__icon {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.footer-brand__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-brand__social {
  display: flex;
  gap: 12px;
}

.footer-brand__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.footer-brand__social a:hover {
  background: #10b981;
  color: #ffffff;
}

.footer-column__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-column__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column__links a {
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.footer-column__links a:hover {
  color: #10b981;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: #475569;
}

.footer-bottom__links {
  display: flex;
  gap: 24px;
}

.footer-bottom__links a {
  font-size: 0.8125rem;
  color: #475569;
}

.footer-bottom__links a:hover {
  color: #10b981;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-topbar {
    display: none;
  }

  .header-main .container {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 16px 0 0;
    gap: 0;
  }

  .header-nav.open {
    display: flex;
  }

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

  .header-cta {
    display: none;
  }

  .header-mobile-toggle {
    display: flex;
  }

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

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

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

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

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

  .card {
    padding: 24px;
  }

  .hero__preview-body {
    padding: 16px;
    font-size: 0.6875rem;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-green { color: #10b981; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #0f172a;
}
/* 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}
