:root {
  --navy: #061146;
  --navy-deep: #040b30;
  --accent: #2830C6;
  --accent-light: #9DA2FF;
  --white: #FEFDFD;

  --bg: #FEFDFD;
  --bg-tint: #E8E9FF;
  --text: #061146;
  --text-muted: rgba(6,17,70,0.68);
  --highlight: var(--accent);

  --max-width: 1120px;
  --nav-height: 128px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(120% 120% at 50% -10%, var(--bg) 0%, var(--bg-tint) 100%);
  /* Promote to its own GPU layer so iOS Safari doesn't lag/snap this
     fixed layer during momentum scrolling. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
}

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

.wrap {
  position: relative;
  z-index: 1;
}

/* Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
}

/* Soft fade instead of a hard bar edge: content scrolling up dissolves
   into the page background over a short distance rather than being
   cut off by a border. */
.nav-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(254, 253, 253, 0.92) 38%,
    rgba(254, 253, 253, 0.55) 65%,
    rgba(254, 253, 253, 0) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.nav-inner {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 66px;
  width: auto;
  display: block;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

nav.links a:hover {
  opacity: 1;
  color: var(--highlight);
}

nav.links a.active {
  opacity: 1;
  color: var(--highlight);
}

.lang {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.65;
  border: 1px solid rgba(6,17,70,0.2);
  border-radius: 100px;
  padding: 5px 12px;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang:hover {
  opacity: 1;
  border-color: var(--highlight);
  color: var(--highlight);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px 100px;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  background: rgba(40,48,198,0.08);
  border: 1px solid rgba(40,48,198,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  margin: 0 0 20px;
  font-weight: 700;
  max-width: 780px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--highlight);
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(40,48,198,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40,48,198,0.45);
}

/* Section shared */
section.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(40,48,198,0.14);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(40,48,198,0.35);
  background: rgba(255,255,255,0.85);
}

.card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--highlight);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 0;
}

/* Statement — a single short line of positioning, no headline weight */
.statement {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.statement::before,
.statement::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(40,48,198,0.15);
  max-width: 160px;
}

.statement p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--highlight);
  letter-spacing: -0.01em;
}

/* CTA — Introductory session */
.cta {
  max-width: var(--max-width);
  margin: 0 auto 120px;
  padding: 56px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(40,48,198,0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  font-weight: 700;
}

.cta p {
  max-width: 480px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.cta .cta-topics {
  max-width: 520px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--highlight);
  opacity: 0.85;
}

.cta .btn {
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* About page */
.about-body {
  max-width: 720px;
  padding: 60px 24px 120px;
  margin: 0 auto;
}

.about-body h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.about-body p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 22px;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(40,48,198,0.15);
}

footer img { height: 20px; opacity: 0.85; }

footer .copy {
  font-size: 13px;
  color: rgba(6,17,70,0.5);
}
