* {
  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 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
}

.logo {
  max-width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.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;
}

.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,
.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;
}

@media (max-width: 780px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-inner nav {
    margin-top: 8px;
  }
}