* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.ekg-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.logo {
  max-width: 140px;
  margin-bottom: 12px;
  display: inline-block;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: #444;
  line-height: 1.5;
}

.card-container {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 24px auto 40px;
  padding: 0 16px;
  display: grid;
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.36rem;
  color: #0f3167;
}

.card p,
.card ul {
  line-height: 1.6;
  color: #333;
}

.card ul {
  list-style: disc inside;
}

.ekg-wave {
  position: absolute;
  width: 220px;
  height: 60px;
  opacity: 0;
  animation: fadeInEKG 2s ease-in-out forwards;
}

.ekg-wave.fade-out {
  animation: fadeOutEKG 1.5s ease-in-out forwards;
}

.ekg-wave svg {
  width: 100%;
  height: 100%;
}

@keyframes fadeInEKG {
  0% { opacity: 0; }
  20% { opacity: 0.5; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes fadeOutEKG {
  0% { opacity: 1; }
  70% { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes strokeLine {
  0% { stroke-dashoffset: 180; }
  100% { stroke-dashoffset: 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(135deg, #0f3167 0%, #d4a5ff 100%);
  border-bottom: 3px solid #0f3167;
  box-shadow: 0 2px 8px rgba(15, 49, 103, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand,
.navbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  margin-left: -8px;
}

.logo {
  max-width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: -6px;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 700;
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.nav-inner nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-inner nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.nav-inner nav a.active,
.nav-inner nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.home-main,
.content-main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, rgba(15, 49, 103, 0.08) 0%, rgba(212, 165, 255, 0.08) 100%), #ffffff;
  border-bottom: 2px solid #e0e8f1;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: #0f3167;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  margin-bottom: 24px;
  color: #333;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #0f3167 0%, #d4a5ff 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 49, 103, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 49, 103, 0.4);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.device-selector {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  align-items: center;
}

.feature-text {
  max-width: 820px;
  margin: 60px auto 52px;
  font-size: clamp(1.4rem, 1.8vw, 1.9rem) !important;
  line-height: 1.9 !important;
  color: #0f3167 !important;
  text-align: center;
  padding: 10px 18px;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(15, 49, 103, 0.06);
}
.feature-text p,
.feature-text span.feature-subtext {
  color: inherit !important;
}
.feature-text p {
  margin-bottom: 0;
}
.feature-subtext {
  display: block;
  margin-top: 14px;
  color: #111111 !important;
  font-size: 0.95em !important;
  font-weight: 500 !important;
  text-shadow: none;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 58px;
}

.device-display {
  display: grid;
  place-items: center;
}

.device-display img {
  width: min(100%, 760px);
  max-height: 620px;
  object-fit: contain;
}

.color-options {
  display: flex !important;
  gap: 14px !important;
  justify-content: center !important;
  align-items: center;
  margin: 0 auto;
}

button.color-option {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-clip: border-box !important;
  padding: 0 !important;
}

button.color-option:nth-child(1) {
  background: #b7a7ff !important;
}

button.color-option:nth-child(2) {
  background: #4f4f4f !important;
}

button.color-option:nth-child(3) {
  background: #e8e8e8 !important;
}

button.color-option[selected],
button.color-option.selected {
  border-color: #0f3167 !important;
  box-shadow: 0 8px 18px rgba(15, 49, 103, 0.18) !important;
  transform: translateY(-2px) !important;
}

.color-option:nth-child(1) {
  background: #b7a7ff;
}

.color-option:nth-child(2) {
  background: #4f4f4f;
}

.color-option:nth-child(3) {
  background: #e8e8e8;
}

.color-option:focus-visible {
  outline: 3px solid rgba(15, 49, 103, 0.25);
  outline-offset: 4px;
}

.animate-on-load {
  opacity: 0;
  transform: translateY(24px);
}

.card {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(15, 49, 103, 0.12);
  border-color: rgba(15, 49, 103, 0.16);
}

.card h2,
.card h1,
.card h3 {
  margin-bottom: 8px;
  color: #0f3167;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.team-grid article,
.qa {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.qa h3 {
  margin-bottom: 6px;
}

/* Contact Page Styles */
.contact-main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.contact-section {
  text-align: center;
  padding: 40px 20px;
}

.contact-section h1 {
  color: #0f3167;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-container {
  max-width: 600px;
  margin: 40px auto 0;
}

.contact-form {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0f3167;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f3167;
  box-shadow: 0 0 0 3px rgba(15, 49, 103, 0.1);
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 14px 32px;
  margin-top: 10px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.loading {
  display: block;
  background: #e3f2fd;
  color: #1976d2;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

@media (max-width: 780px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-inner nav {
    margin-top: 8px;
    flex-direction: column;
    gap: 8px;
  }
  
  .contact-form {
    padding: 20px;
  }
}

/* Banner styles */
.hero-banner {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}
.banner-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f6f5f9 0%, #efe8f6 100%);
}
.banner-container img#banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
  max-width: 520px;
  margin-right: 6vw;
}
.banner-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
.banner-content .subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 14px;
}
.banner-content .rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.btn.outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.9);
}

@media (max-width: 980px) {
  .banner-container { min-height: 420px; }
  .banner-content { margin-right: 4vw; max-width: 420px; text-align: center; }
}

@media (max-width: 640px) {
  .banner-container { min-height: 360px; }
  .banner-content { position: relative; margin: 0 20px; text-align: center; }
  .banner-content h1 { font-size: 1.6rem; }
}