@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600&display=swap');

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: hsl(220, 40%, 12%);
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Custom Properties ── */
:root {
  --color-navy: hsl(220, 40%, 12%);
  --color-navy-light: hsl(220, 25%, 28%);
  --color-blue: hsl(234, 68%, 52%);
  --color-blue-dark: hsl(234, 68%, 42%);
  --color-blue-light: hsl(234, 68%, 96%);
  --color-blue-subtle: hsl(234, 40%, 92%);
  --color-red: hsl(0, 72%, 56%);
  --color-red-light: hsl(0, 72%, 96%);
  --color-white: #ffffff;
  --color-gray-50: hsl(220, 30%, 97%);
  --color-gray-100: hsl(220, 20%, 94%);
  --color-gray-200: hsl(220, 15%, 88%);
  --color-gray-300: hsl(220, 12%, 78%);
  --color-gray-400: hsl(220, 10%, 55%);
  --color-gray-500: hsl(220, 8%, 42%);
  --color-gray-600: hsl(220, 6%, 32%);

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8.5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.04), 0 2px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 10px 25px rgba(10, 22, 40, 0.06), 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-xl: 0 20px 40px rgba(10, 22, 40, 0.08), 0 8px 30px rgba(10, 22, 40, 0.1);

  --container-max: 1200px;
  --header-height: 72px;
}

/* ── Layout Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--wide {
  max-width: 1400px;
}

/* ── Header / Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-brand__icon {
  width: 32px;
  height: 32px;
  color: var(--color-blue);
}

.site-brand__dot {
  color: var(--color-red);
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

.main-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.main-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-500);
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.main-nav__link:hover {
  color: var(--color-navy);
  background-color: var(--color-gray-50);
}

.main-nav__link--cta {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  margin-left: 0.75rem;
}

.main-nav__link--cta:hover {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-navy);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero Section ── */
.hero {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, hsla(234, 68%, 52%, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: var(--space-lg);
  background: var(--color-blue-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

.hero__eyebrow__dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-red);
  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-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero__title span {
  color: var(--color-blue);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-gray-500);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  font-weight: 400;
}

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

.hero__visual {
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero__visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.935rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 2px 8px hsla(234, 68%, 52%, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-blue-dark);
  box-shadow: 0 4px 16px hsla(234, 68%, 52%, 0.4);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-gray-200);
}

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

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.825rem;
}

.btn__arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ── Section ── */
.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

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

.section__header {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
}

.section__heading {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

.section__lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  color: var(--color-blue);
  margin-bottom: var(--space-md);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.925rem;
  color: var(--color-gray-500);
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  transition: gap 0.2s ease;
}

.card__link:hover {
  gap: 0.6rem;
}

/* ── Feature Row ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

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

.feature-row__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.feature-row__heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.feature-row__text p {
  font-size: 1rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.feature-row__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.feature-row__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-lg);
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.stats-bar__item {
  padding: var(--space-sm);
}

.stats-bar__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stats-bar__label {
  font-size: 0.85rem;
  color: hsl(220, 15%, 65%);
  font-weight: 500;
}

/* ── Code Block ── */
.code-block {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
  border: 1px solid hsl(220, 30%, 20%);
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: hsl(220, 15%, 78%);
  line-height: 1.8;
  white-space: pre;
}

.code-block .token--keyword { color: hsl(234, 68%, 68%); }
.code-block .token--string { color: hsl(140, 40%, 60%); }
.code-block .token--comment { color: hsl(220, 10%, 45%); }

/* ── Inline Code ── */
code, .inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-gray-100);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--color-red);
  font-weight: 500;
}

/* ── Footer ── */
.site-footer {
  background-color: var(--color-navy);
  color: hsl(220, 15%, 70%);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer__inner {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

.footer__brand {
  max-width: 280px;
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__brand-name__dot {
  color: var(--color-red);
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(220, 12%, 55%);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(220, 15%, 50%);
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.875rem;
  color: hsl(220, 12%, 60%);
  transition: color 0.2s ease;
}

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

.footer__bottom {
  border-top: 1px solid hsl(220, 25%, 22%);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: 0.8rem;
  color: hsl(220, 10%, 42%);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(220, 12%, 60%);
}

.footer__status-dot {
  width: 8px;
  height: 8px;
  background-color: hsl(145, 60%, 48%);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
    --space-xl: 2.5rem;
    --space-lg: 1.5rem;
  }

  .main-nav__list {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav.open .main-nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    gap: 0;
  }

  .main-nav.open .main-nav__link {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
  }

  .main-nav.open .main-nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-row--reverse {
    direction: ltr;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-lg);
  }

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

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

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--color-gray-500); }
.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-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 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}
