@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;500;700;800&display=swap');

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

:root {
  --bg: #070B10;
  --bg2: #0C1219;
  --bg3: #111820;
  --surface: #141D28;
  --surface2: #1A2535;
  --accent: #155fdf;
  --accent2: #155fdf;
  --accent-dim: rgba(27, 97, 220, 0.12);
  --accent2-dim: rgba(27, 97, 220, 0.12);
  --text: #E8F0F8;
  --text2: #8BA4BF;
  --text3: #4A6480;
  --border: rgba(27, 97, 220, 0.12);
  --border2: rgbargba(27, 97, 220, 0.12);
  --mono: 'Space Mono', monospace;
  --sans: 'Syne', sans-serif;
  --red: #FF4560;
}

html {
  scroll-behavior: smooth;
}

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

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── GRID BACKGROUND ─── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,180,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,180,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,16,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border2);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* scales & crops to fill the box */
  object-position: center;
  display: block;
}

.logo-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}

.logo-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,180,0.08) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,150,255,0.06) 0%, transparent 70%);
  top: 20%;
  left: 30%;
  pointer-events: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
  animation: fadeUp 0.6s 0.1s ease both;
  margin-bottom: 8px;
}

.hero h1 .hl  { color: var(--accent); }
.hero h1 .hl2 { color: var(--accent2); }

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
  margin: 20px auto 36px;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
  margin-bottom: 60px;
}

.btn-primary {
  background: var(--accent);
  color: #070B10;
  border: none;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #00ffc8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,229,180,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ─── ECG CARD ─── */
.ecg-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.4s ease both;
}

.ecg-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 20px 24px 16px;
  position: relative;
  overflow: hidden;
}

.ecg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ecg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ecg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
}

.ecg-stats { display: flex; gap: 20px; }

.ecg-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}

.ecg-stat-val      { color: var(--accent); font-weight: 700; }
.ecg-stat-val.blue { color: var(--accent2); }
.ecg-stat-val.red  { color: var(--red); }

svg.ecg-wave {
  width: 100%;
  height: 80px;
  overflow: visible;
}

.ecg-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecg-line-anim {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.5s linear infinite;
}

@keyframes drawLine {
   from {
    stroke-dashoffset: 1200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.data-streams {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.stream-pill {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.stream-icon.green { background: rgba(0,229,180,0.12); color: var(--accent); }
.stream-icon.blue  { background: rgba(0,150,255,0.12);  color: var(--accent2); }
.stream-icon.red   { background: rgba(255,69,96,0.12);  color: var(--red); }

.stream-info { min-width: 0; }

.stream-name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.stream-val {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-header p {
  font-size: 15px;
  color: var(--text2);
  max-width: 500px;
  margin: 12px auto 0;
  font-weight: 400;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: 80px 40px;
  background: var(--bg2);
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,180,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,180,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--bg2);
  padding: 32px;
  position: relative;
  transition: background 0.3s;
}

.step-card:hover { background: var(--surface); }

.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 40px;
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.step-icon-wrap.blue {
  border-color: rgba(0,150,255,0.2);
  background: var(--accent2-dim);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 400;
}

.step-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
}

.step-tag.blue {
  background: var(--accent2-dim);
  color: var(--accent2);
  border-color: rgba(0,150,255,0.2);
}

.full-width {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border2);
}

/* ─── FAQ ─── */
.faq-section {
  padding: 80px 40px;
}

.faq-inner {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border2);
  cursor: pointer;
}

.faq-item:first-of-type { border-top: 1px solid var(--border2); }

.faq-q {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  gap: 16px;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  transition: all 0.2s;
}

.faq-item.open .faq-toggle {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  padding: 0;
  font-weight: 400;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 20px;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 40px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border2);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.footer-sep { color: var(--text3); }

.footer-contact {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact:hover { color: var(--accent); }

.footer-li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-li:hover { border-color: var(--accent2); }

.footer-li svg {
  width: 16px;
  height: 16px;
  fill: var(--text2);
  transition: fill 0.2s;
}

.footer-li:hover svg { fill: var(--accent2); }

.footer-li span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.2s;
}

.footer-li:hover span { color: var(--accent2); }

/* ---------- ABOUT PAGE STYLES ---------------- */
.about-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  overflow: hidden; 
}

.about-team {
  padding: 80px 8%;
  background: var(--bg2);
}

.team-grid {
  margin-top: 60px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 28px;

  padding: 32px;

  text-align: center;

  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);

  border-color: rgb(7, 18, 224);
}

.team-photo {
    width: 130px;
    height: 130px;

    margin: 0 auto 24px;

    border-radius: 50%;
    overflow: hidden;

    border: 3px solid rgb(7, 18, 224);

    background: rgba(255,255,255,0.08);
}

.team-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.team-card h3 {
  margin-bottom: 8px;
}

.team-role {
  display: block;

  color: var(--accent);

  margin-bottom: 18px;

  font-size: 14px;
}

.team-linkedin {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: rgba(255,255,255,0.05);

  margin-bottom: 20px;

  color: #0A66C2;

  text-decoration: none;
}

.team-card p {
  color: rgba(255,255,255,0.75);

  font-size: 14px;

  line-height: 1.7;
}

.values-section {
  padding: 80px 8%;
}

.values-grid {
  margin-top: 60px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.value-card {
  padding: 32px;

  border-radius: 24px;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);

  transition: .3s ease;
}

.value-card:hover {
  transform: translateY(-6px);

  border-color: rgba(0,229,180,0.4);
}

.value-card h3 {
  margin-bottom: 14px;

  color: white;
}

.value-card p {
  color: rgba(255,255,255,0.75);

  line-height: 1.7;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* ─── CUSTOM MODAL ALERT POPUP ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 16, 0.85); /* Smooth overlay dimming */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Class to activate and show the modal */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 40px 32px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.modal-box h2 {
  font-family: var(--sans);
  color: var(--text);
  font-size: 24px;
  margin-bottom: 12px;
}

.modal-box p {
  font-family: var(--sans);
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-family: var(--mono); /* Space Mono match */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-btn:hover {
  background: #1c6eff;
}