/* Sun America Investments — rebuilt static site */
/* Design tokens */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f9fb;
  --color-surface-2: #eef3f8;
  --color-ink: #1a2330;
  --color-ink-muted: #4a5566;
  --color-ink-soft: #6b7280;
  --color-border: #e2e8ef;
  --color-primary: #1573b7;          /* recovered theme blue */
  --color-primary-dark: #0f5a91;
  --color-primary-soft: #e6f0f8;
  --color-accent: #d8a341;            /* warm gold accent */
  --color-accent-dark: #b88728;
  --color-success: #2e7d54;
  --color-danger: #b13b3b;

  --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(15,33,55,0.06), 0 1px 3px rgba(15,33,55,0.04);
  --shadow-md: 0 6px 18px rgba(15,33,55,0.08);
  --shadow-lg: 0 14px 40px rgba(15,33,55,0.12);

  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 0.6em;
}

p { margin: 0 0 1em; }
.muted { color: var(--color-ink-muted); }
.soft  { color: var(--color-ink-soft); }
.center { text-align: center; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #1a2330; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-primary); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-top {
  background: var(--color-ink);
  color: #d3dce5;
  font-size: 0.85rem;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 18px;
  flex-wrap: wrap;
}
.header-top a { color: #d3dce5; }
.header-top a:hover { color: #fff; text-decoration: none; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-ink);
}
.brand img {
  display: block;
  width: auto;
  height: clamp(46px, 5vw, 58px);
  object-fit: contain;
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--color-primary);
}
.brand-name::first-letter {
  color: #f0a21d;
}
.brand-tag {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.45rem; }
  .brand-tag { font-size: 0.62rem; }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-primary a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav-primary a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration: none;
}
.nav-primary a.active { color: var(--color-primary); }

