/* ===================================================================
 * DeepWave — Main stylesheet
 *
 * Sections:
 *   1.  Reset & tokens
 *   2.  Base typography
 *   3.  Accessibility
 *   4.  Layout primitives
 *   5.  Animations & reveal
 *   6.  Glass / ambient
 *   7.  Navigation
 *   8.  Hero
 *   9.  Services
 *   10. About
 *   11. Products (process)
 *   12. SaaS (dark)
 *   13. Partners
 *   14. Contact
 *   15. Footer
 *   16. Cursor glow
 *   17. Skip-link / utilities
 *   18. Responsive
 * =================================================================== */

/* ── 1. Reset & tokens ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ocean:    #015486;
  --deep:     #012d47;
  --sky:      #8ed8ff;
  --sky-lt:   #d4f0ff;
  --bg:       #f3f9fe;
  --white:    #ffffff;
  --text:     #0a1928;
  --mid:      #4a6070;
  --light:    #8aa0b0;
  --border:   rgba(1,84,134,0.09);

  --radius-sm: 11px;
  --radius:    16px;
  --radius-lg: 22px;

  --ease-out:  cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── 2. Base typography ─────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.12; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 2px; }

::selection { background: var(--sky); color: var(--deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 3. Accessibility ────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 18px; background: var(--deep); color: #fff;
  font-weight: 600; border-radius: 0 0 10px 0; z-index: 10000;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── 4. Layout primitives ──────────────────────────────────────── */
section { padding: 90px 5%; position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }

.stag { display: inline-block; color: var(--ocean); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.sh2 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 800; color: var(--deep); margin-bottom: 12px; }
.ssub { font-size: .97rem; color: var(--mid); line-height: 1.78; max-width: 480px; }
.shd { margin-bottom: 52px; position: relative; z-index: 1; }
.shd.c { text-align: center; }
.shd.c .ssub { margin: 0 auto; }

/* ── 5. Animations & reveal ──────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.rl { opacity: 0; transform: translateX(-28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.rr { opacity: 0; transform: translateX(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.rv.in, .rl.in, .rr.in { opacity: 1; transform: none; }
.d1 { transition-delay: .06s; } .d2 { transition-delay: .13s; } .d3 { transition-delay: .20s; }
.d4 { transition-delay: .27s; } .d5 { transition-delay: .34s; } .d6 { transition-delay: .41s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes causticShift { 0% { opacity: .8; transform: scale(1) translateY(0); } 100% { opacity: 1; transform: scale(1.06) translateY(-10px); } }
@keyframes raySway { 0%, 100% { transform: rotate(var(--r, -10deg)) scaleX(1); opacity: .4; } 50% { transform: rotate(var(--r, -10deg)) scaleX(1.4); opacity: .9; } }
@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: .6; }
  50%  { transform: translateY(-40vh) translateX(12px) scale(1.05); opacity: .8; }
  100% { transform: translateY(-90vh) translateX(-8px) scale(.9); opacity: 0; }
}
@keyframes slowDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, 10px); } }
@keyframes pls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.55); } }

/* ── 6. Glass / ambient ──────────────────────────────────────────── */
.ambient-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(60px); opacity: .55; }
.ambient-blob.b1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(142,216,255,.55) 0%, transparent 70%); }
.ambient-blob.b2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(1,84,134,.28) 0%, transparent 70%); }
.ambient-blob.b3 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(212,240,255,.85) 0%, transparent 70%); }

/* ── 7. Navigation ──────────────────────────────────────────────── */
nav#nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 48px); max-width: 1080px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 54px; border-radius: 18px;
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 20px rgba(1,84,134,.08), inset 0 1px 0 #fff;
  transition: box-shadow .3s;
}
nav#nav.scrolled { box-shadow: 0 8px 40px rgba(1,84,134,.13), inset 0 1px 0 #fff; }

/* ── Wave-wipe logo swap ─────────────────────────────────────────
   Two logos stacked. A clip-path with a wavy right edge wipes across:
   when revealed, points sit just right of the bounds (.show-A);
   when hidden, points slide left of the bounds (.show-B).
   The 11 keyed points (1 top corner + 9 wavy + 1 bottom corner) match
   between states so CSS interpolates smoothly. */

