:root {
  /* WCAG 2.2 AA High-Contrast Studio Palette */
  --bg-main: #ffffff;
  --bg-tinted: #f4f6fb;
  --bg-dark: #0b0f19;
  --bg-card-dark: #131b2e;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --accent-dark: #047857;
  --border: #e2e8f0;
  --focus-ring: #f59e0b;
  --error: #dc2626;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}

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

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

/* Top Bar */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.top-bar__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.top-bar__contact a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
}

.top-bar__contact a:hover {
  text-decoration: underline;
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--bg-dark);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}

.brand__name span {
  color: var(--primary);
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-main);
  border-bottom: 2px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.primary-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  background: var(--bg-tinted);
  color: var(--primary);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .nav-list {
    flex-direction: row;
    margin-bottom: 0;
    gap: 0.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--bg-tinted);
  color: var(--text-main);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-main);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #ffffff;
}

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

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  background: radial-gradient(circle at 85% 15%, #e0e7ff 0%, #ffffff 55%);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.eyebrow-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

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

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 62ch;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric dt {
  font-weight: 800;
  font-size: 0.95rem;
}

.metric dd {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Stack Card */
.stack-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stack-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.stack-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.stack-card__pill {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.stack-layers {
  display: grid;
  gap: 0.9rem;
}

.stack-layer {
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.stack-layer__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: #60a5fa;
  font-size: 1.1rem;
}

.stack-layer__body h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.stack-layer__body p {
  font-size: 0.83rem;
  color: var(--text-light-muted);
  margin-bottom: 0.5rem;
}

.stack-layer__price {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

.stack-card__footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-card__link {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tinted {
  background: var(--bg-tinted);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.eyebrow--accent {
  color: #34d399;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.pillar-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pillar-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-tinted);
  color: var(--primary);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Pricing Section */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.pricing-tab {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.pricing-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.price-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.price-box[hidden] {
  display: none !important;
}

.price-box--highlight {
  border: 2px solid var(--primary);
}

.price-box__cat {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
}

.price-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
}

.price-box__meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.price-box__amount strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--text-main);
}

.price-box__amount span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.2rem;
}

.price-box__sub {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.price-box__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-box__list li::before {
  content: "• ";
  color: var(--primary);
  font-weight: 800;
}

/* Estimator & Lead Form */
.calc__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .calc__grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.calc__left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.calc__left > p {
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
}

.savings-widget {
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.savings-widget__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
  font-weight: 800;
}

.savings-widget h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.5rem;
  color: #ffffff;
}

.savings-widget__desc {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  margin-bottom: 1.25rem;
}

.savings-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.savings-col span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.savings-col strong {
  font-size: 1.05rem;
}

.highlight-price {
  color: #ffffff;
}

.savings-col--badge strong {
  color: #34d399;
}

.direct-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.direct-box h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.direct-email {
  margin-top: 0.5rem;
}

.direct-email a {
  color: #60a5fa;
  font-weight: 700;
}

.project-form {
  background: var(--bg-main);
  color: var(--text-main);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.project-form h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #94a3b8;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
}

.form-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius-md);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 820px;
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.accordion-btn {
  width: 100%;
  min-height: 52px;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.accordion-icon::before {
  content: "+";
  font-size: 1.35rem;
  color: var(--primary);
}

.accordion-btn[aria-expanded="true"] .accordion-icon::before {
  content: "−";
}

.accordion-panel {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  background: #060911;
  color: var(--text-light-muted);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .brand__name {
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer__desc {
  margin-bottom: 0.75rem;
}

.footer__loc a {
  color: #60a5fa;
  text-decoration: none;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-light-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
}