/* Dropdown */
.has-sub {
  position: relative;
}
.has-sub > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 60;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-ink);
  font-size: 0.92rem;
}
.sub-menu a:hover { background: var(--color-primary-soft); color: var(--color-primary); text-decoration: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-ink);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .nav-primary { display: none; }
  .nav-primary.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 14px 24px 22px;
    gap: 0;
  }
  .nav-primary.open a { padding: 10px 6px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-primary.open .has-sub > a::after { content: ""; }
  .nav-primary.open .sub-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
    background: transparent;
  }
  .menu-toggle { display: inline-flex; }
  .header-main { position: relative; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 120px 0 110px;
  --map-tilt-x: 0deg;
  --map-tilt-y: 0deg;
  --map-shift-x: 0px;
  --map-shift-y: 0px;
  background:
    radial-gradient(980px 620px at 76% 48%, rgba(36, 150, 224, 0.46), transparent 66%),
    radial-gradient(680px 440px at 70% 50%, rgba(19, 93, 151, 0.26), transparent 58%),
    radial-gradient(760px 520px at 23% 40%, rgba(1, 7, 18, 0.96), transparent 72%),
    linear-gradient(116deg, #020611 0%, #041426 42%, #07365d 74%, #0b5886 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 38%, rgba(94,210,255,0.08) 0 1px, transparent 1.8px),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.045) 48%, transparent 66%);
  background-size: 120px 120px, 170px 170px, 100% 100%;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse at 70% 50%, black 22%, transparent 72%);
  pointer-events: none;
  animation: heroAtmosphereDrift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 540px at 78% 52%, rgba(29, 145, 219, 0.12), transparent 68%),
    linear-gradient(90deg, rgba(2,6,15,0.92) 0%, rgba(4,15,29,0.73) 38%, rgba(7,47,80,0.16) 76%, transparent 100%),
    linear-gradient(180deg, rgba(1,5,13,0.3) 0%, transparent 40%, rgba(1,7,15,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-starfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-starfield::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(142, 215, 255, 0.17), transparent 28%),
    radial-gradient(ellipse at 76% 36%, rgba(255, 215, 137, 0.09), transparent 22%),
    radial-gradient(ellipse at 54% 16%, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.85;
  filter: blur(10px);
  animation: starCloudDrift 32s ease-in-out infinite alternate;
}
.hero-starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.4) 0 0.7px, transparent 1.4px),
    radial-gradient(circle, rgba(124,220,255,0.28) 0 0.8px, transparent 1.7px),
    radial-gradient(circle, rgba(255,214,139,0.22) 0 0.75px, transparent 1.6px);
  background-size: 96px 96px, 142px 142px, 210px 210px;
  background-position: 12px 18px, 44px 70px, 118px 34px;
  opacity: 0.72;
  animation: starDustDrift 36s linear infinite;
}
.hero-star,
.hero-flash {
  position: absolute;
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.hero-star {
  width: var(--s);
  height: var(--s);
  background: rgba(255,255,255,0.78);
  box-shadow:
    0 0 calc(var(--s) * 2.2) rgba(255,255,255,0.7),
    0 0 calc(var(--s) * 5) rgba(98,210,255,0.18);
  opacity: 0.22;
  animation: starTwinkle var(--d) ease-in-out var(--delay) infinite;
}
.hero-flash {
  width: var(--s);
  height: var(--s);
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,235,180,0.82) 22%, rgba(88,202,255,0.28) 54%, transparent 72%);
  box-shadow:
    0 0 14px rgba(255,255,255,0.86),
    0 0 34px rgba(88,202,255,0.38),
    0 0 54px rgba(255,166,64,0.16);
  opacity: 0;
  animation: heroLightFlash var(--d) cubic-bezier(0.2, 0, 0.2, 1) var(--delay) infinite;
}
.hero-flash::before,
.hero-flash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--s) * 6.2);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.86), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.75;
}
.hero-flash::after {
  width: calc(var(--s) * 3.6);
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0.5;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.hero-map-stage {
  display: none !important;
}
.hero-globe-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.hero-globe-stage:active {
  cursor: grabbing;
}
.hero-globe-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-particle-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.hero-particle-layer::before,
.hero-particle-layer::after {
  content: "";
  position: absolute;
  background-image:
    radial-gradient(circle, rgba(255, 222, 142, 0.48) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(96, 210, 255, 0.36) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 0.8px, transparent 1.5px);
  background-size: 84px 84px, 132px 132px, 196px 196px;
  background-position: 0 0, 36px 22px, 72px 48px;
  filter: drop-shadow(0 0 8px rgba(80, 199, 255, 0.32));
  pointer-events: none;
}
.hero-particle-layer::before {
  left: 3%;
  top: 4%;
  width: min(520px, 38vw);
  height: 88%;
  opacity: 1;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 78%, transparent 100%);
  animation: heroParticleDriftLeft 24s ease-in-out infinite alternate;
}
.hero-particle-layer::after {
  right: 2%;
  top: 4%;
  width: min(360px, 24vw);
  height: 88%;
  opacity: 1;
  mask-image: radial-gradient(ellipse at center, black 8%, transparent 78%);
  animation: heroParticleDriftRight 27s ease-in-out infinite alternate;
}
.meteor-light {
  position: absolute;
  width: 170px;
  height: 2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255,255,244,1) 0 6px, rgba(255,205,116,0.78) 7px, rgba(255,122,31,0.42) 13px, transparent 22px),
    linear-gradient(90deg, transparent 0%, rgba(255,122,31,0.08) 24%, rgba(255,180,70,0.46) 68%, rgba(255,255,236,0.96) 100%);
  box-shadow:
    0 0 14px rgba(255,211,121,0.58),
    0 0 34px rgba(255,124,31,0.28);
  opacity: 0;
  transform-origin: 100% 50%;
  filter: blur(0.1px);
  animation: meteorLightSweep var(--meteor-duration, 7.8s) cubic-bezier(0.34, 0.02, 0.16, 1) infinite;
}
.meteor-light::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffef2 0%, rgba(255,226,153,0.9) 34%, rgba(255,128,31,0.36) 62%, transparent 72%);
  transform: translateY(-50%);
  box-shadow:
    0 0 16px rgba(255,245,204,0.8),
    0 0 36px rgba(255,130,34,0.34);
}
.meteor-light-1 {
  top: 18%;
  left: -4%;
  width: 190px;
  --meteor-rotate: 18deg;
  --meteor-start-x: -170px;
  --meteor-start-y: -42px;
  --meteor-mid-x: 470px;
  --meteor-mid-y: 122px;
  --meteor-end-x: 610px;
  --meteor-end-y: 156px;
  --meteor-duration: 8.8s;
  animation-delay: 0.2s;
}
.meteor-light-2 {
  top: 14%;
  left: 104%;
  width: 150px;
  --meteor-rotate: 154deg;
  --meteor-start-x: 140px;
  --meteor-start-y: -24px;
  --meteor-mid-x: -395px;
  --meteor-mid-y: 118px;
  --meteor-end-x: -520px;
  --meteor-end-y: 150px;
  --meteor-duration: 10.2s;
  opacity: 0;
  animation-delay: 2.6s;
}
.meteor-light-3 {
  top: 86%;
  left: -5%;
  width: 130px;
  --meteor-rotate: -19deg;
  --meteor-start-x: -150px;
  --meteor-start-y: 60px;
  --meteor-mid-x: 560px;
  --meteor-mid-y: -176px;
  --meteor-end-x: 690px;
  --meteor-end-y: -214px;
  --meteor-duration: 11.4s;
  opacity: 0;
  animation-delay: 5.2s;
}
@keyframes meteorLightSweep {
  0% {
    opacity: 0;
    transform: translate3d(var(--meteor-start-x), var(--meteor-start-y), 0) rotate(var(--meteor-rotate)) scaleX(0.58);
  }
  8% {
    opacity: 0.78;
  }
  18% {
    opacity: 0.64;
    transform: translate3d(var(--meteor-mid-x), var(--meteor-mid-y), 0) rotate(var(--meteor-rotate)) scaleX(1);
  }
  28% {
    opacity: 0;
    transform: translate3d(var(--meteor-end-x), var(--meteor-end-y), 0) rotate(var(--meteor-rotate)) scaleX(0.42);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--meteor-end-x), var(--meteor-end-y), 0) rotate(var(--meteor-rotate)) scaleX(0.42);
  }
}
@keyframes heroAtmosphereDrift {
  from {
    transform: translate3d(-18px, -10px, 0) scale(1);
  }
  to {
    transform: translate3d(18px, 12px, 0) scale(1.035);
  }
}
@keyframes starCloudDrift {
  from {
    transform: translate3d(-18px, -10px, 0) scale(1);
  }
  to {
    transform: translate3d(20px, 12px, 0) scale(1.04);
  }
}
@keyframes starDustDrift {
  from {
    transform: translate3d(0, 0, 0);
    background-position: 12px 18px, 44px 70px, 118px 34px;
  }
  to {
    transform: translate3d(-10px, 6px, 0);
    background-position: 108px 90px, 186px 148px, 328px 244px;
  }
}
@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.82);
  }
  45% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1.25);
  }
  58% {
    opacity: 0.24;
    transform: translate(-50%, -50%) scale(0.95);
  }
}
@keyframes heroLightFlash {
  0%, 74%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  78% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.18) rotate(10deg);
  }
  82% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.74) rotate(10deg);
  }
}
@keyframes heroParticleDriftLeft {
  from {
    transform: translate3d(-10px, -8px, 0);
    background-position: 0 0, 36px 22px, 72px 48px;
  }
  to {
    transform: translate3d(14px, 10px, 0);
    background-position: 42px 36px, 8px 66px, 120px 86px;
  }
}
@keyframes heroParticleDriftRight {
  from {
    transform: translate3d(8px, -12px, 0);
    background-position: 18px 8px, 54px 34px, 96px 56px;
  }
  to {
    transform: translate3d(-16px, 12px, 0);
    background-position: 78px 44px, 24px 78px, 142px 104px;
  }
}
.globe-fallback {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(45,231,255,0.28), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(27,116,255,0.18), transparent 56%),
    radial-gradient(circle at 50% 50%, rgba(140,92,255,0.18), transparent 70%),
    rgba(4,12,24,0.18);
  border: 1px solid rgba(45,231,255,0.22);
  box-shadow:
    0 0 90px rgba(45,231,255,0.16),
    inset 0 0 70px rgba(45,231,255,0.12);
}
.hero-globe-stage.webgl-ready .globe-fallback {
  display: none;
}
.hero-map-stage {
  position: absolute;
  z-index: 2;
  right: max(-105px, -6vw);
  top: 53%;
  width: min(820px, 66vw);
  aspect-ratio: 1.6;
  pointer-events: none;
  opacity: 0.95;
  transform:
    translate3d(var(--map-shift-x), var(--map-shift-y), 0)
    translateY(-50%)
    perspective(900px)
    rotateX(var(--map-tilt-x))
    rotateY(var(--map-tilt-y));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}