.logo-swap { position: relative; display: inline-flex; align-items: center; }
.logo-swap .logo-img {
  display: block; height: 100%; width: auto; max-height: 100%;
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  transition: clip-path 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-transition: -webkit-clip-path 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Visible: wave sits at +110% (offscreen right) — full rectangle visible */
.logo-swap .logo-img.is-visible {
  -webkit-clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
  clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
}
/* Hidden: wave sits at -10% (offscreen left) — nothing visible */
.logo-swap .logo-img.is-hidden {
  -webkit-clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
  clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
}

/* Nav logo container — fixed width to avoid layout shifts */
.nav-logo { width: 170px; height: 40px; }
.nav-logo .logo-full { height: 36px; }
.nav-logo .logo-wave { height: 28px; }

/* Defaults (no JS class yet): full visible, wave hidden — matches initial state */
.nav-logo .logo-full {
  -webkit-clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
  clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
}
.nav-logo .logo-wave {
  -webkit-clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
  clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
}

/* When nav has .show-wave: swap — wave revealed, full clipped away */
.nav-logo.show-wave .logo-full {
  -webkit-clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
  clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
}
.nav-logo.show-wave .logo-wave {
  -webkit-clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
  clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
}

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { color: var(--mid); font-size: .86rem; font-weight: 500; padding: 7px 12px; border-radius: 9px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ocean); background: rgba(1,84,134,.06); }
.nav-client { color: var(--ocean) !important; font-weight: 600 !important; }
.nav-cta { padding: 9px 20px; background: var(--ocean); color: #fff; border-radius: 11px; font-weight: 600; font-size: .86rem; white-space: nowrap; flex-shrink: 0; transition: background .2s, box-shadow .2s; }
.nav-cta:hover { background: var(--deep); box-shadow: 0 4px 18px rgba(1,84,134,.3); }

/* ── 8. Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 120px 5% 0;
  background: linear-gradient(175deg, var(--deep) 0%, var(--ocean) 55%, #0272b0 100%);
}
.caustic {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 75% 10%, rgba(142,216,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 20% 70%, rgba(142,216,255,.10) 0%, transparent 55%);
  animation: causticShift 14s ease-in-out infinite alternate;
}
.rays { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.ray { position: absolute; top: -10%; left: 50%; width: 2px; height: 80%; transform-origin: top center; background: linear-gradient(to bottom, rgba(142,216,255,.18), transparent); border-radius: 2px; animation: raySway 8s ease-in-out infinite; }
.ray:nth-child(1) { transform: rotate(-30deg); animation-delay: 0s; animation-duration: 9s; }
.ray:nth-child(2) { transform: rotate(-18deg); animation-delay: 1.2s; animation-duration: 11s; opacity: .7; }
.ray:nth-child(3) { transform: rotate(-6deg);  animation-delay: .4s; animation-duration: 8s; }
.ray:nth-child(4) { transform: rotate(6deg);   animation-delay: 2s; animation-duration: 10s; opacity: .6; }
.ray:nth-child(5) { transform: rotate(20deg);  animation-delay: .8s; animation-duration: 13s; }
.ray:nth-child(6) { transform: rotate(34deg);  animation-delay: 1.6s; animation-duration: 9s; opacity: .5; }

.bubble { position: absolute; border-radius: 50%; border: 1px solid rgba(142,216,255,.4); background: radial-gradient(circle at 30% 30%, rgba(142,216,255,.15), transparent 70%); animation: bubbleRise linear infinite; pointer-events: none; }

.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(142,216,255,.12) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%); }

.hero-inner { max-width: 840px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding-bottom: 130px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 50px; margin-bottom: 28px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); background: rgba(255,255,255,.08); border: 1px solid rgba(142,216,255,.3); backdrop-filter: blur(12px); opacity: 0; animation: fadeUp .7s .2s forwards; }
.bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: pls 2s infinite; }

.hero-h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 800; color: #fff; margin-bottom: 22px; letter-spacing: -.025em; opacity: 0; animation: fadeUp .8s .35s forwards; }
.hero-h1 .line2 { display: block; background: linear-gradient(115deg, #fff 0%, var(--sky-lt) 50%, var(--sky) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.72); line-height: 1.82; max-width: 500px; margin-bottom: 38px; opacity: 0; animation: fadeUp .7s 1s forwards; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s 1.15s forwards; }

.btn-p { padding: 14px 28px; background: var(--sky); color: var(--deep); border-radius: 13px; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(142,216,255,.4); }
.btn-g { padding: 13px 26px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .2s; backdrop-filter: blur(8px); }
.btn-g:hover { background: rgba(255,255,255,.18); }

.hero-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 52px; opacity: 0; animation: fadeUp .9s 1.35s forwards; }
.hcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 24px; border-radius: 20px; min-width: 120px; background: rgba(255,255,255,.1); backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 4px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .3s, box-shadow .3s; }
.hcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3); }
.hcard:nth-child(1) { animation: cardFloat 6s ease-in-out infinite; }
.hcard:nth-child(2) { animation: cardFloat 6s ease-in-out infinite 1.2s; }
.hcard:nth-child(3) { animation: cardFloat 6s ease-in-out infinite 2.4s; }
.hcard:nth-child(4) { animation: cardFloat 6s ease-in-out infinite 3.6s; }
.hcard:nth-child(5) { animation: cardFloat 6s ease-in-out infinite 4.8s; }
.hcard-ico { font-size: 1.5rem; }
.hcard-lbl { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.88); letter-spacing: .03em; white-space: nowrap; }

.hero-wave-bottom { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; z-index: 2; }
.hero-wave-bottom svg { display: block; width: 100%; }

/* ── 9. Services (glass) ────────────────────────────────────────── */
#services { background: var(--white); overflow: hidden; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.45) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 22px rgba(1,84,134,.06), inset 0 1px 0 rgba(255,255,255,.95);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.svc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--ocean), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .4s; z-index: 2; }
.svc::after { content: ''; position: absolute; top: 0; left: -40%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%); transform: skewX(-18deg); transition: left .8s ease; pointer-events: none; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(1,84,134,.13), inset 0 1px 0 #fff; }
.svc:hover::before { transform: scaleX(1); }
.svc:hover::after { left: 120%; }
.svc-ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(142,216,255,.6), rgba(1,84,134,.18));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 12px rgba(1,84,134,.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.svc-h { font-size: .96rem; font-weight: 700; color: var(--deep); margin-bottom: 7px; }
.svc-p { font-size: .83rem; color: var(--mid); line-height: 1.72; }

/* ── 10. About (glass) ──────────────────────────────────────────── */
#about { background: var(--bg); overflow: hidden; }
.about-g { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-feats { margin-top: 28px; display: flex; flex-direction: column; gap: 11px; list-style: none; }
.feat {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.5) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 18px rgba(1,84,134,.05), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.feat:hover { transform: translateX(5px); box-shadow: 0 10px 28px rgba(1,84,134,.1), inset 0 1px 0 #fff; }
.feat-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: linear-gradient(135deg, rgba(212,240,255,.95), rgba(1,84,134,.12)); border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px rgba(1,84,134,.08); display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.ft { font-size: .875rem; font-weight: 700; color: var(--deep); margin-bottom: 2px; }
.fs { font-size: .8rem; color: var(--mid); line-height: 1.6; }

.about-panel { border-radius: 24px; overflow: hidden; position: relative; background: linear-gradient(155deg, var(--deep) 0%, var(--ocean) 100%); aspect-ratio: 4/3.4; display: flex; flex-direction: column; justify-content: flex-end; }
.ap-caustic { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(142,216,255,.18) 0%, transparent 65%); animation: causticShift 9s ease-in-out infinite alternate; }
#apCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.ap-wave svg { display: block; width: 100%; }
.ap-content { position: relative; z-index: 2; padding: 28px; background: linear-gradient(to top, rgba(1,45,71,.88) 0%, transparent 70%); }
.ap-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--sky); font-weight: 700; margin-bottom: 7px; }
.ap-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.ap-desc { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ── 11. Products (process) ─────────────────────────────────────── */
#process { background: var(--white); overflow: hidden; padding-bottom: 80px; }
.proc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pstep {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.42) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 28px rgba(1,84,134,.07), inset 0 1px 0 rgba(255,255,255,.95);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.pstep::after { content: ''; position: absolute; top: 0; left: -40%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%); transform: skewX(-18deg); transition: left .9s ease; pointer-events: none; }
.pstep:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(1,84,134,.13), inset 0 1px 0 #fff; }
.pstep:hover::after { left: 130%; }
.pstep--kai { border-color: rgba(1,84,134,.14); background: linear-gradient(135deg, rgba(1,84,134,.03) 0%, rgba(142,216,255,.07) 100%); text-align: center; }
.ps-watermark { font-size: 6rem; position: absolute; top: -10px; right: -4px; line-height: 1; opacity: .06; pointer-events: none; }
.ps-dot {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ocean), #0272b0);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(1,84,134,.28), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; z-index: 1;
}
.ps-dot--kai { background: linear-gradient(135deg, var(--deep), var(--ocean)); }
.ps-h { font-size: 1rem; font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.ps-p { font-size: .83rem; color: var(--mid); line-height: 1.72; }
.ps-badge { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 600; color: var(--ocean); background: rgba(1,84,134,.07); padding: 5px 11px; border-radius: 20px; }
.ps-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); display: inline-block; }

