/* ============================================================
   PDAwin — Hydrological Monitoring
   Fresh presentation site, water-themed design
   ============================================================ */

:root {
  --navy-950: #03101d;
  --navy-900: #051c30;
  --navy-800: #082a45;
  --navy-700: #0d3a5c;
  --bg-base: #03101d;
  --bg-panel: #07223a;
  --cyan: #38e1ff;
  --blue: #0ea5e9;
  --indigo: #1d4ed8;
  --ink: #0b2538;
  --text: #a7c4d9;
  --text-light: #9fc2d8;
  --white: #f4fbff;
  --grad: linear-gradient(120deg, #38e1ff, #0ea5e9 55%, #1d4ed8);
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-base);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--white); }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(56, 225, 255, .7);
  pointer-events: none;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.nav.scrolled {
  background: rgba(5, 28, 48, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(3, 16, 29, .4);
  padding: 10px 0;
}

.nav-inner {
  width: min(1240px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Monoline mark: circle with double wave */
.brand-mark {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--white);
  stroke-width: 7;
  stroke-linecap: round;
  transition: transform .35s ease;
}

.brand-mark .brand-wave { stroke: var(--cyan); }

.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: .015em;
  color: var(--white);
}

.brand-word em {
  font-style: normal;
  color: var(--cyan);
}

.brand-tag {
  color: var(--text-light);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.7;
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  position: relative;
  transition: color .25s;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width .3s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 600;
}

.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(14, 165, 233, .25), transparent 60%),
    radial-gradient(900px 500px at 15% 110%, rgba(29, 78, 216, .3), transparent 60%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 225, 255, .08) 0%, transparent 60%);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 160px;
  max-width: 880px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-light);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 640px;
  margin: 28px auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(14, 165, 233, .55);
}

.btn-primary:hover { box-shadow: 0 18px 40px -8px rgba(14, 165, 233, .7); }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(244, 251, 255, .35);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 12px 30px -10px rgba(3, 16, 29, .5);
}

/* ============ Hero waves ============ */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  z-index: 3;
  line-height: 0;
}

.hero-waves svg { width: 100%; height: clamp(70px, 11vw, 150px); }

.wave { fill: var(--bg-base); }
.wave-1 { opacity: .35; animation: waveShift 9s ease-in-out infinite alternate; }
.wave-2 { opacity: .6;  animation: waveShift 7s ease-in-out infinite alternate-reverse; }
.wave-3 { opacity: 1; }

@keyframes waveShift {
  from { transform: translateX(0); }
  to   { transform: translateX(-42px); }
}

/* ============ Scroll hint ============ */
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px; height: 46px;
  border: 2px solid rgba(244, 251, 255, .4);
  border-radius: 16px;
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 4px; height: 10px;
  background: var(--cyan);
  border-radius: 4px;
  margin-top: 8px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ Scroll scene (assembling landscape) ============ */
.scene {
  height: 520vh;
  position: relative;
  background: var(--bg-base);
}

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.scene-svg {
  width: min(1440px, 100%);
  height: 86vh;
  display: block;
}

.scene-caption {
  position: absolute;
  top: 11vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.scene-caption span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}

.scene-caption span.on {
  opacity: 1;
  transform: none;
}

/* Trees & popping elements scale from their base */
.scTree, #scCloud, #scGear {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

#scCloud { transform-origin: 50% 50%; }

#scMast {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

/* Raindrops fall from the source cloud in a staggered loop */
.scDrop { animation: scDropFall 1s linear infinite; opacity: 0; }

.scDrop:nth-child(2) { animation-delay: .25s; }
.scDrop:nth-child(3) { animation-delay: .5s; }
.scDrop:nth-child(4) { animation-delay: .75s; }

@keyframes scDropFall {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: .9; }
  80%  { opacity: .9; }
  100% { transform: translateY(24px); opacity: 0; }
}

/* Ripples bob so the river reads as water */
.scRipple {
  animation: scRippleBob 1.9s ease-in-out infinite;
  opacity: .9;
}

.scRipple:nth-child(2n) { animation-delay: .5s; animation-duration: 2.4s; }
.scRipple:nth-child(3n) { animation-delay: .9s; animation-duration: 1.6s; }
.scRipple:nth-child(5n) { animation-delay: 1.4s; }

@keyframes scRippleBob {
  0%, 100% { transform: translate(0, 0); opacity: .9; }
  50%      { transform: translate(-4px, -6px); opacity: .35; }
}

