:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --border: #d8e2f1;
  --text: #17304d;
  --muted: #5d7088;
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --accent: #1f9ac6;
  --footer: #0f1726;
  --shadow: 0 18px 40px rgba(18, 52, 86, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #eef3f9 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

main {
  display: block;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(840px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(216, 226, 241, 0.9);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-footer strong,
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.muted,
.section-heading p,
.form-response {
  color: var(--muted);
}

.brand-logo,
.footer-brand-logo,
.loading-mark,
.not-found-mark {
  display: block;
  width: auto;
  height: auto;
}

.brand-logo {
  height: 52px;
  max-width: min(60vw, 220px);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 1rem;
}

.footer-brand-logo {
  height: 42px;
  max-width: min(70vw, 230px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active,
.text-link:hover,
.text-link.active,
.inline-link {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.two-column,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.9fr;
  align-items: stretch;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
}

.section {
  padding: 2rem 0 4rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(0, 120, 212, 0.05), rgba(31, 154, 198, 0.02));
}

.section-heading {
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

.section-heading p,
.two-column > div > p,
.card p,
.hero-panel p,
.site-footer p {
  max-width: 68ch;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.compact-card {
  padding: 1.5rem;
}

.lead-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(31, 154, 198, 0.2), transparent 45%),
    linear-gradient(160deg, rgba(0, 120, 212, 0.1), rgba(255, 255, 255, 0.98) 52%);
  border-color: rgba(0, 120, 212, 0.18);
}

.lead-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.lead-panel .eyebrow,
.lead-panel h2,
.lead-panel-intro,
.lead-panel-note,
.lead-list {
  position: relative;
  z-index: 1;
}

.lead-panel-intro {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-weight: 600;
}

.lead-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 120, 212, 0.12);
  box-shadow: 0 12px 24px rgba(18, 52, 86, 0.06);
}

.lead-list strong {
  font-size: 1rem;
}

.lead-list span {
  color: var(--muted);
}

.lead-panel-note {
  margin: 1.25rem 0 0;
}

.pill {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.cta-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tag-cloud {
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.text-link.inline-link {
  display: inline;
  margin-top: 0;
}

.product-link {
  display: block;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.tag-cloud span {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
}

.enquiry-form {
  display: grid;
  gap: 1rem;
}

.product-footer-panel {
  padding-top: 0;
}

.app-loading,
.not-found-card {
  text-align: center;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 0.75rem;
}

.loading-mark,
.not-found-mark {
  margin: 0 auto;
}

.loading-mark {
  width: 72px;
}

.not-found-shell {
  padding-top: 4rem;
}

.not-found-card {
  display: grid;
  gap: 1rem;
}

.not-found-mark {
  width: 80px;
}

.site-footer {
  background: var(--footer);
  color: #dce6f3;
  padding: 3rem 0;
  margin-top: 2rem;
}

.site-footer a {
  display: block;
  margin-top: 0.5rem;
  color: #dce6f3;
}

.site-footer .footer-brand {
  display: inline-flex;
  margin-top: 0;
}

#blazor-error-ui {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fff2f2;
  border: 1px solid #efb4b4;
  box-shadow: var(--shadow);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
  margin-left: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: none;
  border: 0;
  padding: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .brand-logo {
    height: 46px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(0, 120, 212, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 860px) {
  .hero,
  .page-hero {
    padding: 4rem 0 2.75rem;
  }

  .section {
    padding: 1.75rem 0 3.5rem;
  }

  .hero-grid,
  .two-column,
  .three-up,
  .two-up,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand-logo {
    height: 40px;
  }

  .hero,
  .page-hero {
    padding: 3.25rem 0 2rem;
  }

  .section {
    padding: 1.5rem 0 3rem;
  }

  .hero-grid,
  .two-column,
  .footer-grid,
  .card-grid {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.6rem);
    line-height: 1.12;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.2;
  }

  h3 {
    font-size: 1.12rem;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.75;
  }

  .card,
  .hero-panel {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .compact-card {
    padding: 1.15rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .section-heading p,
  .two-column > div > p,
  .card p,
  .hero-panel p,
  .site-footer p,
  .check-list li {
    font-size: 0.98rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .button {
    width: 100%;
    padding: 0.95rem 1.1rem;
  }

  .text-link {
    margin-top: 0.85rem;
    padding: 0.35rem 0;
  }

  .lead-list li {
    padding: 0.85rem 0.9rem;
  }

  .tag-cloud {
    gap: 0.6rem;
    margin-top: 1.5rem;
  }

  .tag-cloud span {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .site-footer {
    padding: 2rem 0;
    margin-top: 1rem;
  }

  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.2rem;
  }
}