.kai-visual { width: 130px; height: 130px; margin: 0 auto 16px; }
.kai-img { width: 130px; height: 130px; object-fit: contain; display: block; filter: drop-shadow(0 8px 20px rgba(1,84,134,.22)); animation: cardFloat 4s ease-in-out infinite; }

/* ── 12. SaaS (dark wave) ───────────────────────────────────────── */
#saas { background: linear-gradient(180deg, var(--deep) 0%, var(--deep) 28%, var(--ocean) 100%); padding: 90px 5% 130px; }
.saas-header .stag { color: var(--sky); }
.saas-header .sh2 { color: #fff; }
.saas-header .ssub { color: rgba(255,255,255,.65); }
.saas-g { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.saas-main {
  border-radius: 24px; padding: 38px; color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(142,216,255,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative; overflow: hidden;
}
.saas-main::before { content: ''; position: absolute; top: -80px; right: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(142,216,255,.15) 0%, transparent 65%); animation: slowDrift 12s ease-in-out infinite; }
.saas-tag { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; position: relative; z-index: 1; }
.saas-h { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.saas-p { font-size: .86rem; color: rgba(255,255,255,.67); line-height: 1.75; margin-bottom: 22px; max-width: 340px; position: relative; z-index: 1; }
.saas-list { list-style: none; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.saas-list li { font-size: .83rem; color: rgba(255,255,255,.82); display: flex; align-items: center; gap: 9px; }
.saas-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.saas-cta { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--sky); color: var(--deep); border-radius: 11px; font-weight: 700; font-size: .86rem; transition: transform .2s, box-shadow .2s; position: relative; z-index: 1; }
.saas-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(142,216,255,.4); }
.saas-side { display: flex; flex-direction: column; gap: 14px; }
.saas-mini {
  border-radius: 18px; padding: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(142,216,255,.22);
  box-shadow: 0 4px 20px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .3s var(--ease-out), background .3s, box-shadow .3s;
}
.saas-mini:hover { transform: translateX(4px); }
.saas-mini--kai { display: flex; align-items: center; gap: 16px; }
.saas-mini--kai img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); animation: cardFloat 4s ease-in-out infinite; flex-shrink: 0; }
.m-ico { font-size: 1.2rem; margin-bottom: 8px; }
.m-h { font-size: .91rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.m-p { font-size: .81rem; color: rgba(255,255,255,.6); line-height: 1.65; }
.m-badge { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--sky); opacity: .8; }
.m-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); display: inline-block; }

