/* ==========================================================================
   ScoreRails - Design System & Custom Stylesheet
   Theme: High-Tech FinTech Dark Mode with Glassmorphism & Neon Glows
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  
  --primary-cyan: #00F2FE;
  --primary-blue: #4FACFE;
  --primary-purple: #7F00FF;
  --accent-green: #00E676;
  --accent-gold: #FFB300;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #7F00FF 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 50%, #818CF8 100%);
  --grad-glow: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(127,0,255,0.05) 70%, transparent 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Shadows & Effects */
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --neon-glow: 0 0 25px rgba(0, 242, 254, 0.35);
  --purple-glow: 0 0 30px rgba(127, 0, 255, 0.3);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Orbs */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  box-shadow: var(--neon-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #050B14;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bg-card-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 50px;
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Visual & Interactive Sandbox */
.hero-visual {
  position: relative;
}

.hero-image-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--glass-shadow);
  z-index: 10;
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Trust / Metric Bar */
.metrics-section {
  padding: 40px 0;
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  background: rgba(15, 23, 42, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item h3 {
  font-size: 2.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

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

/* Feature Cards Grid */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-tag {
  color: var(--primary-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 24px;
}

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

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

/* Interactive Simulator Section */
.simulator-section {
  padding: 100px 0;
  background: var(--grad-glow);
}

.simulator-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}

.sim-controls h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.slider-group {
  margin-bottom: 28px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.slider-val {
  color: var(--primary-cyan);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--primary-cyan);
}

.sim-output {
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-display {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,242,254,0.1) 0%, transparent 70%);
  border: 8px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--primary-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.5s ease;
}

.score-num {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-cyan);
}

.score-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.sim-metrics-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 20px;
}

.sim-stat h4 {
  font-size: 1.2rem;
  color: var(--text-main);
}

.sim-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Code Snippet Tabs */
.code-section {
  padding: 100px 0;
}

.code-wrapper {
  background: #050811;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.code-header {
  background: rgba(15, 23, 42, 0.8);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-card-border);
}

.code-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  font-weight: 600;
}

.code-body {
  padding: 28px 32px;
  font-family: var(--font-code);
  font-size: 0.95rem;
  color: #E2E8F0;
  overflow-x: auto;
  line-height: 1.7;
}

.code-body .kw { color: #F472B6; }
.code-body .str { color: #A7F3D0; }
.code-body .num { color: #FBBF24; }
.code-body .com { color: #64748B; font-style: italic; }

/* Applied AI Lab Submission Modal / Card */
.application-spotlight {
  padding: 80px 0;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.12) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.spotlight-info h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.spotlight-info p {
  color: var(--text-muted);
  max-width: 600px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 60px 0 30px 0;
  background: rgba(5, 8, 17, 0.95);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* Waitlist Registration Section */
.waitlist-section {
  padding: 100px 0;
  background: var(--grad-glow);
}

.waitlist-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  max-width: 840px;
  margin: 0 auto;
}

.waitlist-header {
  text-align: center;
  margin-bottom: 40px;
}

.waitlist-header h2 {
  font-size: 2.4rem;
  margin-top: 12px;
  margin-bottom: 12px;
}

.waitlist-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group select {
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-group select option {
  background: #0F172A;
  color: var(--text-main);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.waitlist-success {
  text-align: center;
  padding: 30px 20px;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.waitlist-success h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.waitlist-success p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .simulator-container, .spotlight-card, .form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .features-grid, .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .features-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
}
