/* ===== Zyplex Digital — brand styles =====
   Primary  #1F82F9 (Pool Water)
   Text     #212121 (Lead)
   Grey     #D9D9D9 (Light Grey)
   Font     Roboto
============================================= */

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Regular.woff2') format('woff2'),
       url('/assets/fonts/Roboto-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Medium.woff2') format('woff2'),
       url('/assets/fonts/Roboto-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Bold.woff2') format('woff2'),
       url('/assets/fonts/Roboto-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --blue: #1F82F9;
  --blue-dark: #0f6ae0;
  --blue-soft: #eaf3ff;
  --ink: #212121;
  --ink-soft: #4b4f56;
  --muted: #7a828d;
  --grey: #d9d9d9;
  --line: #e8ebef;
  --bg: #ffffff;
  --bg-alt: #f6f9fd;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(33,33,33,.05);
  --shadow: 0 18px 40px -18px rgba(31,130,249,.28), 0 8px 24px -12px rgba(33,33,33,.12);
  --shadow-blue: 0 14px 30px -10px rgba(31,130,249,.5);
  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.28rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Background decor ===== */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-1 { width: 620px; height: 620px; background: radial-gradient(circle, #cfe3ff, transparent 70%); top: -220px; right: -160px; }
.blob-2 { width: 520px; height: 520px; background: radial-gradient(circle, #e7f0ff, transparent 70%); top: 420px; left: -220px; }
.grid-glow {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 8%, #000, transparent 55%);
  -webkit-mask-image: radial-gradient(circle at 70% 8%, #000, transparent 55%);
  opacity: .5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 500; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: var(--shadow-blue); font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 18px 34px -8px rgba(31,130,249,.6); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--grey); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-invert { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.btn-invert:hover { background: #f0f6ff; color: var(--blue-dark); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand-logo { height: 66px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: 1rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) 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.4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero-inner { max-width: 880px; }

/* centered hero with big focal logo */
.hero-centered .hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-logo {
  height: clamp(120px, 18vw, 210px); width: auto; display: block; margin: 0 auto clamp(22px, 3vw, 36px);
  animation: logoIn .8s var(--ease) both;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-cta { justify-content: center; }
.hero-centered .hero-stats { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: .9rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #d5e6ff;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(31,130,249,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,130,249,.5); } 70% { box-shadow: 0 0 0 10px rgba(31,130,249,0); } 100% { box-shadow: 0 0 0 0 rgba(31,130,249,0); } }
.hero h1 { margin: 22px 0 0; }
.grad-text { background: linear-gradient(100deg, var(--blue), #6db2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); margin: 22px 0 0; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); font-weight: 700; letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: .95rem; }

/* ===== Trust bar ===== */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 20px 24px; }
.trust-inner span { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe1ff; }
.card-icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--blue-soft); border-radius: 16px; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-grid h2 { margin: 6px 0 18px; }
.about-grid > div > p { color: var(--ink-soft); font-size: 1.08rem; }
.check-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 50%; font-size: .74rem; font-weight: 700;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.mini-card:nth-child(even) { transform: translateY(20px); }
.mini-card:hover { transform: translateY(-4px); }
.about-cards:hover .mini-card:nth-child(even) { transform: translateY(16px); }
.mini-card b { display: block; font-size: 1.9rem; color: var(--blue); letter-spacing: -.02em; }
.mini-card span { color: var(--muted); font-size: .95rem; }

/* ===== Process steps ===== */
.steps .step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 26px; position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.steps .step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-no {
  font-size: 2.6rem; font-weight: 700; color: var(--blue); opacity: .16; letter-spacing: -.04em;
  display: block; margin-bottom: 6px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ===== Quotes ===== */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stars { color: #ffb020; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: var(--ink); font-size: 1.05rem; font-style: italic; }
.quote footer { margin-top: 18px; display: flex; flex-direction: column; }
.quote footer b { color: var(--ink); }
.quote footer span { color: var(--muted); font-size: .9rem; }

/* ===== CTA banner ===== */
.cta-banner { padding: 20px 0; }
.cta-inner {
  background: linear-gradient(120deg, var(--blue), #4f9dff 60%, #6db2ff);
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 66px);
  text-align: center; color: #fff; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.12); top: -120px; right: -60px;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { margin: 12px 0 26px; font-size: 1.15rem; opacity: .95; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid h2 { margin: 6px 0 14px; }
.contact-grid > div > p { color: var(--ink-soft); font-size: 1.08rem; }
.contact-info { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.contact-info li { display: flex; align-items: center; gap: 13px; color: var(--ink-soft); }
.contact-info a:hover { color: var(--blue); }
.ci-ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 12px; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 7px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcfe; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,130,249,.12); background: #fff;
}
.field input.invalid, .field textarea.invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #e5484d; }
#submitBtn[disabled] { opacity: .65; cursor: not-allowed; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c9ccd2; padding: 64px 0 26px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 44px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-tag { color: #9aa0aa; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; color: #c9ccd2; transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h4 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links a { display: block; color: #a7adb7; margin-bottom: 11px; font-size: .97rem; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  color: #8b919b; font-size: .9rem;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 96px 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px); padding: 16px 24px 26px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); transform: translateY(-140%);
    transition: transform .4s var(--ease); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { justify-content: center; margin-top: 10px; border: 0; }
  .hero-stats { gap: 28px; }
  .cta-inner { text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

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

/* ===== Training page ===== */
.nav-links a.active { color: var(--blue); }
.card .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #d5e6ff;
}
.tag.grey { background: #f1f3f6; color: var(--ink-soft); border-color: var(--line); }
.mini-list { list-style: none; margin: 16px 0 0; display: grid; gap: 9px; }
.mini-list li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: .96rem; }
.mini-list li::before {
  content: "›"; position: absolute; left: 6px; top: -1px; color: var(--blue); font-weight: 700; font-size: 1.1rem;
}
/* split hero (text + illustration) */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-split .hero-copy { max-width: 620px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 460px; margin: 8px auto 0; }
}

.intern-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.intern-grid h2 { margin: 6px 0 16px; }
.intern-grid > div > p { color: var(--ink-soft); font-size: 1.08rem; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 8px; }
.feature-list li { position: relative; padding-left: 30px; font-weight: 500; }
.feature-list li::before {
  content: "★"; position: absolute; left: 0; top: 0; color: var(--blue); font-size: .95rem;
}
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 500; padding: 16px 0; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; margin: 0; }
@media (max-width: 940px) {
  .intern-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ===== Capability band (effectful) ===== */
.tb-fx { position: relative; overflow: hidden; border: 0; padding: 22px 0; background: linear-gradient(100deg, #0f6ae0 0%, #1F82F9 45%, #4f9dff 100%); box-shadow: 0 20px 40px -24px rgba(31,130,249,.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tb-fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.tb-fx::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); animation: tbSheen 5s ease-in-out infinite; pointer-events: none; }
@keyframes tbSheen { 0%, 40% { left: -30%; } 100% { left: 110%; } }
.tb-track { position: relative; display: flex; width: max-content; animation: tbScroll 36s linear infinite; }
.tb-fx:hover .tb-track { animation-play-state: paused; }
@keyframes tbScroll { to { transform: translateX(-50%); } }
.tb-item { display: inline-flex; align-items: center; gap: 12px; margin: 0 14px; padding: 8px 20px 8px 8px; border-radius: 999px; color: #fff; font-weight: 500; font-size: 1.05rem; white-space: nowrap;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s; }
.tb-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.2); }
.tb-item i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.tb-item svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .tb-item { font-size: .95rem; margin: 0 8px; } .tb-item i { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .tb-track, .tb-fx::after { animation: none; } }