/* ── 13. Partners ───────────────────────────────────────────────── */
#partners { background: var(--white); overflow: hidden; padding: 80px 5%; }
.partner-featured {
  border-radius: 24px; padding: 40px 48px;
  background: var(--white); border: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  box-shadow: 0 8px 40px rgba(1,84,134,.07);
  max-width: 820px; margin: 0 auto;
}
.partner-featured-logo img { max-width: 200px; }
.partner-featured-badge { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 50px; background: rgba(4,190,140,.1); border: 1px solid rgba(4,190,140,.3); font-size: .72rem; font-weight: 700; color: #04be8c; letter-spacing: .05em; }
.partner-featured-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--light); margin-bottom: 8px; }
.partner-featured-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
.partner-featured-desc { font-size: .88rem; color: var(--mid); line-height: 1.75; }
.partner-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.partner-tag { padding: 5px 13px; border-radius: 50px; background: rgba(1,84,134,.07); border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--ocean); }
.partner-tag--green { background: rgba(4,190,140,.08); border-color: rgba(4,190,140,.2); color: #04be8c; }

/* ── 14. Contact ─────────────────────────────────────────────────── */
#contact { background: var(--bg); overflow: hidden; }
.cont-g { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.citem {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(1,84,134,.05), inset 0 1px 0 rgba(255,255,255,.95);
  margin-bottom: 11px; transition: box-shadow .25s, transform .25s;
}
.citem:hover { box-shadow: 0 10px 28px rgba(1,84,134,.1), inset 0 1px 0 #fff; transform: translateX(3px); }
.cico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: linear-gradient(135deg, rgba(212,240,255,.95), rgba(1,84,134,.14)); border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px rgba(1,84,134,.08); display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.cl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--light); font-weight: 700; }
.cv { font-size: .88rem; color: var(--deep); font-weight: 500; }

.contact-form-glass {
  padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.42) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(1,84,134,.08), inset 0 1px 0 rgba(255,255,255,.95);
}
.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fg label { font-size: .74rem; font-weight: 600; color: var(--mid); }
.fg input, .fg textarea, .fg select {
  background: linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.35) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px rgba(1,84,134,.04);
  border-radius: 12px; padding: 12px 15px; color: var(--text);
  font-family: inherit; font-size: .87rem; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: rgba(1,84,134,.4); box-shadow: 0 0 0 3px rgba(1,84,134,.1), inset 0 1px 0 rgba(255,255,255,.95); background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.65) 100%); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--light); }