/* River current: several short glowing streaks (dash length 8 on a
   pathLength-100 course). Each one fades in somewhere along the river,
   glides a stretch downstream and dissolves again - staggered starts,
   speeds and segments keep the whole course alive. */
.scPulse {
  stroke-dasharray: 4 100;
  opacity: 0;
  animation: linear infinite;
}

.scPulse-1 { animation-name: scPulseSeg1; animation-duration: 2.4s; }
.scPulse-2 { animation-name: scPulseSeg2; animation-duration: 2.8s; animation-delay: .9s; }
.scPulse-3 { animation-name: scPulseSeg3; animation-duration: 2.6s; animation-delay: 1.6s; }
.scPulse-4 { animation-name: scPulseSeg4; animation-duration: 3s;   animation-delay: 2.1s; }

/* Source -> midway */
@keyframes scPulseSeg1 {
  0%   { stroke-dashoffset: 4;   opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -47; opacity: 0; }
}

/* First bend -> lower reach */
@keyframes scPulseSeg2 {
  0%   { stroke-dashoffset: -17; opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -72; opacity: 0; }
}

/* Midway -> lake */
@keyframes scPulseSeg3 {
  0%   { stroke-dashoffset: -42;  opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* Upper reach -> two-thirds down */
@keyframes scPulseSeg4 {
  0%   { stroke-dashoffset: -2;  opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -62; opacity: 0; }
}

.scData { animation: scDataMove 1.6s linear infinite; }

@keyframes scDataMove {
  from { stroke-dashoffset: 10; }
  to   { stroke-dashoffset: 0; }
}

.scArc { transform-box: fill-box; transform-origin: 0% 100%; }

/* Static fallback: no scrollytelling for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .scene-sticky { position: static; height: auto; padding: 60px 0 0; }
  .scene-svg { height: auto; }
  .scene-caption { display: none; }
}

@media (max-width: 760px) {
  .scene { height: 320vh; }
  .scene-svg { height: 60vh; }
}

/* Portrait screens: the drawing hugs the bottom of its box, so size the
   box to the artwork (2:1) and center it vertically in the viewport */
@media (orientation: portrait) {
  .scene-sticky { align-items: center; }
  .scene-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }
}

/* ============ Stats ============ */
.stats { padding: 70px 0 30px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-num, .stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p {
  color: var(--text);
  font-size: .95rem;
  margin-top: 4px;
}

/* ============ Wave dividers between sections ============ */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 104%;
  margin-left: -2%;
  height: clamp(50px, 8vw, 110px);
  display: block;
}

.wd-light { background: var(--bg-panel); margin-bottom: -1px; }
.wd-dark  { background: var(--navy-950); margin-top: -1px; }

.wd-wave { animation: dividerDrift 8s ease-in-out infinite alternate; }

@keyframes dividerDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-26px); }
}

/* ============ Sections ============ */
.section { padding: 110px 0; }

/* Alternating dark panel shade for visual separation */
.section-panel { background: var(--bg-panel); }

.section-eyebrow {
  color: var(--cyan);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 18px;
  max-width: 640px;
  position: relative;
  padding-bottom: 16px;
}

/* Gradient underline sweeps in when the title scrolls into view */
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 4px;
  width: 0;
  border-radius: 4px;
  background: var(--grad);
  transition: width .9s cubic-bezier(.2, .65, .3, 1) .35s;
}

.section-title.visible::after { width: 76px; }

.section-lead {
  max-width: 620px;
  font-size: 1.08rem;
  margin-bottom: 56px;
}

.section-lead strong {
  color: var(--white);
  font-weight: 700;
}

/* ============ Cards (Solutions) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(244, 251, 255, .04);
  border: 1px solid rgba(56, 225, 255, .14);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s, background .35s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: rgba(56, 225, 255, .07);
  border-color: rgba(56, 225, 255, .4);
}

.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px -8px rgba(14, 165, 233, .5);
}

/* Icons pop in, then float gently forever */
.card.visible .card-icon {
  animation:
    iconPop .65s cubic-bezier(.34, 1.56, .64, 1) both,
    iconFloat 4.5s ease-in-out 1.2s infinite alternate;
}

