:root {
  --bg: #f9fcff;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(16, 70, 111, 0.15);
  --text: #0a2944;
  --muted: #5f7788;
  --blue: #10466f;
  --blue-light: #2d7fac;
  --blue-soft: #e8f5ff;
  --green: #4ca934;
  --green-light: #75d95c;
  --green-soft: #ecffe8;
  --shadow: rgba(16, 70, 111, 0.13);
  --shadow-strong: rgba(16, 70, 111, 0.19);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(118, 217, 92, 0.34), transparent 25rem),
    radial-gradient(circle at 82% 20%, rgba(45, 127, 172, 0.24), transparent 30rem),
    radial-gradient(circle at 56% 92%, rgba(76, 169, 52, 0.18), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 46%, #eef8ff 100%);
  background-size: 130% 130%, 140% 140%, 150% 150%, 100% 100%;
  animation: background-breathe 12s ease-in-out infinite alternate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(16, 70, 111, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 70, 111, 0.05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 75%);
  animation: grid-slide 16s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 0deg at 50% 50%, transparent 0 22%, rgba(118, 217, 92, 0.11) 28%, transparent 34% 58%, rgba(45, 127, 172, 0.10) 64%, transparent 72% 100%);
  filter: blur(20px);
  animation: slow-vortex 20s linear infinite;
  opacity: 0.9;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.soft-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(16,70,111,0.05) 0 1px, transparent 1px 8px);
  animation: noise-drift 5s steps(6) infinite;
}

.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-mesh,
.energy-field,
.motion-grid,
.pulse-rings,
.light-sweeps {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.gradient-mesh {
  background:
    radial-gradient(circle at 20% 25%, rgba(118, 217, 92, 0.32), transparent 20rem),
    radial-gradient(circle at 78% 15%, rgba(45, 127, 172, 0.22), transparent 24rem),
    radial-gradient(circle at 60% 82%, rgba(76, 169, 52, 0.16), transparent 26rem),
    radial-gradient(circle at 38% 55%, rgba(255, 255, 255, 0.90), transparent 18rem);
  filter: blur(8px);
  animation: mesh-travel 13s ease-in-out infinite alternate;
}

.energy-field {
  opacity: 0.68;
  background:
    repeating-linear-gradient(115deg, transparent 0 5.2rem, rgba(45,127,172,0.08) 5.25rem, transparent 5.5rem),
    repeating-linear-gradient(62deg, transparent 0 7.2rem, rgba(76,169,52,0.075) 7.28rem, transparent 7.55rem);
  animation: energy-shift 9s linear infinite;
  transform: rotate(-2deg) scale(1.08);
}

.motion-grid {
  opacity: 0.34;
  background:
    linear-gradient(rgba(76, 169, 52, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 127, 172, 0.11) 1px, transparent 1px);
  background-size: 115px 115px;
  transform: perspective(720px) rotateX(60deg) translateY(14%);
  transform-origin: 50% 100%;
  animation: perspective-grid 6.5s linear infinite;
  mask-image: linear-gradient(to top, black 0%, transparent 72%);
}

.pulse-rings {
  inset: 0;
}
.pulse-rings span {
  position: absolute;
  width: 36vmin;
  height: 36vmin;
  border: 1px solid rgba(76, 169, 52, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(45, 127, 172, 0.08), inset 0 0 26px rgba(118, 217, 92, 0.08);
  opacity: 0;
  animation: pulse-ring 7s ease-out infinite;
}
.pulse-rings span:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.pulse-rings span:nth-child(2) { right: 13%; top: 12%; width: 28vmin; height: 28vmin; animation-delay: -2.2s; }
.pulse-rings span:nth-child(3) { left: 54%; bottom: 7%; width: 44vmin; height: 44vmin; animation-delay: -4.6s; }

.light-sweeps {
  inset: -30%;
  transform: rotate(-14deg);
}
.light-sweeps span {
  position: absolute;
  left: -25%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76,169,52,0.18), rgba(45,127,172,0.20), transparent);
  filter: blur(0.5px);
  animation: sweep 5.6s cubic-bezier(.35,0,.35,1) infinite;
}
.light-sweeps span:nth-child(1) { top: 22%; animation-delay: 0s; }
.light-sweeps span:nth-child(2) { top: 48%; animation-delay: -1.9s; width: 62%; opacity: 0.85; }
.light-sweeps span:nth-child(3) { top: 70%; animation-delay: -3.7s; width: 42%; opacity: 0.72; }

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite alternate;
}
.ambient-one { top: -12rem; left: -8rem; background: rgba(118, 217, 92, 0.36); }
.ambient-two { right: -12rem; top: 5rem; background: rgba(45, 127, 172, 0.28); animation-delay: -2s; }
.ambient-three { left: 38%; bottom: -18rem; background: rgba(197, 238, 255, 0.76); animation-delay: -4s; }

