:root {
  --bg: #09090b;
  --panel-bg: rgba(24, 24, 27, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --input-bg: rgba(0, 0, 0, 0.3);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus: rgba(0, 242, 254, 0.5);
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.5;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(79,172,254,0.6) 0%, rgba(0,242,254,0) 70%);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(168,85,247,0.4) 0%, rgba(216,180,254,0) 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%; left: 60%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, rgba(244,114,182,0) 70%);
  animation-delay: -10s;
}

.glass-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Typography & Layout */
.screen {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.hidden {
  display: none !important;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Landing */
.hero-content {
  padding: 60px 40px;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 100px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

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

.stat-item .num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-item .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.stat-separator {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* Form Screen */
.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.back-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-4px);
}

.form-header h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.form-header .sub {
  color: var(--text-muted);
  font-size: 15px;
}

.main-panel {
  padding: 40px;
}

.section {
  margin-bottom: 32px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.section-label svg {
  color: var(--accent-primary);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2-3 { grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr; }

@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2-3 {
    grid-template-columns: 1fr;
  }
}

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

.field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.field label span.val {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

/* Form Controls */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center;
  pointer-events: none;
}

select {
  appearance: none;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #fff;
  padding: 12px 14px;
  padding-right: 36px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

select:hover {
  border-color: rgba(255,255,255,0.2);
}

select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--input-focus), inset 0 2px 4px rgba(0,0,0,0.1);
}

select option {
  background: #18181b;
  color: #fff;
}

.toggle-group {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.toggle-btn:hover:not(.active) {
  color: #fff;
}

.toggle-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Range Slider */
.range-container {
  height: 42px;
  display: flex;
  align-items: center;
}

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--input-border);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  margin: 40px 0;
}

/* Predict Row */
.predict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #000;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 242, 254, 0.4);
}

.primary-btn:active {
  transform: translateY(1px);
}

.result {
  text-align: right;
}

.result .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.result .amount {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.footnote {
  margin-top: 32px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* Animations */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.price-pop {
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
