* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(31, 95, 224, 0.24);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
}

.brand-name span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  display: inline-flex;
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--text);
}

.hero {
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  background-color: var(--hero-start);
  background-image:
    radial-gradient(1100px 520px at -10% -10%, rgba(47, 206, 143, 0.28), transparent 68%),
    radial-gradient(900px 460px at 100% 0%, rgba(41, 122, 255, 0.22), transparent 72%),
    linear-gradient(120deg, var(--hero-start), var(--hero-mid) 56%, var(--hero-end));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 5.8vw, 6.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 0.35rem 0.76rem;
}

.hero h1 {
  margin: 1rem 0 0.8rem;
  max-width: 16ch;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.14;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: #ffffff;
}

.hero p {
  margin: 0;
  max-width: 65ch;
  color: rgba(242, 248, 255, 0.95);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.cta-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 143, 109, 0.26);
}

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

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

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

.hero-stats div {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  padding: 0.9rem;
}

.hero-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.12rem;
  margin-bottom: 0.2rem;
}

.hero-stats span {
  color: rgba(240, 248, 255, 0.9);
}

.section {
  padding-block: clamp(2.9rem, 5.5vw, 5rem);
}

.section-muted {
  background: var(--surface-soft);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
  line-height: 1.2;
  color: var(--text);
}

.section-lead {
  margin: 0.7rem 0 1.7rem;
  color: var(--text-soft);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(17, 35, 58, 0.06);
}

.card h2,
.card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.3;
}

.card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.chip-list {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.81rem;
  color: var(--text);
  font-weight: 600;
}

.callout {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(130deg, #ffffff, #f1f6fd);
  padding: clamp(1.2rem, 2vw, 1.75rem);
}

.callout h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
}

.callout p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
}

.feature-list {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary), var(--accent));
}

.faq-grid {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.faq-item h3 {
  margin: 0;
  font-size: 1.03rem;
  color: var(--text);
  font-family: var(--font-heading);
}

.faq-item p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(17, 35, 58, 0.06);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.post-pill {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.post-date {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.post-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.3;
}

.post-card p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
}

.post-link {
  margin-top: 0.8rem;
  display: inline-flex;
  color: var(--accent);
  font-weight: 700;
}

.page-hero {
  color: var(--text-on-dark);
  background-color: var(--hero-start);
  background-image: linear-gradient(132deg, var(--hero-start), var(--hero-mid) 58%, var(--hero-end));
}

.page-hero .container {
  padding-block: clamp(2.6rem, 4.8vw, 4rem);
}

.breadcrumb {
  margin: 0 0 0.55rem;
  color: rgba(235, 244, 255, 0.9);
  font-size: 0.85rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero p {
  margin: 0.7rem 0 0;
  color: rgba(235, 244, 255, 0.92);
  max-width: 74ch;
}

.page-hero .section-title {
  color: #ffffff;
}

.forms-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.67rem 0.72rem;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 95, 224, 0.3);
  outline-offset: 1px;
}

.form-actions {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.form-status[data-state="success"] {
  color: var(--ok);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-bottom: 6.2rem;
}

.footer-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.footer-contact {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-contact a {
  color: var(--text);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

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

.sticky-cta-copy {
  display: grid;
  gap: 0.1rem;
}

.sticky-cta-copy strong {
  color: var(--text);
  font-size: 0.97rem;
}

.sticky-cta-copy span {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.contact-inline {
  margin: 0.55rem 0 1.15rem;
  color: var(--text-soft);
  font-weight: 600;
}

.contact-inline a {
  color: var(--text);
}

.contact-inline a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .grid-3,
  .grid-2,
  .post-grid,
  .hero-stats,
  .forms-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 0.5rem 0 0.8rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav a {
    width: 100%;
    border-radius: 12px;
  }

  .site-footer {
    padding-bottom: 7rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .sticky-cta-inner {
    min-height: 72px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0;
  }

  .sticky-cta .button {
    width: 100%;
  }
}
