/* ============================================================
   Aqua Intelligence Layer 2.1 — Lighter & livelier
   - Drops backdrop-filter (huge perf cost)
   - Drops most mix-blend-mode (expensive on large layers)
   - Amplifies visible motion (mesh / streak / keyvisual / pulse)
   - Slim layer counts
   ============================================================ */

/* ---- Extended color tokens ---- */
:root {
  --deep-navy: #071630;
  --aqua: #35C7FF;
  --aqua-soft: #9AD8FF;
  --panel-border: rgba(123, 188, 239, .28);
  --premium-shadow:
    0 18px 50px rgba(15, 36, 68, .10),
    0 4px 12px rgba(46, 123, 214, .06);
  --section-pad: clamp(88px, 9vw, 120px);
}

/* ---- Reset v1 noise (kill body fixed bg) ---- */
body { background: #fff; }
body::before { display: none !important; }

/* Very subtle global noise (CSS only, no image) */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(15,36,68,.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .9;
}
.site-header, section, footer { position: relative; z-index: 1; }

/* ===== Typography ===== */
body { line-height: 1.85; font-feature-settings: "palt"; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--navy);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title {
  font-weight: 780;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.012em;
}
.section-eyebrow { font-size: 12px; letter-spacing: .28em; color: var(--blue); }
.section-lead { color: #5b6b85; font-size: 16px; line-height: 1.95; }

section { padding: var(--section-pad) 0; }
.hero { padding: clamp(112px, 11vw, 148px) 0 clamp(88px, 9vw, 120px); }
.container { max-width: 1200px; }
.hero-inner { max-width: 1240px; gap: clamp(40px, 6vw, 72px); }

/* ===== Buttons ===== */
.btn {
  padding: 16px 34px; font-size: 15px; letter-spacing: .02em;
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46,123,214,.26), inset 0 1px 0 rgba(255,255,255,.4);
  border: 0;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(46,123,214,.34);
  background: linear-gradient(135deg, #2566B8 0%, #19B5F0 100%);
}
.btn-outline {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--panel-border); color: var(--navy);
}
.btn-outline:hover { background: #fff; border-color: var(--blue); transform: translateY(-1px); }

/* ===== Cards (no backdrop-filter — perf) ===== */
.value-card, .service-card, .case-card, .price-card-item, .feature-list .item {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: var(--premium-shadow);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.value-card:hover, .service-card:hover, .case-card:hover,
.price-card-item:hover, .feature-list .item:hover {
  transform: translateY(-5px);
  box-shadow:
    0 22px 50px rgba(15,36,68,.13),
    0 5px 14px rgba(46,123,214,.08);
}
.value-icon {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
  box-shadow: 0 8px 18px rgba(46,123,214,.30), inset 0 1px 0 rgba(255,255,255,.4);
}

/* ============================================================
   HERO — Lighter rebuild, livelier motion
   ============================================================ */
.hero {
  isolation: isolate; overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 28%, rgba(53,199,255,.22), transparent 65%),
    radial-gradient(700px 480px at 14% 78%, rgba(46,123,214,.16), transparent 70%),
    linear-gradient(180deg, #F7FBFE 0%, #EAF4FC 60%, #DCEDFB 100%);
}
.hero::before, .hero::after { content: none !important; }

/* L1 mesh — bigger drift */
.hero-bg-mesh {
  position: absolute; inset: -6%; z-index: 0;
  background: url("../images/bg/v2/M01v2_hero_mesh.webp") center/cover no-repeat;
  opacity: .95;
  animation: meshDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes meshDrift {
  0%   { transform: translate3d(-3%,  1%, 0) scale(1.02); }
  100% { transform: translate3d( 3%, -2%, 0) scale(1.08); }
}

/* L2 lightstreak — bolder presence */
.hero-bg-streak {
  position: absolute; inset: -8%; z-index: 1;
  background: url("../images/bg/v2/M06v2_lightstreak.png") center/cover no-repeat;
  opacity: .65;
  animation: streakSweep 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes streakSweep {
  0%   { transform: translate3d(-5%, 2%, 0) scale(1.02) rotate(-1deg); }
  100% { transform: translate3d( 5%,-3%, 0) scale(1.08) rotate(1deg); }
}

/* L3 motif — visible & rotating */
.hero-bg-motif {
  position: absolute; top: -80px; right: -120px;
  width: 680px; height: 680px; z-index: 2;
  background: url("../images/bg/v2/M08v2_logo_A_motif.svg") center/contain no-repeat;
  opacity: .14;
  animation: motifSpin 26s linear infinite;
  will-change: transform;
}
@keyframes motifSpin {
  0%   { transform: rotate(0deg)   translateY(0); }
  50%  { transform: rotate(180deg) translateY(-14px); }
  100% { transform: rotate(360deg) translateY(0); }
}

/* Hero content + canvas */
.hero .bg-canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 5; }

/* Keyvisual — visible motion */
.hero-visual {
  position: relative;
  animation: kvFloat 7s ease-in-out infinite alternate;
}
.hero-visual img {
  border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 24px 40px rgba(15,36,68,.18));
}
@keyframes kvFloat {
  0%   { transform: translateY(-6px) rotate(-1.2deg); }
  100% { transform: translateY(10px) rotate(1.6deg); }
}

/* Hero text parallax (subtle CSS-only) */
.hero-text { will-change: transform; }

/* ===== Values ===== */
.values { background: linear-gradient(180deg, #fff 0%, #F7FBFE 100%); isolation: isolate; }
.values::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/bg/v2/M05v2_grid_pattern.svg") repeat;
  background-size: 36px 36px;
  opacity: .12; pointer-events: none; z-index: 0;
}
.values::after {
  content: ""; position: absolute; top: -120px; right: -100px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(53,199,255,.22), transparent 70%);
  pointer-events: none; z-index: 0;
  animation: glowPulse 9s ease-in-out infinite alternate;
}
.values .container { position: relative; z-index: 1; }
@keyframes glowPulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.1); opacity: .8; }
}