@keyframes iconPop {
  0%   { transform: scale(.3) rotate(-12deg); }
  70%  { transform: scale(1.12) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes iconFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

.card-icon svg { width: 34px; height: 34px; }

.card h3 { font-size: 1.3rem; margin-bottom: 10px; }

.card p { font-size: .98rem; color: var(--text-light); }

/* ============ Applications (dark) ============ */
.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(14, 165, 233, .16), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(29, 78, 216, .2), transparent 60%),
    linear-gradient(170deg, var(--navy-900), var(--navy-950));
}

.section-dark .container { position: relative; z-index: 1; }

/* Rising bubbles in the dark section */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(56, 225, 255, .35), rgba(56, 225, 255, .06) 65%);
  border: 1px solid rgba(56, 225, 255, .18);
  animation: bubbleRise linear infinite;
}

.bubbles span:nth-child(1)  { left: 6%;  width: 14px; height: 14px; animation-duration: 13s; }
.bubbles span:nth-child(2)  { left: 14%; width: 7px;  height: 7px;  animation-duration: 17s; animation-delay: 3s; }
.bubbles span:nth-child(3)  { left: 23%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 6s; }
.bubbles span:nth-child(4)  { left: 32%; width: 9px;  height: 9px;  animation-duration: 19s; animation-delay: 1s; }
.bubbles span:nth-child(5)  { left: 41%; width: 13px; height: 13px; animation-duration: 14s; animation-delay: 8s; }
.bubbles span:nth-child(6)  { left: 50%; width: 6px;  height: 6px;  animation-duration: 21s; animation-delay: 4s; }
.bubbles span:nth-child(7)  { left: 59%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 9s; }
.bubbles span:nth-child(8)  { left: 67%; width: 8px;  height: 8px;  animation-duration: 18s; animation-delay: 2s; }
.bubbles span:nth-child(9)  { left: 75%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: 7s; }
.bubbles span:nth-child(10) { left: 83%; width: 7px;  height: 7px;  animation-duration: 20s; animation-delay: 5s; }
.bubbles span:nth-child(11) { left: 90%; width: 15px; height: 15px; animation-duration: 13s; animation-delay: 10s; }
.bubbles span:nth-child(12) { left: 96%; width: 10px; height: 10px; animation-duration: 16s; animation-delay: 0s; }

@keyframes bubbleRise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: .8; }
  100% { transform: translate(24px, -108vh) scale(1.25); opacity: 0; }
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-eyebrow { color: var(--cyan); }

.apps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.app {
  background: rgba(244, 251, 255, .04);
  border: 1px solid rgba(56, 225, 255, .14);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, background .3s, border-color .3s;
}

.app:hover {
  transform: translateY(-6px);
  background: rgba(56, 225, 255, .08);
  border-color: rgba(56, 225, 255, .4);
}

.app svg {
  width: 38px; height: 38px;
  color: var(--cyan);
  margin-bottom: 18px;
}

.app.visible svg {
  animation: iconPop .6s cubic-bezier(.34, 1.56, .64, 1) both .15s;
}

.app:hover svg {
  animation: iconFloat .8s ease-in-out infinite alternate;
}

.app h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.app p { color: var(--text-light); font-size: .92rem; }

/* ============ Software ============ */
.sw-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.sw-lead {
  font-size: 1.08rem;
  margin-bottom: 30px;
  max-width: 480px;
}

.sw-list { list-style: none; }

.sw-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.sw-dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-1px);
}

/* Dashboard mockup */
.sw-window {
  background:
    radial-gradient(420px 260px at 85% -10%, rgba(56, 225, 255, .14), transparent 60%),
    linear-gradient(165deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(56, 225, 255, .18);
  border-radius: 20px;
  padding: 18px 22px 0;
  box-shadow: 0 40px 80px -30px rgba(8, 42, 69, .55);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}

.sw-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.sw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 16px;
}

.sw-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(244, 251, 255, .22);
}

.sw-bar span:first-child { background: rgba(56, 225, 255, .65); }

.sw-bar b {
  margin-left: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--text-light);
}

.sw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.sw-stat {
  background: rgba(244, 251, 255, .05);
  border: 1px solid rgba(56, 225, 255, .12);
  border-radius: 12px;
  padding: 14px 16px;
}

.sw-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--white);
}

.sw-stat b i {
  font-style: normal;
  font-size: .85rem;
  color: var(--text-light);
}

