:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent: #0EA5E9;
  --bg-gradient: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --normal: #10B981;
  --prehypertension: #F59E0B;
  --stage1: #F97316;
  --stage2: #EF4444;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 24px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  color: #EC4899;
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
  animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.accent-text {
  color: var(--accent);
}

.sub-name {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-github {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #3730A3 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: #E2E8F0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--normal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--normal);
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Landing Hero */
.landing-hero {
  position: relative;
  padding: 70px 24px 60px;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, rgba(14, 165, 233, 0.15) 50%, rgba(15, 23, 42, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  margin-bottom: 24px;
}

.pill-sparkle {
  color: #F472B6;
  font-weight: 700;
}

.pill-text {
  color: #E2E8F0;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, #38BDF8, #818CF8, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: #94A3B8;
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-hero-primary {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4F46E5 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

.btn-hero-secondary {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.stat-card {
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #38BDF8;
}

.stat-desc {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

/* Sections */
.section-padding {
  padding: 70px 24px;
}

.bg-alt {
  background: rgba(15, 23, 42, 0.6);
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 8px 0 12px;
}

.section-header p {
  color: #94A3B8;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.icon-blue { background: rgba(14, 165, 233, 0.2); color: #38BDF8; }
.icon-purple { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
.icon-orange { background: rgba(249, 115, 22, 0.2); color: #FB923C; }
.icon-green { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.icon-yellow { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.icon-pink { background: rgba(236, 72, 153, 0.2); color: #F472B6; }

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.feature-card p {
  color: #94A3B8;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Workflow Steps */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  position: relative;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Workspace Anchor */
.workspace-section {
  padding-top: 40px;
}

.workspace-header-banner {
  text-align: center;
  background: rgba(79, 70, 229, 0.15);
  border-y: 1px solid rgba(79, 70, 229, 0.3);
  padding: 24px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.workspace-header-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;

}

.workspace-header-banner p {
  color: #CBD5E1;
  font-size: 14px;
  margin-top: 4px;
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  width: 100%;
}

/* Grid Layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards Styling */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
}

.card-icon {
  font-size: 18px;
  color: var(--primary);
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-info { background: #E0F2FE; color: #0284C7; }
.badge-accent { background: #EEF2FF; color: #4F46E5; }
.badge-success { background: #D1FAE5; color: #059669; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger { background: #FEE2E2; color: #DC2626; }

/* Interactive Sample Buttons */
.chip-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #F8FAFC;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chip-danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }
.chip-warning:hover { background: #FFFBEB; border-color: #FCD34D; color: #D97706; }
.chip-success:hover { background: #ECFDF5; border-color: #6EE7B7; color: #059669; }

.nlp-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nlp-tag-item {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Form Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trio-row {
  grid-template-columns: 1fr 1fr 1fr;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

label i {
  color: var(--primary);
  margin-right: 4px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: #FFFFFF;
}

.btn {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3730A3 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover, .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-block {
  width: 100%;
  margin-top: 6px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.team-card h3 {
  font-size: 18px;
  color: #FFFFFF;
}

.team-role {
  font-size: 12px;
  color: var(--accent);
  margin-top: 2px;
}

.team-id {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 8px;
}

.team-id code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #E2E8F0;
}

/* Diagnostic Results Card */
.result-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--primary);
  margin-bottom: 16px;
}

.result-stage-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.result-bp-box {
  text-align: right;
}

.bp-value {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
}

.bp-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Probabilities Progress Bars */
.prob-section {
  margin-top: 14px;
}

.prob-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.prob-bar-group {
  margin-bottom: 8px;
}

.prob-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 3px;
  font-weight: 600;
}

.progress-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Chart Wrapper */
.chart-wrapper {
  position: relative;
  height: 260px;
}

/* Simulator Card */
.sim-controls {
  background: #F8FAFC;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.sim-slider-group {
  margin-bottom: 12px;
}

.sim-slider-group:last-child {
  margin-bottom: 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.slider-val {
  color: var(--primary);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.sim-results-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 14px;
  border-radius: var(--radius-md);
}

.sim-reduction-val {
  font-size: 24px;
  font-weight: 800;
  color: #047857;
}

/* DASH Diet Section */
.diet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.diet-item {
  background: #F8FAFC;
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.diet-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.diet-item-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  color: #94A3B8;
  font-size: 12px;
  text-align: center;
  margin-top: auto;
}
