/* Progress Telerik–inspired palette (course branding #2E75B6) */
:root {
  --brand: #2e75b6;
  --brand-dark: #1e4d7a;
  --brand-soft: #ebf3fb;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #5b9bd5);
  box-shadow: 0 4px 12px rgba(46, 117, 182, 0.35);
}

.logo-text strong {
  color: var(--brand);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

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

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% -20%, rgba(46, 117, 182, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(91, 155, 213, 0.15), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

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

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4a8cc8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 117, 182, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 10px 28px rgba(46, 117, 182, 0.45);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.hero-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.85;
}

.code-window {
  background: #0f172a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #1e293b;
}

.code-dots {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #1e293b;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.code-dots span:first-child {
  background: #f87171;
}

.code-dots span:nth-child(2) {
  background: #fbbf24;
}

.code-dots span:nth-child(3) {
  background: #4ade80;
}

.code-snippet {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-snippet .kw {
  color: #7dd3fc;
}

.code-snippet .str {
  color: #86efac;
}

.code-snippet .fn {
  color: #fcd34d;
}

.code-snippet .cmt {
  color: #64748b;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section-alt {
  background: var(--brand-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(46, 117, 182, 0.35);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.niche-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.niche-table th,
.niche-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}

.niche-table thead th {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.niche-table tbody th {
  background: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
}

.niche-table tbody tr:nth-child(even) td,
.niche-table tbody tr:nth-child(even) th {
  background: #fafbfc;
}

.niche-table td.is-active,
.niche-table tbody th.is-active {
  background: #dbeafe !important;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Proof */
.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

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

.proof-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.proof-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.proof-card figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-section h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.cta-section p {
  margin: 0;
  opacity: 0.92;
  max-width: 42ch;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

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

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.2);
}

.contact-form .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-hint {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.25rem;
}

@media (max-width: 560px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.to-top {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--brand);
}

.to-top:hover {
  background: var(--brand-soft);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: min(360px, 100vw - 2rem);
  animation: toast-in 0.35s ease;
}

.toast[hidden] {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
