:root {
  --bg: #0a0a0a;
  --bg-1: #131313;
  --bg-2: #1c1c1c;
  --bg-3: #252525;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --text-soft: #b8b8b8;
  --text-muted: #888;
  --text-dim: #555;
  --gold: #ffc107;
  --gold-soft: #ffd54f;
  --gold-dark: #c79100;
  --gold-shimmer: linear-gradient(135deg, #c79100 0%, #ffc107 25%, #ffd54f 50%, #ffc107 75%, #c79100 100%);
  --red: #ef4444;
  --green: #22c55e;
  --border: rgba(255, 193, 7, 0.15);
  --border-mid: rgba(255, 193, 7, 0.3);
  --shadow-gold: 0 4px 24px rgba(255, 193, 7, 0.2);
  --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1200px;
  --font-display: 'Audiowide', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;
  --transition: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-soft); }
::selection { background: var(--gold); color: var(--bg); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.small { font-size: 0.85em; opacity: 0.8; }
.gold { color: var(--gold); }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; }
p { color: var(--text-soft); margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--text-soft); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  font-size: 1.6rem;
  color: var(--gold);
  animation: spin 8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.logo-text .gold {
  color: var(--gold);
}
.badge {
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  text-decoration: none;
}
.btn-gold {
  background: var(--gold-shimmer);
  background-size: 200% auto;
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
  background-position: right center;
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-large { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.btn-submit {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1.3rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.hero .lead {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.trust-badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.badge-trust {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Form section */
.form-section {
  padding: 2rem 0 5rem;
}
.form-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-deep);
}
@media (max-width: 600px) {
  .form-card { padding: 1.5rem; border-radius: var(--radius); }
}
.form-card h2 {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.form-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 2rem; }
.form-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .auto-grid { grid-template-columns: 1fr; }
}

input, textarea, select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Photo upload */
.photo-upload { position: relative; }
.photo-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.photo-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.photo-label:hover {
  border-color: var(--gold);
  background: var(--bg-1);
}
.photo-icon {
  font-size: 2rem;
}
.photo-text {
  font-size: 0.95rem;
  color: var(--text-soft);
}
.photo-text .small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.photo-preview {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.photo-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.photo-preview .remove-photo {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: var(--text);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.2rem;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Result section */
.result-section {
  padding: 3rem 0 5rem;
}
.result-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  animation: slideUp 0.6s var(--transition);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.result-header h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

#result-content h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#result-content h3:first-child { margin-top: 0; }
#result-content ul, #result-content ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-soft);
}
#result-content li { margin-bottom: 0.5rem; }
#result-content p { color: var(--text-soft); }
#result-content strong { color: var(--text); }

.diagnosis-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.diagnosis-card .probability {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}
.diagnosis-card .cause-name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.diagnosis-card .cost {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.6rem;
}

.urgency-bar {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.urgency-low { background: rgba(34, 197, 94, 0.1); border-left: 4px solid var(--green); color: var(--green); }
.urgency-medium { background: rgba(255, 193, 7, 0.1); border-left: 4px solid var(--gold); color: var(--gold); }
.urgency-high { background: rgba(239, 68, 68, 0.1); border-left: 4px solid var(--red); color: var(--red); }

/* How section */
.how-section {
  padding: 5rem 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s var(--transition);
}
.step-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.step-num-big {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}
.step-card h3 { margin-bottom: 0.5rem; }

/* Why section */
.why-section {
  padding: 5rem 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.why-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.why-item h3 {
  margin-bottom: 0.4rem;
  color: var(--text);
}
.why-item p { margin: 0; font-size: 0.95rem; }

/* Footer CTA */
.footer-cta {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 3rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  text-align: center;
}
.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.site-footer .small { margin-top: 0.5rem; opacity: 0.7; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}