.fg textarea { resize: vertical; min-height: 96px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
/* Honeypot: visually hidden but accessible to bots — keep off-screen */
.fg-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Altcha widget styling — match the glass form */
altcha-widget {
  display: block; margin: 6px 0 14px;
  --altcha-color-base: rgba(255,255,255,.5);
  --altcha-color-border: rgba(255,255,255,.8);
  --altcha-color-text: var(--mid);
  --altcha-color-error-text: #b91c1c;
  --altcha-border-radius: 12px;
  --altcha-max-width: 100%;
}

/* Status message under the form */
.contact-status { font-size: .82rem; line-height: 1.55; margin: 4px 0 10px; min-height: 1.2em; }
.contact-status.is-ok    { color: #16a34a; }
.contact-status.is-error { color: #b91c1c; }

.btn-send { width: 100%; padding: 14px; background: var(--ocean); color: #fff; border: none; border-radius: 13px; font-weight: 700; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .2s, box-shadow .2s; margin-top: 4px; }
.btn-send:disabled { opacity: .65; cursor: wait; }
.btn-send:hover { background: var(--deep); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(1,84,134,.25); }

/* ── 15. Footer ──────────────────────────────────────────────────── */
footer[role="contentinfo"] { background: var(--deep); padding: 50px 5% 26px; }
.ft-in { max-width: 1080px; margin: 0 auto; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }
/* Footer logo — inverse cycle. Starts on wave-only, then JS adds
   .show-full → wave wipe reveals the complete logo. */
.ft-logo { width: 200px; height: 48px; margin-bottom: 11px; }
.ft-logo .logo-full { height: 42px; }
.ft-logo .logo-wave { height: 36px; }

/* Defaults: wave visible, full hidden */
.ft-logo .logo-wave {
  -webkit-clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
  clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
}
.ft-logo .logo-full {
  -webkit-clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
  clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
}

.ft-logo.show-full .logo-wave {
  -webkit-clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
  clip-path: polygon( 0 0, -10% 0, -12% 10%, -8% 20%, -12% 30%, -8% 40%, -12% 50%, -8% 60%, -12% 70%, -8% 80%, -12% 90%, -10% 100%, 0 100% );
}
.ft-logo.show-full .logo-full {
  -webkit-clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
  clip-path: polygon( 0 0, 110% 0, 108% 10%, 112% 20%, 108% 30%, 112% 40%, 108% 50%, 112% 60%, 108% 70%, 112% 80%, 108% 90%, 110% 100%, 0 100% );
}
.ft-ico { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--sky), var(--ocean)); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.ft-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.ft-tag { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 280px; }
.ft-address { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.8; margin-top: 14px; font-style: normal; }
.ft-address a { color: rgba(255,255,255,.7); transition: color .2s; }
.ft-address a:hover { color: var(--sky); }
.ft-links { display: flex; gap: 48px; flex-wrap: wrap; }
.ft-ct { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.35); font-weight: 700; margin-bottom: 13px; font-family: inherit; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-col ul li a { font-size: .8rem; color: rgba(255,255,255,.5); transition: color .2s; }
.ft-col ul li a:hover { color: var(--sky); }
.ft-bot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ft-copy { font-size: .74rem; color: rgba(255,255,255,.3); }
.ft-legal-link { color: rgba(255,255,255,.55); margin-left: 10px; transition: color .2s; }
.ft-legal-link:hover { color: var(--sky); }
.ft-soc { display: flex; gap: 7px; }
.soc { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .78rem; color: rgba(255,255,255,.4); transition: color .2s, background .2s; }
.soc:hover { color: var(--sky); background: rgba(142,216,255,.08); }

/* ── 16. Cursor glow ────────────────────────────────────────────── */
#cglow { position: fixed; pointer-events: none; z-index: 9999; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(142,216,255,.1) 0%, transparent 70%); transform: translate(-50%, -50%); transition: left .1s ease, top .1s ease; mix-blend-mode: multiply; }
@media (hover: none) { #cglow { display: none; } }

/* ── 17. Careers page ────────────────────────────────────────────── */
.careers-page { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 140px 24px 80px; position: relative; overflow: hidden; }
.careers-card {
  max-width: 640px; width: 100%; padding: 56px 52px; text-align: center; position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.5) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 48px rgba(1,84,134,.08), inset 0 1px 0 #fff;
  border-radius: 28px;
}
.careers-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--ocean), #0272b0); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 28px; box-shadow: 0 8px 24px rgba(1,84,134,.22); }
.careers-title { font-size: 2rem; font-weight: 800; color: var(--deep); margin-bottom: 16px; letter-spacing: -.025em; }
.careers-text { font-size: 1rem; color: var(--mid); line-height: 1.65; margin-bottom: 28px; }
.careers-divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--ocean), var(--sky)); border-radius: 2px; margin: 0 auto 36px; }
.careers-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(1,84,134,.06); border: 1px solid rgba(1,84,134,.12); border-radius: 10px; padding: 10px 18px; font-size: .88rem; color: var(--mid); margin-bottom: 28px; }
.careers-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--light); }
.careers-cta-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--light); margin-bottom: 12px; }
.careers-email { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: var(--ocean); color: #fff; border-radius: 13px; font-weight: 600; font-size: .95rem; transition: background .2s, box-shadow .2s, transform .15s; box-shadow: 0 4px 20px rgba(1,84,134,.25); }
.careers-email:hover { background: var(--deep); box-shadow: 0 8px 32px rgba(1,84,134,.35); transform: translateY(-2px); }

/* ── Cookie consent banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 9998; width: calc(100% - 32px); max-width: 540px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .4s var(--ease-out);
}
.cookie-banner[hidden] { display: block !important; }
.cookie-banner.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.cookie-card {
  background: linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.68) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 18px 50px rgba(1,84,134,.22), inset 0 1px 0 #fff;
  border-radius: 22px;
  padding: 22px 24px;
  font-size: .9rem;
}

.cookie-title { font-size: 1.02rem; color: var(--deep); margin-bottom: 8px; font-weight: 700; }
.cookie-desc { font-size: .87rem; color: var(--mid); line-height: 1.6; margin-bottom: 18px; }
.cookie-desc a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }

/* Buttons — equal visual weight (legal requirement: no nudging) */
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cookie-actions-detail { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.cookie-btn {
  padding: 11px 12px; border-radius: 11px; font-weight: 600; font-size: .82rem;
  border: 1px solid rgba(1,84,134,.18); cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--deep);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.cookie-btn:hover { background: #fff; border-color: rgba(1,84,134,.35); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(1,84,134,.12); }
.cookie-btn:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
/* All three buttons share the same neutral style — APD requires equal weight.
   "Accept" is just a touch more prominent (filled) but not overwhelmingly. */
.cookie-btn-accept { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.cookie-btn-accept:hover { background: var(--deep); border-color: var(--deep); }

/* Category toggles */
.cookie-category {
  padding: 14px 0; border-bottom: 1px solid rgba(1,84,134,.08);
}
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.cookie-cat-name { font-weight: 700; color: var(--deep); font-size: .92rem; }
.cookie-cat-desc { font-size: .8rem; color: var(--mid); line-height: 1.55; margin: 0; }
.cookie-cat-toggle.is-locked { font-size: .72rem; color: var(--light); font-weight: 600; }

/* iOS-style switch for optional categories */
.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
  position: absolute; inset: 0; background: #cbd5dc; border-radius: 24px;
  transition: background .2s;
}
.cookie-switch-slider::before {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-switch input:checked + .cookie-switch-slider { background: var(--ocean); }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-switch-slider { outline: 2px solid var(--ocean); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.ft-cookie-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: rgba(255,255,255,.55); margin-left: 10px; text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s;
}
.ft-cookie-link:hover { color: var(--sky); }

@media (max-width: 560px) {
  .cookie-banner { bottom: 10px; width: calc(100% - 20px); }
  .cookie-card { padding: 18px 18px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-actions-detail { grid-template-columns: 1fr 1fr; }
}

/* ── Legal page ─────────────────────────────────────────────────── */
.legal-page {
  background: var(--bg); position: relative; overflow: hidden;
  padding: 140px 24px 100px;
  min-height: 100vh;
}
.legal-wrap { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }

.legal-header { text-align: center; margin-bottom: 56px; }
.legal-h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--deep);
  letter-spacing: -.02em; margin: 8px 0 18px;
}
.legal-lead { font-size: 1rem; color: var(--mid); line-height: 1.75; max-width: 640px; margin: 0 auto 14px; }
.legal-meta { font-size: .82rem; color: var(--light); font-weight: 500; }

/* Table of contents */
.legal-toc {
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.45) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 22px rgba(1,84,134,.06), inset 0 1px 0 rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: 24px 28px; margin-bottom: 52px;
}
.legal-toc-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--light); font-weight: 700; margin-bottom: 12px; }
.legal-toc ol { padding-left: 22px; margin: 0; }
.legal-toc li { padding: 4px 0; font-size: .92rem; color: var(--mid); }
.legal-toc a { color: var(--ocean); transition: color .2s; }
.legal-toc a:hover { color: var(--deep); text-decoration: underline; }