.edge-accent {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(10px, 2vw, 28px);
  height: 100vh;
  background: linear-gradient(180deg, rgba(16, 70, 111, 0.86), rgba(45, 127, 172, 0.64) 64%, rgba(76, 169, 52, 0.84) 64%, rgba(118, 217, 92, 0.92));
  background-size: 100% 160%;
  box-shadow: -18px 0 48px rgba(16, 70, 111, 0.10);
  z-index: 1;
  animation: edge-flow 5.5s ease-in-out infinite alternate;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 2rem;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74) 58%, rgba(232, 245, 255, 0.76)),
    var(--surface);
  box-shadow: 0 26px 80px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(21px) saturate(130%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0 44%, rgba(76,169,52,0.62), rgba(45,127,172,0.52), transparent 72% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 5.8s linear infinite;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -24%;
  width: 47rem;
  height: 47rem;
  background: radial-gradient(circle, rgba(118,217,92,0.28), rgba(45,127,172,0.12) 42%, transparent 66%);
  animation: pulse 3.8s ease-in-out infinite alternate;
}

.card-glow {
  position: absolute;
  inset: auto auto 8% 8%;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45,127,172,0.14), transparent 68%);
  animation: drift 6s ease-in-out infinite alternate;
}

.card-streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.card-streaks span {
  position: absolute;
  left: -45%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,127,172,0.25), rgba(76,169,52,0.22), transparent);
  animation: card-line 4.4s cubic-bezier(.48,0,.32,1) infinite;
}
.card-streaks span:nth-child(1) { top: 24%; animation-delay: -0.4s; }
.card-streaks span:nth-child(2) { top: 52%; animation-delay: -2s; width: 58%; }
.card-streaks span:nth-child(3) { top: 78%; animation-delay: -3.2s; width: 38%; }

.brand-row {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  width: min(280px, 62vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(16,70,111,0.12));
  animation: reveal 900ms ease-out both, logo-float 5.8s ease-in-out 900ms infinite alternate;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.92rem;
  border: 1px solid rgba(76, 169, 52, 0.25);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 30px rgba(16, 70, 111, 0.07), inset 0 1px 0 rgba(255,255,255,0.92);
  white-space: nowrap;
  backdrop-filter: blur(14px);
}
.status-pill span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(76, 169, 52, 0.42);
  animation: ping 1.25s ease-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 760px;
  padding-bottom: 2rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 800;
}
h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
  background: linear-gradient(100deg, #0a2944, #10466f 25%, #4ca934 48%, #75d95c 58%, #0a2944 80%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.8s ease-in-out infinite;
}
.lead {
  margin: 1.35rem 0 0;
  max-width: 630px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  line-height: 1.65;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #65c64e, #2d7fac);
  background-size: 180% 180%;
  box-shadow: 0 16px 32px rgba(76, 169, 52, 0.24);
  animation: button-glow 3.2s ease-in-out infinite alternate;
}
.ghost-button {
  color: var(--blue);
  border: 1px solid rgba(16, 70, 111, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(16, 70, 111, 0.06);
}
.primary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px var(--shadow-strong);
}
.primary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(45, 127, 172, 0.26);
  outline-offset: 4px;
}

