:root {
  --page-surface: #f7f9fc;
  --page-card: #ffffff;
  --page-border: #dbe4ee;
  --page-muted: #5d6f84;
  --page-dark: #07111f;
  --page-dark-2: #0b1c31;
  --page-accent: #2ee6a6;
  --page-accent-2: #71a7ff;
}

/* Shared visual system for service, policy and utility pages. */
.page-main {
  min-height: 70vh;
  background: var(--page-surface);
}

.page-main .page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 7vw, 94px) 0 clamp(58px, 6vw, 82px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(46,230,166,.16), transparent 27%),
    radial-gradient(circle at 72% 110%, rgba(113,167,255,.15), transparent 31%),
    linear-gradient(145deg, #07111f 0%, #0a182a 58%, #0c2136 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.page-main .page-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 84px rgba(255,255,255,.018), 0 0 0 168px rgba(255,255,255,.012);
  pointer-events: none;
}

.page-main .page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-main .page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #93ffd9;
  font-size: .74rem;
  letter-spacing: .18em;
}

.page-main .page-hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--page-accent);
}

.page-main .page-hero h1 {
  max-width: 980px;
  color: #fff;
  font-size: clamp(2.65rem, 4.5vw, 4.4rem);
  line-height: 1.01;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.page-main .page-hero p {
  max-width: 760px;
  margin-top: 26px;
  color: #afc0d3;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.page-content {
  padding: clamp(66px, 7vw, 96px) 0 clamp(90px, 8vw, 126px);
  background:
    linear-gradient(180deg, #f7f9fc 0%, #fff 32%, #fff 100%);
}

.page-content .shell {
  width: min(1120px, calc(100% - 40px));
}

.page-content article {
  max-width: none;
}

.page-content article > h2 {
  position: relative;
  max-width: 860px;
  margin: 68px 0 18px;
  padding-top: 20px;
  color: #0d1b2a;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.page-content article > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--page-accent), var(--page-accent-2));
}

.page-content article > h2:first-child,
.page-content article > p:first-child + h2 {
  margin-top: 0;
}

.page-content article > p {
  max-width: 900px;
  color: #4a5d72;
  font-size: 1.04rem;
  line-height: 1.82;
}

.page-content article > p strong {
  color: #0d1b2a;
}

.page-content article > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.page-content article > ul li {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px 18px 50px;
  color: #26394d;
  line-height: 1.45;
  border: 1px solid var(--page-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20,48,76,.045);
}

.page-content article > ul li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #05372a;
  background: rgba(46,230,166,.23);
  font-size: .72rem;
  font-weight: 900;
}

.page-content article > h2 + p {
  padding: 24px 26px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8fbfd);
  box-shadow: 0 10px 34px rgba(17,45,73,.04);
}

.page-content article > ul + h2,
.page-content article > p + h2 {
  margin-top: 70px;
}

.page-cta {
  position: relative;
  overflow: hidden;
  margin-top: 76px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(46,230,166,.2), transparent 32%),
    linear-gradient(135deg, #07111f, #0d2238);
  box-shadow: 0 30px 70px rgba(7,17,31,.18);
}

.page-cta::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.page-cta h2 {
  max-width: 700px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
}

.page-cta h2::before { display: none !important; }
.page-cta p { max-width: 720px !important; color: #adbed0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.page-cta .hero-actions { position: relative; z-index: 2; margin-top: 26px; }
.page-cta .button:not(.button-primary) { color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.page-cta .button:not(.button-primary):hover { background: rgba(255,255,255,.1); }

.site-header + .page-main { scroll-margin-top: var(--header-h); }

/* Internal page header polish */
body:has(.page-main) .site-header {
  background: rgba(7,17,31,.94);
  box-shadow: 0 12px 30px rgba(7,17,31,.08);
}

body:has(.page-main) .header-actions > span {
  color: #60748a;
  font-size: .78rem;
  font-weight: 800;
}

body:has(.page-main) .lang-btn {
  min-width: 28px;
  text-align: center;
}

/* Privacy/document pages */
.policy-page .page-hero h1 { max-width: 760px; }
.policy-page .page-content article { max-width: 930px; }
.policy-page .page-content article > p:first-child {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #586b80;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
}
.policy-page .page-content article > h2 + p { max-width: 930px; }

/* 404 */
.error-page .page-hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
}
.error-page .page-hero .shell { max-width: 1000px; }
.error-page .page-hero h1 { max-width: 780px; }
.error-page .page-hero::after {
  content: "404";
  position: absolute;
  right: 5vw;
  bottom: -5vw;
  color: rgba(255,255,255,.025);
  font-family: var(--font-display);
  font-size: clamp(12rem, 30vw, 32rem);
  font-weight: 800;
  line-height: .8;
  pointer-events: none;
}

/* Footer on internal pages */
body:has(.page-main) .site-footer {
  background: #06101c;
}
body:has(.page-main) .site-footer .footer-bottom {
  min-height: 116px;
  color: #70849a;
}
body:has(.page-main) .site-footer .footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .page-main .page-hero h1 { font-size: clamp(2.5rem, 7.5vw, 3.8rem); }
  .page-content article > ul { grid-template-columns: 1fr; }
  body:has(.page-main) .header-actions .button { display: none; }
}

@media (max-width: 560px) {
  .page-main .page-hero { padding: 58px 0 62px; }
  .page-main .page-hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); line-height: 1.04; }
  .page-main .page-hero p { margin-top: 20px; font-size: 1rem; }
  .page-content { padding: 54px 0 80px; }
  .page-content .shell { width: min(100% - 28px, 1120px); }
  .page-content article > h2 { margin-top: 54px; font-size: 1.8rem; }
  .page-content article > ul li { min-height: 64px; padding: 15px 16px 15px 46px; }
  .page-content article > h2 + p { padding: 20px; }
  .page-cta { margin-top: 58px; border-radius: 20px; }
  .page-cta .hero-actions { flex-direction: column; align-items: stretch; }
  .page-cta .button { width: 100%; }
  body:has(.page-main) .header-actions { gap: 8px; }
}
