/* style.css - Premium Glassmorphic Theme for CardioSim Landing Page */

:root {
  --bg-dark: #06090f;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f0f6fc;
  --text-muted: #8b949e;
  
  --color-green: #00ff66;
  --color-cyan: #00e5ff;
  --color-red: #ff1744;
  --color-yellow: #ffeb3b;
  --color-orange: #ff9100;
  
  --btn-gradient: linear-gradient(135deg, #00e5ff 0%, #00ff66 100%);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 9, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.pulse-icon {
  animation: pulse-keyframe 1s infinite alternate;
}

@keyframes pulse-keyframe {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

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

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn-primary {
  background: var(--btn-gradient);
  color: #06090f;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-app-store:hover {
  background: rgba(255,255,255,0.15);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a2a8b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Device Mockup */
.mock-device {
  background: #090d13;
  border: 4px solid #1a2333;
  border-radius: 12px;
  padding: 16px;
  aspect-ratio: 1.6 / 1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 229, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.mock-waves {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-wave-channel {
  height: 40px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.02);
}

.mock-wave-label {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
}

.mock-wave-channel.green { color: var(--color-green); }
.mock-wave-channel.red { color: var(--color-red); }

.mock-pulse-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  background-size: 60px 100%;
  background-repeat: repeat-x;
  animation: wave-slide 4s linear infinite;
}

.green-pulse {
  background-image: radial-gradient(circle at 50% 100%, var(--color-green) 1px, transparent 2px);
  mask-image: linear-gradient(to right, transparent, white, transparent);
  border-bottom: 2px solid var(--color-green);
}

.red-pulse {
  background-image: radial-gradient(circle at 50% 100%, var(--color-red) 1px, transparent 2px);
  border-bottom: 2px solid var(--color-red);
}

@keyframes wave-slide {
  from { background-position-x: 0; }
  to { background-position-x: -400px; }
}

.mock-vitals {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}

.mock-vital-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.mock-vital-box.green { border-color: rgba(0, 255, 102, 0.15); color: var(--color-green); }
.mock-vital-box.red { border-color: rgba(255, 23, 68, 0.15); color: var(--color-red); }

.v-label {
  font-size: 0.6rem;
  font-family: 'Roboto Mono', monospace;
}

.v-value {
  font-size: 1.15rem;
  font-weight: 800;
}

/* Features */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-dark) 0%, #080d17 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
}

.f-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Call to Action Demo */
.cta-demo {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border-color);
}

.cta-container h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-container p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* Footer */
footer {
  background: #03050a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-left {
  max-width: 400px;
}

.footer-left h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .cta-group {
    justify-content: center;
  }
  nav {
    display: none; /* simple hidden for space */
  }
}
