:root {
  color-scheme: light;
  --ink: #10233d;
  --ink-soft: #486078;
  --surface: #ffffff;
  --surface-soft: #eef7fa;
  --line: #ccdde4;
  --brand: #087d98;
  --brand-dark: #07576d;
  --accent: #e64c5f;
  --success: #218b62;
  --shadow: 0 12px 34px rgba(16, 35, 61, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(204, 221, 228, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.nav-shell,
.section-inner,
.legal-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: min(760px, calc(100vh - 24px));
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dcecf2 url("assets/studio-esame-oss-splash.png") center 57% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 23, 42, 0.92) 0%, rgba(5, 23, 42, 0.72) 42%, rgba(5, 23, 42, 0.16) 75%);
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0 84px;
}

.hero-copy {
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a7ecf3;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  max-width: 780px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 0 30px;
  color: #e7f3f6;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #c93b4d;
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(5, 23, 42, 0.46);
}

.button.secondary:hover {
  background: rgba(5, 23, 42, 0.75);
}

.section {
  padding: 76px 0;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading p,
.feature p,
.support-copy p {
  color: var(--ink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.feature {
  min-height: 220px;
  padding: 30px;
  background: var(--surface);
}

.feature-index {
  display: block;
  margin-bottom: 30px;
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 900;
}

.stats-band {
  background: var(--ink);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: #7de1e7;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.stat span {
  color: #dce9ed;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.support-panel {
  padding: 30px;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
}

.support-panel a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.legal-hero {
  padding: 72px 0 54px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.legal-hero p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-shell {
  max-width: 860px;
  padding-top: 58px;
  padding-bottom: 74px;
}

.legal-shell h2 {
  margin-top: 42px;
  font-size: 1.5rem;
}

.legal-shell h3 {
  margin-top: 28px;
}

.legal-shell li + li {
  margin-top: 8px;
}

.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface-soft);
}

.site-footer {
  padding: 34px 0;
  background: #081a2d;
  color: #c9d9df;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: auto;
    padding-block: 14px;
    align-items: flex-start;
  }

  .brand span {
    max-width: 130px;
    line-height: 1.2;
  }

  .nav-links {
    max-width: 150px;
    gap: 4px 14px;
  }

  .hero {
    min-height: 690px;
    background-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 23, 42, 0.3) 0%, rgba(5, 23, 42, 0.88) 60%, rgba(5, 23, 42, 0.96) 100%);
  }

  .hero-inner {
    padding: 220px 0 54px;
  }

  .feature-grid,
  .stats-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