.signal-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(16, 70, 111, 0.13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 35%, rgba(118,217,92,0.20), transparent 48%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(232,245,255,0.70));
  box-shadow: 0 18px 50px rgba(16, 70, 111, 0.09), inset 0 1px 0 rgba(255,255,255,0.9);
  animation: panel-hover 5s ease-in-out infinite alternate;
}
.orbit {
  position: absolute;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(76, 169, 52, 0.34);
  border-radius: 50%;
  animation: orbit-spin 4.6s linear infinite;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(45, 127, 172, 0.32);
  border-radius: 50%;
  animation: orbit-spin-reverse 6.5s linear infinite;
}
.orbit::after { inset: 54px; border-color: rgba(76, 169, 52, 0.34); animation-duration: 3.6s; }
.orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(76, 169, 52, 0.55);
}
.orbit span:nth-child(1) { top: -6px; left: 78px; }
.orbit span:nth-child(2) { right: 14px; top: 30px; background: var(--blue-light); box-shadow: 0 0 16px rgba(45, 127, 172, 0.50); }
.orbit span:nth-child(3) { bottom: 14px; left: 30px; }
.orbit span:nth-child(4) { left: -6px; top: 84px; background: var(--blue-light); box-shadow: 0 0 16px rgba(45, 127, 172, 0.50); }
.signal-copy {
  position: relative;
  display: grid;
  gap: 0.45rem;
  text-align: center;
}
.signal-copy strong { font-size: 1.05rem; color: var(--text); }
.signal-copy small { color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer strong { color: var(--green); }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes background-breathe {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 8% 12%, 88% 18%, 42% 86%, 0 0; }
}
@keyframes grid-slide { to { background-position: 78px 78px, 78px 78px; } }
@keyframes slow-vortex { to { transform: rotate(360deg); } }
@keyframes noise-drift { to { transform: translate3d(18px, -12px, 0); } }
@keyframes mesh-travel {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.02); }
}
@keyframes energy-shift { to { background-position: 380px -260px, -320px 220px; } }
@keyframes perspective-grid { to { background-position: 0 115px, 115px 0; } }
@keyframes pulse-ring {
  0% { transform: scale(0.3); opacity: 0; }
  12% { opacity: 0.78; }
  80%, 100% { transform: scale(1.95); opacity: 0; }
}
@keyframes sweep { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateX(290%); opacity: 0; } }
@keyframes edge-flow { to { background-position: 0 100%; box-shadow: -22px 0 60px rgba(76,169,52,0.14); } }
@keyframes rotate-border { to { --angle: 360deg; } }
@keyframes float { to { transform: translate3d(2.4rem, 1.8rem, 0) scale(1.09); } }
@keyframes drift { to { transform: translate3d(6rem, -2.4rem, 0) scale(1.25); } }
@keyframes pulse { to { transform: scale(1.09); opacity: 0.78; } }
@keyframes card-line { 0% { transform: translateX(0) rotate(-8deg); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateX(360%) rotate(-8deg); opacity: 0; } }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes logo-float { to { transform: translateY(-5px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes button-glow { to { background-position: 100% 50%; box-shadow: 0 18px 44px rgba(45, 127, 172, 0.16), 0 12px 34px rgba(76, 169, 52, 0.26); } }
@keyframes panel-hover { to { transform: translateY(-8px); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(76, 169, 52, 0.36); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(76, 169, 52, 0); }
}

@media (max-width: 880px) {
  .page-shell { width: min(100% - 28px, 720px); padding: 28px 0; }
  .hero-card { grid-template-columns: 1fr; min-height: auto; }
  .brand-row { align-items: flex-start; flex-direction: column; }
  .hero-content { align-self: auto; padding-bottom: 0; }
  .signal-panel { justify-self: stretch; width: 100%; height: 210px; }
  .motion-grid { opacity: 0.22; }
}
@media (max-width: 520px) {
  .status-pill { font-size: 0.85rem; }
  .primary-button, .ghost-button { width: 100%; }
  .hero-card { border-radius: 24px; }
  .edge-accent { width: 8px; }
  .pulse-rings span { width: 50vmin; height: 50vmin; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  #particle-canvas { display: none; }
}