/* Sections */
.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px; /* anchor offset for the fixed nav */
}
.legal-section h2 {
  font-size: 1.45rem; color: var(--deep); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.legal-section h3 {
  font-size: 1.05rem; color: var(--deep); margin: 26px 0 10px;
}
.legal-section p {
  font-size: .95rem; color: var(--mid); line-height: 1.78; margin-bottom: 14px;
}
.legal-section ul {
  margin: 12px 0 16px 22px;
  font-size: .92rem; color: var(--mid); line-height: 1.78;
}
.legal-section li { margin-bottom: 6px; }
.legal-section strong { color: var(--deep); font-weight: 600; }
.legal-section a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.legal-section a:hover { color: var(--deep); }
.legal-section em { font-style: italic; }

/* Rights list with subtle accent */
.legal-rights { padding-left: 22px; }
.legal-rights li { padding: 4px 0; }

/* Table */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .88rem;
}
.legal-table thead { background: rgba(1,84,134,.05); }
.legal-table th, .legal-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th { font-weight: 700; color: var(--deep); font-size: .82rem; }
.legal-table td { color: var(--mid); line-height: 1.65; }
.legal-table tr:last-child td { border-bottom: 0; }

/* DPO card */
.legal-dpo-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(1,84,134,.08), inset 0 1px 0 #fff;
}
.legal-dpo-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean), #0272b0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 6px 18px rgba(1,84,134,.22);
  flex-shrink: 0;
}
.legal-dpo-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--light); font-weight: 700; margin-bottom: 4px; }
.legal-dpo-name { font-size: 1.05rem; font-weight: 700; color: var(--deep); margin-bottom: 2px; }
.legal-dpo-email a { color: var(--ocean); font-weight: 500; }

