:root {
  --navy:       #0D2B45;
  --navy-mid:   #163d5e;
  --teal:       #0D8A8A;
  --teal-light: #1aadad;
  --sky:        #E8F4F8;
  --cream:      #F7F4EF;
  --text:       #1a2d3f;
  --muted:      #6b8194;
  --white:      #ffffff;
  --accent:     #E05A2B;
}

/* ─── BASE ─── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
}

.sec-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ─── BACKGROUNDS ─── */
.bg-sky {
  background: var(--sky);
}
.bg-white {
  background: var(--white);
}


/* ─── UTILITY ─── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 32px;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--navy);
  margin-bottom: 20px;
}
.section-lead {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
}

/* ─── BUTTONS ─── */
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.btn-teal:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.85);
  padding: 14px 32px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline-white:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.08);
}


/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar-ki {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .4s ease;
}
.navbar-ki.scrolled {
  background: rgba(13,43,69,.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,.25);
}

.navbar-ki .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.navbar-ki .brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .02em;
  z-index: 1100;
  position: relative;
}
.navbar-ki .brand span { color: var(--teal-light); }

/* Desktop nav links */
.navbar-ki .nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.navbar-ki .nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-left: 28px;
  transition: color .2s;
}
.navbar-ki .nav-links a:hover { color: var(--teal-light); }


/* ── Hamburger button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.18); }

.hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}

/* Animated X state */
.hamburger.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Overlay ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,25,43,.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.drawer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer panel ── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: var(--navy);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.drawer.is-open { transform: translateX(0); }

/* Drawer top bar */
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .02em;
}
.drawer-brand span { color: var(--teal-light); }

/* Close button */
.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
  color: var(--white);
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,.18); }
.drawer-close svg { display: block; }

/* Drawer nav links */
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  gap: 4px;
  flex: 1;
}
.drawer-nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 16px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-nav a .nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity .2s, transform .2s;
}
.drawer-nav a:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
}
.drawer-nav a:hover .nav-dot {
  opacity: 1;
  transform: scale(1);
}

/* Drawer footer */
.drawer-footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-footer .btn-teal {
  width: 100%;
  text-align: center;
  padding: 13px 24px;
}

/* Stagger animation for drawer links */
.drawer-nav a {
  opacity: 0;
  transform: translateX(16px);
  transition: background .2s, color .2s, opacity .3s ease, transform .3s ease;
}
.drawer.is-open .drawer-nav a {
  opacity: 1;
  transform: translateX(0);
}
.drawer.is-open .drawer-nav a:nth-child(1) { transition-delay: .08s; }
.drawer.is-open .drawer-nav a:nth-child(2) { transition-delay: .13s; }
.drawer.is-open .drawer-nav a:nth-child(3) { transition-delay: .18s; }
.drawer.is-open .drawer-nav a:nth-child(4) { transition-delay: .23s; }
.drawer.is-open .drawer-nav a:nth-child(5) { transition-delay: .28s; }
.drawer.is-open .drawer-nav a:nth-child(6) { transition-delay: .33s; }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0e3d5e 55%, #0D8A8A 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(13,138,138,.12);
  pointer-events: none;
}
.hero-bg-circle.c1 { width: 700px; height: 700px; top: -200px; right: -200px; }
.hero-bg-circle.c2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: rgba(255,255,255,.04); }
.hero-bg-circle.c3 { width: 200px; height: 200px; top: 40%; right: 15%; background: rgba(13,138,138,.18); }

.hero-tag {
  display: inline-block;
  background: rgba(13,138,138,.25);
  border: 1px solid rgba(13,138,138,.5);
  color: var(--teal-light);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em { color: var(--teal-light); font-style: normal; }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  font-weight: 300;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll-hint .arrow {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
  animation: scrollArrow 2s ease-in-out infinite;
}
@keyframes scrollArrow {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: .9; transform: scaleY(1.15); }
}

.hero-device-img {
  position: relative;
  z-index: 2;
}
.hero-device-img img {
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.4));
}


/* ════════════════════════════════════════
   WHAT IS
════════════════════════════════════════ */

.img-wrap {
  border-radius: 16px;
  overflow: hidden;

}
.img-wrap img {
  width: 100%;
}

.highlight-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 32px;
}
.highlight-card p {
  color: rgba(255,255,255,.75);
  margin: 0;
  font-size: .95rem;
}
.highlight-card .hl {
  color: var(--teal-light);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
}


