:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #172033;
  --muted: #5c667a;
  --line: #dfe5ee;
  --accent: #0f8b8d;
  --accent-dark: #0b686a;
  --warm: #f2aa4c;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 760;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: 470px;
  margin: 22px auto 0;
  display: grid;
  align-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 20%, rgba(242, 170, 76, 0.22), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #e9f5f5 52%, #fff3df 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -70px;
  width: 250px;
  height: 250px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.9), rgba(242, 170, 76, 0.75));
  transform: rotate(12deg);
  opacity: 0.16;
}

.hero-copy {
  width: min(720px, 100%);
  padding: clamp(36px, 8vw, 88px);
  position: relative;
  z-index: 1;
}

.hero-art {
  position: absolute;
  right: clamp(22px, 7vw, 84px);
  bottom: clamp(26px, 7vw, 72px);
  width: clamp(118px, 24vw, 245px);
  height: auto;
  border-radius: 22%;
  z-index: 1;
  filter: drop-shadow(0 22px 30px rgba(23, 32, 51, 0.14));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 760;
}

.button:hover {
  text-decoration: none;
}

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

.button.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.link-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.link-card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.link-card a {
  margin-top: auto;
  font-weight: 760;
}

.content-page {
  width: min(900px, calc(100% - 32px));
  margin: 38px auto 0;
}

.page-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.page-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
}

.content-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.content-section h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.content-section p,
.content-section li {
  color: var(--muted);
}

.content-section p {
  margin: 0 0 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal {
  counter-reset: section;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 42px auto 0;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 34px 22px;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(170px, 46vw);
    margin: 0 0 28px 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .link-card {
    min-height: 170px;
  }
}
