:root {
  /* iPhone 17e Style - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --accent-primary: #00d4ff;
  --accent-secondary: #00d9a3;
  --accent-pink: #ec4899;
  --accent-orange: #f59e0b;
  --accent-purple: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.5);
  --border-color: rgba(255,255,255,0.1);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a3e 50%, #0a0a0f 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #00d9a3 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0,212,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,217,163,0.1) 0%, transparent 50%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-accent);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,212,255,0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0,212,255,0.4);
}

.gui-button {
  margin-left: 1rem;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  box-shadow: 0 10px 40px rgba(236,72,153,0.3);
}

.gui-button:hover {
  box-shadow: 0 15px 50px rgba(236,72,153,0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

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

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Sections */
.section {
  padding: 6rem 2rem;
  position: relative;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Introduction */
.introduction {
  background: var(--bg-secondary);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.intro-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.intro-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.intro-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Predictors */
.predictors {
  background: var(--bg-primary);
}

.predictors-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tab-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #000;
}

.tab-btn:hover:not(.active) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tab-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.tab-content.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.predictor-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.predictor-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-3px);
}

.predictor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.predictor-icon {
  font-size: 2rem;
}

.predictor-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.impact-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.impact-badge.high {
  background: rgba(236,72,153,0.2);
  color: var(--accent-pink);
}

.impact-badge.medium {
  background: rgba(0,212,255,0.2);
  color: var(--accent-primary);
}

.predictor-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.predictor-range {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Methods */
.methods {
  background: var(--bg-secondary);
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.method-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.method-item:hover {
  border-color: rgba(0,212,255,0.3);
}

.method-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0,212,255,0.1);
  line-height: 1;
}

.method-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.method-item p {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.method-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Results */
.results {
  background: var(--bg-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.result-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.result-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-5px);
}

.result-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.auc-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.auc-item {
  text-align: center;
}

.auc-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auc-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.auc-ci {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.auc-divider {
  width: 2px;
  height: 80px;
  background: var(--border-color);
}

.calibration-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
}

.cal-item {
  text-align: center;
}

.cal-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.cal-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.result-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.utility-list {
  list-style: none;
}

.utility-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.utility-list li:last-child {
  border-bottom: none;
}

.utility-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

/* Nomogram */
.nomogram {
  background: var(--bg-secondary);
}

.nomogram-example {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.nomogram-example h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.case-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.score-table {
  margin-bottom: 2rem;
  width: 100%;
  border-collapse: collapse;
}

.score-table th,
.score-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.score-table thead th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

.score-table th:nth-child(2),
.score-table td:nth-child(2) {
  text-align: center;
}

.score-table th:nth-child(3),
.score-table td:nth-child(3) {
  text-align: right;
}

.score-table .score {
  font-weight: 700;
  color: var(--accent-primary);
}

.score-table tr.total {
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(0,212,255,0.1);
  border-radius: 8px;
}

.score-table tr.total td {
  border-bottom: none;
}

.score-table tr.total td:first-child {
  border-radius: 8px 0 0 8px;
}

.score-table tr.total td:last-child {
  border-radius: 0 8px 8px 0;
}

.prediction-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--gradient-accent);
  border-radius: 16px;
  color: #000;
}

.prediction-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.prediction-value {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
}

.citation {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.citation h4 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.citation p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

/* Figures Section */
.figures {
  background: var(--bg-primary);
  padding: 6rem 2rem;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.figure-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.figure-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.figure-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.figure-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.figure-caption {
  padding: 1.5rem;
}

.figure-caption h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.figure-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .predictors-tabs {
    flex-wrap: wrap;
  }
  
  .auc-display {
    flex-direction: column;
    gap: 1rem;
  }
  
  .auc-divider {
    width: 80px;
    height: 2px;
  }
  
  .score-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .score-row span:nth-child(2) {
    display: none;
  }
  
  .figures-grid {
    grid-template-columns: 1fr;
  }
}