/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.how-works { background: var(--white); }

.how-diagram {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,43,69,.12);
}
.how-diagram img { width: 100%; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.step-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: .95rem;
}
.step-text p {
  margin: 0;
  font-size: .9rem;
}


/* ════════════════════════════════════════
   FOR WHOM — ACCORDION
════════════════════════════════════════ */
.for-whom { background: var(--sky); }

.acc-wrap { margin-top: 48px; }

.acc-item {
  border-bottom: 1px solid rgba(13,43,69,.1);
  overflow: hidden;
}
.acc-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
}
.acc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
}
.acc-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  flex: 1;
}
.acc-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.acc-chevron svg { stroke: white; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}
.acc-body-inner {
  padding: 0 0 28px 70px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
}


/* ════════════════════════════════════════
   VIDEO
════════════════════════════════════════ */
.video-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(13,138,138,.15) 0%, transparent 60%);
}

.video-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  position: relative;
  z-index: 2;
}
.video-wrap video {
  width: 100%;
  display: block;
}
.video-section .section-title { color: var(--white); }
.video-section .section-lead { color: rgba(255,255,255,.6); }


/* ════════════════════════════════════════
   SOLUTIONS
════════════════════════════════════════ */
.solutions { background: var(--white); }

.sol-grid { margin-top: 48px; }

.sol-card {
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  border: 1.5px solid rgba(13,43,69,.1);
  transition: box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.sol-card:hover {
  box-shadow: 0 20px 50px rgba(13,43,69,.12);
  border-color: transparent;
}
.sol-card:hover::before { transform: scaleX(1); }

.sol-card .sol-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 20px;
}
.sol-card h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.sol-card p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

.sol-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(13,138,138,.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}


/* ════════════════════════════════════════
   JOURNEY / TIMELINE
════════════════════════════════════════ */
.journey { background: var(--cream); }

.timeline {
  position: relative;
  margin-top: 56px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--navy));
}

.tl-item {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .5s ease;
}
.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--teal);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  z-index: 1;
  position: relative;
}
.tl-content { padding-top: 8px; padding-bottom: 12px; }
.tl-content h5 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.tl-content p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.centers-list {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 32px;
}
.centers-list h5 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  margin-bottom: 16px;
}
.center-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sky);
  font-size: .9rem;
  color: var(--muted);
}
.center-item:last-child { border-bottom: none; }
.center-item svg { flex-shrink: 0; margin-top: 2px; }

.journey-photos { margin-top: 24px; }
.journey-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
}
.journey-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════════
   WHY ADVANCED BIONICS
════════════════════════════════════════ */
.why-ab { background: var(--white); }

.feature-grid { margin-top: 48px; }

.feature-card {
  background: var(--sky);
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,43,69,.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { stroke: var(--teal-light); }

.feature-card h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.feature-img-card {
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
}
.feature-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-section { background: var(--navy); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-lead { color: rgba(255,255,255,.6); }
.contact-section .section-label { color: var(--teal-light); }

.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 40px 44px;
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.3); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--teal-light); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select option { background: var(--navy); }

.contact-info { padding-top: 20px; }
.contact-info p { color: rgba(255,255,255,.65); font-size: .95rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 16px;
}
.contact-detail svg { stroke: var(--teal-light); flex-shrink: 0; }


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #07192b;
  padding: 36px 0;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}
footer .brand-f {
  font-family: 'DM Serif Display', serif;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
}
footer .brand-f span { color: var(--teal-light); }


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Show hamburger, hide desktop nav */
@media (max-width: 991px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
}

/* Tablet adjustments */
@media (max-width: 991px) {
  .sec-padding {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .acc-body-inner { padding-left: 20px; }
  .sol-card .sol-img { height: 140px; }
}

/* Mobile */
@media (max-width: 767px) {
  .sec-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero { padding-top: 80px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: .95rem; }
  .hero-device-img { display: none; }

  .contact-form { padding: 24px 20px; }

  .centers-list { padding: 22px 20px; }

  .journey-photo-wrap { height: 150px; }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .acc-title { font-size: 1rem; }

  .drawer { width: 280px; }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.85rem; }
  .btn-teal, .btn-outline-white { padding: 12px 22px; font-size: .85rem; }
}

/* Caption note */
.caption-note {
  font-size: .82rem;
  color: var(--muted);
}