.hero-map-stage::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: -14%;
  bottom: -28%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255,255,255,0.10), transparent 26%),
    radial-gradient(ellipse at 50% 42%, rgba(45,145,196,0.24), transparent 52%),
    linear-gradient(180deg, rgba(105,211,255,0.36), rgba(8,18,32,0.88) 54%, rgba(3,8,15,0.98));
  border-top: 2px solid rgba(166,230,255,0.58);
  box-shadow:
    inset 0 28px 60px rgba(104,207,255,0.16),
    0 -18px 48px rgba(104,207,255,0.22),
    0 32px 70px rgba(0,0,0,0.24);
  transform: rotate(-5deg);
  opacity: 0.88;
}
.america-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 32px 48px rgba(3,18,32,0.24));
}
.map-plane {
  transform-origin: center;
  animation: mapFloat 8s ease-in-out infinite;
}
.map-shape {
  fill: url(#mapFill);
  stroke: rgba(255,188,80,0.9);
  stroke-width: 2.7;
  stroke-linejoin: round;
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  filter: url(#mapGlow);
  animation: mapDraw 2.4s ease forwards;
}
.map-shape.florida {
  fill: rgba(22,47,55,0.7);
  stroke: rgba(255,188,80,0.88);
}
.map-coast {
  fill: none;
  stroke: rgba(255,255,255,0.16);
  stroke-width: 1.2;
  stroke-dasharray: 10 12;
}
.state-lines path {
  fill: none;
  stroke: rgba(255,169,58,0.58);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255,128,32,0.68));
}
.city-lights circle {
  fill: rgba(255,218,140,0.92);
  filter: drop-shadow(0 0 7px rgba(255,161,48,0.95));
  animation: cityTwinkle 3.4s ease-in-out infinite;
}
.city-lights circle:nth-child(3n) { animation-delay: -1.1s; }
.city-lights circle:nth-child(4n) { animation-delay: -2.2s; }
.routes path {
  fill: none;
  stroke: rgba(255,216,147,0.34);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 7 15;
  animation: routeFlow 4.8s linear infinite;
}
.routes path:nth-child(2n) { animation-duration: 6.2s; animation-delay: -1.2s; }
.routes path:nth-child(3n) { animation-duration: 5.4s; animation-delay: -2s; }
.map-node {
  fill: #fff3c4;
  stroke: rgba(255,147,35,0.95);
  stroke-width: 3;
  transform-origin: center;
  filter: drop-shadow(0 0 12px rgba(255,213,138,0.7));
  animation: nodePulse 2.8s ease-in-out infinite;
}
.map-node:nth-child(2n) { animation-delay: -0.8s; }
.map-node:nth-child(3n) { animation-delay: -1.6s; }
.node-primary {
  fill: var(--color-accent);
  stroke: #fff;
  stroke-width: 4;
}
.map-labels text {
  fill: rgba(255,239,203,0.78);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes cityTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes mapDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes routeFlow {
  to { stroke-dashoffset: -220; }
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.35); opacity: 1; }
}
@keyframes mapFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.012); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
  text-align: left;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2em;
  max-width: 640px;
  margin-left: 0;
  text-align: left;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
}
@media (max-width: 920px) {
  .hero {
    padding: 96px 0 90px;
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(3,8,18,0.9) 0%, rgba(6,24,44,0.62) 62%, rgba(9,55,92,0.22) 100%);
  }
  .hero-map-stage {
    width: 780px;
    right: -420px;
    opacity: 0.56;
  }
  .hero-globe-stage {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.72;
  }
}
@media (max-width: 560px) {
  .hero-map-stage {
    width: 640px;
    right: -420px;
    top: 58%;
    opacity: 0.36;
  }
  .hero-globe-stage {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 0.46;
  }
  .map-labels { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-map-stage,
  .map-plane,
  .map-shape,
  .routes path,
  .map-node {
    animation: none !important;
    transition: none !important;
  }
  .map-shape { stroke-dashoffset: 0; }
}

/* Page hero (smaller) */
.page-hero {
  background:
    radial-gradient(1000px 400px at 80% 30%, rgba(216,163,65,0.12), transparent 70%),
    linear-gradient(135deg, #102f4d 0%, #1573b7 100%);
  color: #fff;
  padding: 80px 0 70px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 720px; }

/* ============== Sections ============== */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--color-surface); }
section.dark {
  background: var(--color-ink); color: #d6dde7;
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.step-card {
  text-align: left;
  padding: 32px 28px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

/* Two-column with image */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse > :first-child { order: 0; }
}
.two-col-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width:880px){ .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #102f4d, #1573b7);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: #0f1a26;
  color: #97a3b3;
  padding: 64px 0 28px;
  font-size: 0.94rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1em;
  font-family: var(--font-body);
  font-weight: 600;
}
.site-footer a { color: #b6c1d0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--color-accent); }
.footer-brand p { color: #97a3b3; }
.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 18px;
}
.footer-brand .footer-logo {
  display: none;
  width: auto;
  height: 48px;
  max-width: min(230px, 80vw);
  object-fit: contain;
  filter: none;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #1f2c3a;
  font-size: 0.85rem;
  color: #6f7d8e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== Property cards ============== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.property-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.property-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Placeholder gradient cards (when no photo available) */
.placeholder-card {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
  padding: 24px;
  overflow: hidden;
}
.placeholder-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.placeholder-card .skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 120" preserveAspectRatio="none"><g fill="rgba(255,255,255,0.18)"><rect x="0" y="60" width="40" height="60"/><rect x="44" y="40" width="30" height="80"/><rect x="78" y="55" width="22" height="65"/><rect x="104" y="20" width="46" height="100"/><rect x="154" y="50" width="28" height="70"/><rect x="186" y="32" width="34" height="88"/><rect x="224" y="58" width="26" height="62"/><rect x="254" y="14" width="44" height="106"/><rect x="302" y="44" width="30" height="76"/><rect x="336" y="58" width="24" height="62"/><rect x="364" y="36" width="36" height="84"/></g><g fill="rgba(255,255,255,0.10)"><rect x="20" y="80" width="20" height="40"/><rect x="120" y="68" width="18" height="52"/><rect x="240" y="80" width="14" height="40"/><rect x="320" y="88" width="14" height="32"/></g></svg>');
  background-size: 100% 100%;
  pointer-events: none;
}
.placeholder-card .label {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  max-width: 90%;
}
.placeholder-card .badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-weight: 500;
  z-index: 2;
}