.sw-stat u {
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.sw-stat-ok b { color: #34e3a0; }

.sw-chart {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px;
  height: 170px;
}

.sw-grid line {
  stroke: rgba(244, 251, 255, .07);
  stroke-width: 1;
}

/* Chart line draws itself when the section scrolls into view */
.sw-line {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
}

.sw-visual.visible .sw-line {
  animation: swDraw 2.2s cubic-bezier(.4, 0, .2, 1) .3s forwards;
}

@keyframes swDraw { to { stroke-dashoffset: 0; } }

.sw-area {
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}

.sw-visual.visible .sw-area { opacity: 1; }

.sw-ping {
  fill: var(--cyan);
  opacity: 0;
}

.sw-visual.visible .sw-ping {
  opacity: 1;
  transition: opacity .4s ease 2.4s;
  animation: pingPulse 2s ease-in-out 2.5s infinite;
}

@keyframes pingPulse {
  0%, 100% { r: 5; opacity: 1; }
  50%      { r: 7; opacity: .55; }
}

/* ============ Why ============ */
.why-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}

.why-list { list-style: none; margin-top: 36px; }

.why-list li {
  position: relative;
  padding: 0 0 0 38px;
  margin-bottom: 24px;
  font-size: 1.04rem;
}

.why-list li strong { color: var(--white); }

.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.why-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.why-drop {
  width: 150px;
  filter: drop-shadow(0 18px 40px rgba(14, 165, 233, .45));
  animation: dropFloat 5s ease-in-out infinite;
}

@keyframes dropFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.pulse-ring {
  position: absolute;
  width: 220px; height: 220px;
  border: 1.5px solid rgba(14, 165, 233, .35);
  border-radius: 50%;
  animation: ringPulse 4s ease-out infinite;
}

.pulse-ring.r2 { animation-delay: 1.3s; }
.pulse-ring.r3 { animation-delay: 2.6s; }

@keyframes ringPulse {
  0%   { transform: scale(.7); opacity: 0; }
  30%  { opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(115deg, #38e1ff, #0ea5e9 30%, #1d4ed8 55%, #0ea5e9 80%, #38e1ff);
  background-size: 280% 100%;
  animation: ctaShift 14s ease-in-out infinite alternate;
  padding: 120px 0 90px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@keyframes ctaShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.cta-waves {
  position: absolute;
  top: -1px; left: 0; right: 0;
  line-height: 0;
}

.cta-waves svg {
  width: 104%;
  margin-left: -2%;
  height: clamp(40px, 6vw, 90px);
  display: block;
}

.cta-waves path { animation: dividerDrift 7s ease-in-out infinite alternate-reverse; }

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.06)' d='M0,160 C320,240 640,80 960,140 C1180,180 1320,140 1440,120 L1440,320 L0,320 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-band p {
  opacity: .92;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

/* ============ Contact ============ */
.contact-aside {
  background:
    radial-gradient(420px 260px at 80% -10%, rgba(56, 225, 255, .12), transparent 60%),
    linear-gradient(170deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(56, 225, 255, .15);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 520px;
  text-align: center;
}

.contact-aside h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.contact-aside p { color: var(--text-light); font-size: .96rem; }

.email-line { margin: 14px 0 18px; }

.email-line a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(56, 225, 255, .4);
  transition: border-color .25s, color .25s;
}

.email-line a:hover { border-color: var(--cyan); }

.aside-note { font-size: .86rem; opacity: .8; }

/* ============ Footer ============ */
.footer {
  background: #020a12;
  border-top: 1px solid rgba(56, 225, 255, .08);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-footer { display: flex; align-items: center; gap: 12px; }

.brand-footer .brand-mark { width: 34px; height: 34px; }

.brand-footer .brand-word { font-size: 1.15rem; }

.footer p { color: var(--text-light); font-size: .9rem; }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform .8s cubic-bezier(.2, .65, .3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* Scroll-driven parallax (JS sets --parallax) */
.parallaxed {
  transform: translate3d(0, var(--parallax, 0px), 0);
  transition:
    opacity .8s cubic-bezier(.2, .65, .3, 1),
    transform .3s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .why-wrap { grid-template-columns: 1fr; gap: 30px; }
  .why-visual { min-height: 280px; }
  .sw-wrap { grid-template-columns: 1fr; gap: 40px; }
  .sw-window { transform: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 8px;
    background: rgba(5, 28, 48, .97);
    backdrop-filter: blur(14px);
    padding: 18px 6vw 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 6px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 80px 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { font-size: 1.3rem; }
  .brand-tag { display: none; }
}

@media (max-width: 560px) {
  .contact-aside { padding: 36px 24px; }
}