/* Scope cards — pretty replacement for a centered <ul> in the legal header */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px auto 22px;
  text-align: left;
}
.scope-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 22px rgba(1,84,134,.06), inset 0 1px 0 rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s, box-shadow .25s;
}
.scope-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ocean), var(--sky, #8ed8ff));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.scope-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(1,84,134,.10), inset 0 1px 0 #fff; }
.scope-card:hover::before { transform: scaleX(1); }
.scope-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(1,84,134,.08), rgba(142,216,255,.20));
  color: var(--ocean);
  border: 1px solid rgba(1,84,134,.08);
}
.scope-icon svg { width: 22px; height: 22px; display: block; }
.scope-title { font-size: 1rem; font-weight: 700; color: var(--deep); margin: 0; letter-spacing: -.01em; border: 0; padding: 0; }
.scope-text { font-size: .85rem; color: var(--mid); line-height: 1.65; margin: 0; }
.scope-text strong { color: var(--deep); font-weight: 600; }

@media (max-width: 820px) {
  .scope-grid { grid-template-columns: 1fr; gap: 12px; margin: 22px auto 18px; }
  .scope-card { padding: 18px 18px 16px; }
}

@media (max-width: 560px) {
  .legal-page { padding: 110px 18px 70px; }
  .legal-section h2 { font-size: 1.25rem; }
  .legal-table { font-size: .82rem; }
  .legal-table th, .legal-table td { padding: 10px 11px; }
  .legal-dpo-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ── Mobile burger + slide-down panel ──────────────────────────── */
.nav-burger {
  display: none; /* shown only under 900px */
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 10px; transition: background .2s;
}
.nav-burger:hover { background: rgba(1,84,134,.06); }
.nav-burger-bar {
  display: block; width: 22px; height: 2px; background: var(--deep); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger.is-open .nav-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open .nav-burger-bar:nth-child(2) { opacity: 0; }
.nav-burger.is-open .nav-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 999; width: calc(100% - 48px); max-width: 460px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(1,84,134,.18), inset 0 1px 0 #fff;
  padding: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-mobile[hidden] { display: block !important; } /* keep in DOM for transitions */
.nav-mobile-links { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 0; }
.nav-mobile-links a {
  display: block; padding: 12px 14px; font-size: .95rem; font-weight: 500;
  color: var(--deep); border-radius: 11px; transition: background .2s, color .2s;
}
.nav-mobile-links a:hover, .nav-mobile-links a:focus-visible { background: rgba(1,84,134,.06); color: var(--ocean); }
.nav-mobile-client { color: var(--ocean) !important; font-weight: 600 !important; }
.nav-mobile-cta {
  display: block; text-align: center; padding: 13px; background: var(--ocean); color: #fff;
  border-radius: 12px; font-weight: 700; font-size: .9rem; transition: background .2s;
}
.nav-mobile-cta:hover { background: var(--deep); }

/* Lock body scroll when mobile menu is open */
body.nav-locked { overflow: hidden; }

/* ── 18. Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: inline-flex; }

  .svc-grid { grid-template-columns: 1fr 1fr; }
  .about-g, .cont-g, .saas-g { grid-template-columns: 1fr; }
  .about-panel { aspect-ratio: 16/7; }
  .proc-row { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 1fr; }

  /* Partner featured — clean single-column centered layout */
  .partner-featured {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .partner-featured-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .partner-featured-logo a { display: inline-flex; }
  .partner-featured-logo img { margin: 0 auto; max-width: 180px; height: auto; }
  .partner-featured-desc { margin: 0 auto; max-width: 480px; }
  .partner-tags { justify-content: center; }
}

@media (max-width: 560px) {
  nav#nav { width: calc(100% - 24px); top: 10px; padding: 0 14px; }
  section { padding: 70px 5%; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-row { grid-template-columns: 1fr; }
  .ft-links { gap: 24px; }
  .careers-card { padding: 36px 24px; }
  .partner-featured { padding: 28px 18px; }
  .nav-mobile { top: 74px; }
}