/* gradient variants */
.placeholder-card.g1 { background: linear-gradient(135deg, #1573b7 0%, #2c97e0 100%); }
.placeholder-card.g2 { background: linear-gradient(135deg, #0f3a5f 0%, #2e7d54 100%); }
.placeholder-card.g3 { background: linear-gradient(135deg, #b88728 0%, #d8a341 100%); }
.placeholder-card.g4 { background: linear-gradient(135deg, #2e3e58 0%, #5a6e8c 100%); }
.placeholder-card.g5 { background: linear-gradient(135deg, #4a3b8a 0%, #7c70b3 100%); }
.placeholder-card.g6 { background: linear-gradient(135deg, #2e7d54 0%, #5fae7e 100%); }
.placeholder-card.g7 { background: linear-gradient(135deg, #0f5a91 0%, #1573b7 100%); }
.placeholder-card.g8 { background: linear-gradient(135deg, #6b3a3a 0%, #b16a4a 100%); }

.property-meta {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.property-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  font-weight: 600;
}
.property-card h3 {
  font-size: 1.2rem;
  margin: 0;
}
.property-loc {
  color: var(--color-ink-muted);
  font-size: 0.92rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-bar button {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--color-ink-muted);
  transition: all .15s ease;
}
.filter-bar button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-bar button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============== Article (page content) ============== */
.article {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; color: var(--color-primary-dark); }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 0.4em; }
.article .lead { font-size: 1.18rem; color: var(--color-ink-muted); }

.toc {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 36px;
  border: 1px solid var(--color-border);
}
.toc h4 { margin-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-primary); font-family: var(--font-body); font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 0; column-count: 2; column-gap: 28px; }
@media (max-width: 600px) { .toc ul { column-count: 1; } }
.toc li { margin: 6px 0; break-inside: avoid; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 22px 18px;
  color: var(--color-ink-muted);
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { padding-left: 1.4em; }

/* Property detail layout */
.property-detail .hero-img {
  width: 100%;
  height: clamp(220px, 36vw, 380px);
  position: relative;
  overflow: hidden;
}
.property-detail .hero-img .placeholder-card {
  height: 100%;
}
.property-detail .hero-img .placeholder-card .label {
  font-size: clamp(1.2rem, 3vw, 2rem);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 700px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec {
  background: var(--color-surface);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-ink-soft);
  margin-bottom: 4px;
  display: block;
}
.spec-value {
  font-weight: 600;
  color: var(--color-ink);
}

/* Contact form */
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 6px; color: var(--color-ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21,115,183,0.16);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* Notice */
.notice {
  background: #fff8e6;
  border: 1px solid #f0d480;
  color: #6e5217;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.disclaimer-notice {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink-muted);
  font-size: 1rem;
}
.disclaimer-notice h2,
.disclaimer-notice h3 {
  margin-top: 0;
  color: var(--color-ink);
}
.login-panel {
  max-width: 680px;
  margin: 0 auto;
}
.login-form {
  margin-top: 22px;
  box-shadow: none;
}

/* Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-accent { color: var(--color-accent-dark); }
.list-clean { list-style: none; padding: 0; margin: 0; }

/* Lender row (logos) */
.lender-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) { .lender-row { grid-template-columns: 1fr 1fr; } }
.lender {
  background: var(--color-ink);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  min-height: 92px;
  display: flex; align-items: center; justify-content: center;
}
.lender img { max-height: 48px; width: auto; opacity: 0.95; }