/* ===== Services ===== */
.services {
  background:
    radial-gradient(700px 380px at 18% 18%, rgba(154,216,255,.20), transparent 70%),
    linear-gradient(180deg, #fff 0%, #F4FAFE 100%);
  isolation: isolate;
}
.services::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/bg/v2/M04v2_section_divider_B.png") right top / 56% auto no-repeat;
  opacity: .28; pointer-events: none; z-index: 0;
}
.services::after {
  content: ""; position: absolute; bottom: -200px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,123,214,.14), transparent 70%);
  pointer-events: none; z-index: 0;
  animation: glowPulse 11s ease-in-out infinite alternate;
}
.services .container { position: relative; z-index: 1; }
.service-card .thumb { background: #EAF4FC; }
.service-card .body { padding: 28px 28px 30px; }
.service-card h3 { font-weight: 760; }

/* ===== Cases ===== */
.cases {
  background:
    radial-gradient(800px 420px at 80% 30%, rgba(53,199,255,.12), transparent 70%),
    linear-gradient(180deg, #F7FBFE 0%, #FFFFFF 100%);
  isolation: isolate;
}
.cases::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/bg/v2/M04v2_section_divider_C.png") left center / 52% auto no-repeat;
  opacity: .25; pointer-events: none; z-index: 0;
}
.cases .container { position: relative; z-index: 1; }
.case-tag {
  background: linear-gradient(135deg, rgba(46,123,214,.10), rgba(53,199,255,.16));
  color: var(--blue); font-weight: 700;
}

/* ============================================================
   CTA band — Navy Tech Contrast 2.1
   ============================================================ */
.cta-band {
  isolation: isolate; overflow: hidden;
  color: #fff;
  padding: clamp(96px, 10vw, 132px) 0;
  background:
    radial-gradient(900px 540px at 78% 22%, rgba(53,199,255,.30), transparent 65%),
    radial-gradient(700px 460px at 20% 80%, rgba(46,123,214,.22), transparent 70%),
    linear-gradient(180deg, var(--deep-navy) 0%, #0B1F3F 70%, var(--navy) 100%);
}
.cta-band::before, .cta-band::after { content: none !important; }

.cta-bg-streak {
  position: absolute; inset: -6%;
  background: url("../images/bg/v2/M03v2_cta_dark_glow.webp") center/cover no-repeat;
  z-index: 0; opacity: .85;
  animation: ctaStreakSweep 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ctaStreakSweep {
  0%   { transform: translate3d(-3%, 1%, 0) scale(1.04); }
  100% { transform: translate3d( 4%,-2%, 0) scale(1.10); }
}
.cta-bg-lightstreak {
  position: absolute; inset: -6%;
  background: url("../images/bg/v2/M06v2_lightstreak.png") center/cover no-repeat;
  z-index: 1; opacity: .28;
  animation: streakSweep 12s ease-in-out infinite alternate;
}
.cta-bg-grid {
  position: absolute; inset: 0;
  background: url("../images/bg/v2/M05v2_grid_pattern.svg") repeat;
  background-size: 40px 40px;
  opacity: .08; z-index: 2;
}
.cta-bg-pulse {
  position: absolute; top: -240px; right: -180px;
  width: 920px; height: 920px;
  background: radial-gradient(circle, rgba(53,199,255,.55), rgba(46,123,214,.10) 45%, transparent 70%);
  z-index: 3;
  animation: ctaPulse 8s ease-in-out infinite alternate;
}
@keyframes ctaPulse {
  0%   { transform: scale(1.0);  opacity: .55; }
  100% { transform: scale(1.15); opacity: .85; }
}
.cta-band .bg-canvas { z-index: 4; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-band .container { position: relative; z-index: 5; }
.cta-band h2 {
  color: #fff; font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.012em;
}
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band .btn-primary {
  background: linear-gradient(135deg, #fff 0%, var(--aqua-soft) 100%);
  color: var(--navy);
  box-shadow: 0 14px 36px rgba(53,199,255,.42), inset 0 1px 0 rgba(255,255,255,.6);
}
.cta-band .btn-primary:hover { background: #fff; color: var(--deep-navy); }

/* ===== Page-Hero ===== */
.page-hero {
  background:
    radial-gradient(700px 360px at 80% 24%, rgba(53,199,255,.18), transparent 70%),
    linear-gradient(180deg, #F7FBFE 0%, #EFF7FD 100%);
  isolation: isolate; overflow: hidden;
  padding: clamp(96px, 9vw, 124px) 0 clamp(64px, 7vw, 88px);
}
.page-hero::before, .page-hero::after { content: none !important; }
.page-hero .ph-mesh {
  position: absolute; inset: -6%;
  background: url("../images/bg/v2/M02v2_pagehero_mesh.webp") center/cover no-repeat;
  opacity: .8; z-index: 0;
  animation: meshDrift 20s ease-in-out infinite alternate;
}
.page-hero .ph-motif {
  position: absolute; top: -40px; right: -80px;
  width: 460px; height: 460px;
  background: url("../images/bg/v2/M08v2_logo_A_motif.svg") center/contain no-repeat;
  opacity: .14; z-index: 1;
  animation: motifSpin 22s linear infinite;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.018em; }

/* ===== Footer ===== */
.site-footer {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(46,123,214,.18), transparent 70%),
    linear-gradient(180deg, var(--deep-navy) 0%, var(--navy) 100%);
  isolation: isolate; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua) 30%, var(--aqua) 70%, transparent);
  opacity: .8; z-index: 2;
}
.site-footer::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: radial-gradient(600px 80px at 50% 0%, rgba(53,199,255,.30), transparent 70%);
  pointer-events: none; z-index: 1;
}
.site-footer .container { position: relative; z-index: 3; }

/* ===== Header ===== */
.site-header {
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(123,188,239,.18);
}

/* ===== Reveal-on-scroll (lightweight) ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-mesh, .hero-bg-streak, .hero-bg-motif,
  .cta-bg-streak, .cta-bg-lightstreak, .cta-bg-pulse,
  .page-hero .ph-mesh, .page-hero .ph-motif,
  .hero-visual, .values::after, .services::after { animation: none !important; }
  .hero .bg-canvas, .cta-band .bg-canvas { display: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 740px) {
  .hero { padding: 96px 0 72px; }
  .hero-bg-streak { opacity: .45; }
  .hero-bg-motif { width: 360px; height: 360px; opacity: .10; right: -80px; top: -40px; }
  .cta-bg-lightstreak { display: none; }
  .cta-bg-pulse { width: 560px; height: 560px; right: -180px; top: -140px; }
  section { padding: 72px 0; }
}
