:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5ee;
  --soft: #f4f8fb;
  --card: #ffffff;
  --petrol: #0f5f63;
  --petrol-dark: #0a4549;
  --blue: #1f6feb;
  --teal: #16a3a3;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Roboto", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 163, 163, 0.14), transparent 32rem),
    linear-gradient(180deg, #f7fbfd 0%, #eef5f8 48%, #ffffff 100%);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong {
  display: block;
  color: var(--petrol-dark);
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--petrol-dark);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 34px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 95, 99, 0.96), rgba(31, 111, 235, 0.78)),
    linear-gradient(180deg, #0f5f63, #124e75);
  color: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.button.light {
  color: var(--petrol-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.button.secondary {
  color: var(--petrol-dark);
  background: #eef8f8;
  border-color: #c9e5e5;
}

.main {
  flex: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 46px;
}

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

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

.card,
.legal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 238, 0.92);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3,
.legal-card h2,
.legal-card h3 {
  margin: 0 0 12px;
  color: var(--petrol-dark);
  letter-spacing: -0.01em;
}

.card p,
.legal-card p,
.legal-card li {
  color: #475569;
  line-height: 1.72;
  font-size: 1rem;
}

.card p:last-child,
.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.section {
  margin-top: 18px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto 18px;
}

.legal-card h2 {
  margin-top: 8px;
  padding-top: 8px;
}

.legal-card ul {
  padding-left: 22px;
}

.callout {
  border-left: 4px solid var(--teal);
  background: #eefafa;
  padding: 18px 20px;
  border-radius: 14px;
  color: #164e50;
}

.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 700;
}

.app-links {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .back-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar,
  .main,
  .footer,
  .hero {
    width: min(100% - 24px, 1160px);
  }

  .hero,
  .card,
  .legal-card {
    border-radius: 16px;
  }

  .card,
  .legal-card {
    padding: 20px;
  }

  .hero-actions .button,
  .link-row .button {
    width: 100%;
  }
}
