/* 
  Human Metrics - Modern Dark Theme 
  Palette: Dark Navy (#0a192f), Light Navy (#112240), Lightest Navy (#233554), 
           Slate (#8892b0), Light Slate (#a8b2d1), White (#e6f1ff), 
           Green Accent (#64ffda)
*/

:root {
  --bg-dark: #0a192f;
  --bg-section: #0a192f;
  --bg-card: #112240;
  --text-main: #e6f1ff;
  --text-muted: #8892b0;
  --accent: #64ffda;
  --accent-glow: rgba(100, 255, 218, 0.1);
  --font: "Inter", sans-serif;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Header ---- */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 40px;
  border-radius: 4px;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  /* Much larger gradient */
  height: 120vw;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.08) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 90%;
  /* Allow it to take more width */
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: clamp(120px, 15vw, 250px);
  /* Responsive scaling */
  width: auto;
  margin: 0 auto clamp(2rem, 4vw, 4rem);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  /* Massive scaling */
  margin-bottom: clamp(1rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
}

.tagline {
  color: var(--accent);
  font-family: var(--font);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(1rem, 2vw, 1.5rem);
  /* Scaled text */
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: clamp(1rem, 1.5vw, 1.5rem) clamp(2rem, 3vw, 4rem);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  margin-top: 1rem;
  transition: all 0.3s ease;
  background: transparent;
}

.btn:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Trusted By ---- */
.trusted-by {
  padding: 2rem 0;
  background: var(--bg-card);
  text-align: center;
}

.trusted-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.testimonial-item cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Problem Section ---- */
.problem {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stat-highlight {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(17, 34, 64, 0.5);
  border: 1px solid rgba(136, 146, 176, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateX(10px);
  background: var(--bg-card);
}

.problem-desc {
  margin-top: 2rem;
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px solid rgba(136, 146, 176, 0.1);
  padding-top: 1rem;
}

/* Bar Chart */
.chart-container {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(136, 146, 176, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-card),
    var(--accent),
    var(--bg-card)
  );
}

.chart-container h3 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bar-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 200px;
  gap: 1rem;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  width: 40px;
}

.bar {
  width: 100%;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 4px 4px 0 0;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, transparent, rgba(100, 255, 218, 0.2));
}

.bar.active {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.bar.active::after {
  background: linear-gradient(to top, var(--accent), #aaffec);
}

.year {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ---- Solution Section Refined ---- */
.solution {
  padding: 8rem 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.03) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.solution .container {
  position: relative;
  z-index: 1;
}



.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.solution-visual {
  height: 400px;
  background: rgba(17, 34, 64, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(136, 146, 176, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.solution-visual::after {
  content: "Live EMG Analysis";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(100, 255, 218, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

#emgCanvas {
  width: 100%;
  height: 100%;
}

.metric-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(136, 146, 176, 0.2);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.metric-card:hover::after {
  transform: scaleX(1);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.75rem;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 50%;
  color: var(--accent);
}

.metric-val {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Comparison Section ---- */
.comparison {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(136, 146, 176, 0.2);
  color: var(--text-muted);
}

.comparison-table th {
  color: var(--text-main);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.comparison-table .feature-row {
  color: var(--text-main);
  font-weight: 600;
}

.highlight-col {
  background: rgba(100, 255, 218, 0.05);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.comparison-table th.highlight-col {
  color: var(--accent);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* ---- Who We Are ---- */
.about {
  padding: 8rem 0;
  background: var(--bg-card);
  position: relative;
}

.about-header {
  margin-bottom: 4rem;
  text-align: left;
}

.about-header h2 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #7b85ba;
  /* Matching the screenshot's purple/blue tone */
  font-weight: 700;
}

.about-header .subtitle {
  font-size: 1.5rem;
  color: #7b85ba;
  font-weight: 600;
  opacity: 0.8;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.team-member {
  text-align: left;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 176, 0.2);
  transition: var(--transition);
  display: block;
}

.team-member:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #7b85ba;
  margin-bottom: 0.25rem;
  text-decoration: underline;
  text-decoration-color: rgba(123, 133, 186, 0.3);
  text-underline-offset: 4px;
}

.member-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.member-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-info {
  padding-left: 2rem;
  border-left: 1px solid rgba(136, 146, 176, 0.1);
}

.about-logo {
  height: 120px;
  width: auto;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.about-info h3 {
  font-size: 1.5rem;
  color: #7b85ba;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-info p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* ---- Contact ---- */
.contact {
  padding: 6rem 0;
  background: var(--bg-dark);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 3rem;
  max-width: 500px;
  margin-inline: auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1.5rem;
}

.contact-form label span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(136, 146, 176, 0.1);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  width: 100%;
  margin-top: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(136, 146, 176, 0.1);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-list {
    display: none;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .problem-visual, .solution-visual {
    order: -1;
    margin-bottom: 2rem;
  }

  .solution-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ---- General Polish ---- */
.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
}
