/* ===========================================================
   RTLOC one-pager
   =========================================================== */
:root {
  --navy:   #062a4e;
  --navy-2: #0a3a68;
  --blue:   #095a9e;
  --blue-2: #1f7fc4;
  --blue-3: #2b8fd0;
  --cyan:   #56b2c9;
  --cyan-2: #7fd0e0;

  --ink:    #0e2436;
  --muted:  #5b6b7a;
  --line:   #e6edf5;
  --bg:     #ffffff;
  --bg-soft:#f4f8fc;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(9, 47, 92, .08);
  --shadow:    0 24px 60px rgba(9, 47, 92, .16);
  --shadow-lg: 0 40px 90px rgba(6, 42, 78, .28);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.grad-text {
  background: linear-gradient(100deg, var(--cyan-2), #ffffff 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: .35em .9em;
  border-radius: 999px;
  background: rgba(9,90,158,.08);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: #cfeaf4; background: rgba(255,255,255,.12); }

/* ---------- Buttons ---------- */
.btn {
  --pad: .9em 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: var(--pad); border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--lg { --pad: 1.05em 1.9em; font-size: 1.02rem; }
.btn--sm { --pad: .62em 1.15em; font-size: .9rem; }
.btn--solid {
  background: linear-gradient(120deg, var(--blue), var(--blue-3));
  color: #fff; box-shadow: 0 12px 26px rgba(9,90,158,.32);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(9,90,158,.42); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--blue); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 18px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
.brand-logo--dark { display: none; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: .96rem; color: #eaf4fb;
  transition: color .2s; opacity: .92;
}
.nav a:hover { opacity: 1; color: #fff; }
.nav .btn { color: #fff; }

.site-header.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px rgba(9,47,92,.08);
  padding: 12px 0;
}
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; }
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a:hover { color: var(--blue); }
.site-header.scrolled .nav .btn--solid { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 48%, var(--blue-3) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow--1 { width: 620px; height: 620px; top: -160px; right: -120px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); }
.glow--2 { width: 520px; height: 520px; bottom: -200px; left: -140px;
  background: radial-gradient(circle, #1e6fc0 0%, transparent 70%); opacity: .5; }
.grid-overlay {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
}
.hero-title {
  font-family: var(--display); font-weight: 800; line-height: 1.04;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.02em;
  margin-bottom: 1.3rem; text-wrap: balance;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #dcebf7; color: #d8e8f6;
  max-width: 33em; margin-bottom: 2rem;
}
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-stats {
  display: flex; gap: 2.4rem; list-style: none; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.5rem; max-width: 34em;
}
.hero-stats b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; color: #fff; line-height: 1.1;
}
.hero-stats span { font-size: .86rem; color: #b9d4e8; letter-spacing: .02em; }

.hero-anim { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.28)); }
.hero-anim svg { width: 100% !important; height: auto !important; }

.hero-divider {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 38%, 0 100%);
}

/* ---------- Feature sections ---------- */
.feature { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg); }
.feature--alt { background: var(--bg-soft); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.feature-copy h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin-bottom: 1.1rem;
  color: var(--ink);
}
.feature-copy p { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin-bottom: 1.7rem; }
.feature-copy p strong { color: var(--blue); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.chips li {
  font-family: var(--display); font-weight: 500; font-size: .88rem; color: var(--navy-2);
  padding: .5em 1.05em; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feature--alt .chips li { background: #fff; }

.feature-anim { position: relative; }
.feature-anim::before {
  content: ""; position: absolute; inset: 6% 6%; z-index: 0; border-radius: 40% 60% 58% 42% / 50%;
  background: radial-gradient(circle at 50% 45%, rgba(86,178,201,.20), rgba(9,90,158,.06) 60%, transparent 72%);
  filter: blur(8px);
}
.feature-anim > div, .feature-anim svg { position: relative; z-index: 1; width: 100% !important; height: auto !important; }

/* ---------- Contact / footer ---------- */
.contact {
  position: relative; color: #eaf4fb; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 120%);
  padding: clamp(64px, 8vw, 100px) 0 36px;
}
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.glow--3 { width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); filter: blur(80px); opacity: .4; }
.contact-inner {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; padding-bottom: 3rem;
}
.contact-logo { height: 40px; margin-bottom: 1.4rem; }
.contact-lead p { font-size: 1.15rem; color: #cfe2f1; max-width: 24em; margin-bottom: 1.8rem; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.info-block h3 {
  font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-2); margin-bottom: .85rem;
}
.info-block a, .info-block p { display: block; color: #dcebf7; font-size: 1rem; margin-bottom: .4rem; }
.info-block a { transition: color .2s; }
.info-block a:hover { color: #fff; }
.contact-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.6rem;
  font-size: .86rem; color: #9fc0da;
}
.contact-tagline { font-family: var(--display); font-style: italic; color: #cfe2f1; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .feature-grid, .contact-inner { grid-template-columns: 1fr; }
  .feature-grid--reverse .feature-copy { order: 2; }
  .feature-grid--reverse .feature-anim { order: 1; }
  .hero-anim { max-width: 480px; margin: 1rem auto 0; }
  .feature-anim { max-width: 520px; margin: 0 auto; }
  .hero { text-align: left; padding-top: 120px; }
  .contact-lead { text-align: left; }
}
@media (max-width: 680px) {
  .nav a:not(.btn) { display: none; }
  .hero-stats { gap: 1.6rem; }
  .hero-stats b { font-size: 1.25rem; }
  .contact-info { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
}
@media (max-width: 440px) {
  .contact-info { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
