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

  --max-width: 1120px;
  --nav-height: 128px;
  --radius: 10px;
  --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(--white);
  color: var(--navy);
  min-height: 100vh;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(120% 120% at 50% -10%, var(--white) 0%, var(--bg-edge) 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;
}

/* Page map — a quiet left-edge scroll indicator/nav. Mostly invisible
   until you notice or hover it; exists so it registers there's more
   below (Services especially) without competing for attention. */
.page-map {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-map-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.18;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.page-map-dot:hover,
.page-map-dot.active {
  opacity: 0.9;
  background: var(--accent);
  transform: scale(1.4);
}

.page-map-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy);
  background: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(40,48,198,0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-map-dot:hover::after {
  opacity: 1;
}

@media (max-width: 860px) {
  .page-map { display: none; }
}

/* 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(--white) 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(--navy);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

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

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

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

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

/* 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(--accent);
  background: rgba(40,48,198,0.08);
  border: 1px solid rgba(40,48,198,0.22);
  padding: 6px 14px;
  border-radius: var(--radius);
  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(--accent);
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(6,17,70,0.68);
  max-width: 560px;
  margin: 0 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  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.28);
}

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

/* 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: rgba(6,17,70,0.65);
  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(40,48,198,0.04);
  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.32);
  background: rgba(40,48,198,0.07);
}

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

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

.card p {
  color: rgba(6,17,70,0.65);
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 0;
}

/* CTA — Introductory session. A compact card: kept short on purpose
   (small heading, one line of copy, no extra detail row) so it doesn't
   push Services below the fold. */
.cta {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: rgba(40,48,198,0.045);
  border: 1px solid rgba(40,48,198,0.16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0;
  font-weight: 700;
  max-width: 560px;
}

.cta p {
  max-width: 480px;
  margin: 0;
  color: rgba(6,17,70,0.66);
  font-size: 1rem;
  line-height: 1.6;
}

.cta .cta-topics {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.85;
}

/* Inline Cal.com scheduler. Cal sizes itself to fill this container,
   so it needs an explicit height — it won't collapse to fit its own
   content otherwise. */
.cal-inline {
  width: 100%;
  height: 650px;
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: auto;
}

@media (max-width: 640px) {
  .cal-inline { height: 780px; }
}

@media (max-width: 640px) {
  .cal-inline { height: 780px; }
  .cal-inline-mount { height: 1040px; }
}

/* 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: rgba(6,17,70,0.75);
  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.12);
}

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

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