/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06060f;
  --surface: #0d1117;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --accent: #ff6b35;
  --accent-glow: rgba(255,107,53,0.4);
  --blue: #3b82f6;
  --green: #22c55e;
  --text: #e2e8f0;
  --text-dim: #64748b;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #ff6b35, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.nav-right a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: #e55a28; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Aurora mesh */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: aurora-move-1 12s ease-in-out infinite;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 20%;
  right: -5%;
  animation: aurora-move-2 15s ease-in-out infinite;
}

.aurora-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation: aurora-move-3 18s ease-in-out infinite;
}

@keyframes aurora-move-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

@keyframes aurora-move-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(1.05); }
  66% { transform: translate(30px, 50px) scale(0.9); }
}

@keyframes aurora-move-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-70px, -20px) scale(0.95); }
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== BUTTONS ===== */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: glow-pulse 3s ease-in-out infinite;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.3);
}

.btn-glow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  animation: none;
}

.btn-glow:disabled:hover {
  transform: none;
  box-shadow: none;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,53,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,107,53,0.4), 0 0 60px rgba(255,107,53,0.1); }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--text-dim);
  background: var(--glass);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.card-icon {
  margin-bottom: 20px;
}

.glass-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.glass-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== PAIN POINTS ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ===== HOW IT WORKS ===== */
.steps-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
}

.step-card {
  text-align: center;
  flex: 0 0 240px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon-wrap {
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.step-line {
  flex: 0 0 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 1px;
  margin-top: -60px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== STATS ===== */
.stats-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

.stat-item {
  padding: 20px;
}

.stat-value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-unit {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  padding-bottom: 120px;
}

.upload-section .section-subtitle {
  margin-bottom: 40px;
}

/* Screens */
.screen { display: none; }
.screen.active { display: block; }

/* Material toggle */
.material-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  border: 1.5px solid var(--glass-border);
  border-radius: 100px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: var(--glass);
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  transition: all 0.2s;
  user-select: none;
}

.toggle-option input { display: none; }
.toggle-option:first-child { border-right: 1px solid var(--glass-border); }

.toggle-option.active {
  background: var(--accent);
  color: white;
}

.toggle-option:hover:not(.active) { color: var(--text); }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(255,255,255,0.12);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(255,107,53,0.05);
}

.dropzone-content { pointer-events: none; }

.dropzone-icon { margin-bottom: 20px; opacity: 0.8; }

.btn-select {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s;
  margin-bottom: 16px;
  display: inline-block;
}

.btn-select:hover { background: #e55a28; }

.dropzone-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* File preview */
.file-preview { margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }

.file-preview-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.file-preview-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-size {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.file-remove:hover { color: #ef4444; }

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Process card */
.process-card {
  max-width: 600px;
  margin: 0 auto;
}

.process-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-filename {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* Steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.step-item:last-child { border-bottom: none; }
.step-item.active { opacity: 1; }
.step-item.done { opacity: 0.6; }

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item.active .step-dot {
  border-color: var(--accent);
  background: rgba(255,107,53,0.15);
  animation: step-pulse 1.5s infinite;
}

.step-item.done .step-dot {
  border-color: var(--green);
  background: var(--green);
}

.step-item.done .step-dot::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,53,0); }
}

.step-content { flex: 1; }
.step-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.step-desc { display: block; font-size: 12px; color: var(--text-dim); }

/* Progress bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9b6a);
  border-radius: 3px;
  width: 0%;
  transition: width 2s ease;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 36px;
  text-align: right;
}

.process-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* Done screen */
.done-icon, .error-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.done-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--green);
}

.error-title { color: #ef4444; }

.done-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 32px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.result-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.result-filename {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 4px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-download:hover { background: #16a34a; }

.btn-reset {
  display: block;
  margin: 16px auto 0;
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-dim);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  max-width: 400px;
  width: 90%;
  padding: 32px;
  position: relative;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}

@keyframes modal-out {
  0%   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.92); filter: blur(10px); }
}

@keyframes overlay-out {
  from { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  to   { background: rgba(0,0,0,0);   backdrop-filter: blur(0px);  -webkit-backdrop-filter: blur(0px); }
}

.modal-overlay.closing {
  animation: overlay-out 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.modal-overlay.closing .modal-box {
  animation: modal-out 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Auth form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form input::placeholder { color: var(--text-dim); }
.auth-form [hidden] { display: none; }

.auth-submit {
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}

/* Auth message */
.auth-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.auth-message[hidden] { display: none; }
.auth-message.success { background: rgba(34,197,94,0.12); color: #22c55e; }
.auth-message.error { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== SETTINGS MODAL ===== */
.settings-form {
  display: flex;
  flex-direction: column;
}

.settings-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.settings-input {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.settings-input:focus { border-color: var(--accent); }
.settings-input::placeholder { color: var(--text-dim); }

.settings-hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.settings-download {
  align-self: flex-start;
  margin-bottom: 4px;
  text-decoration: none;
}

.settings-etalon-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.settings-etalon-row .settings-input { flex: 1; }
.settings-etalon-row .btn-sm { flex-shrink: 0; white-space: nowrap; }

.settings-status {
  font-size: 13px;
  min-height: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.settings-status.valid { color: #22c55e; }
.settings-status.invalid { color: #ef4444; }

.settings-save {
  margin-top: 16px;
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

#settings-overlay .modal-box {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

#settings-profile[hidden] { display: none; }

.settings-section {
  border-top: 1px solid var(--glass-border);
  margin-top: 24px;
  padding-top: 16px;
}

.settings-section summary {
  cursor: pointer;
  font-weight: 600;
}

.settings-section form {
  margin-top: 16px;
}

.settings-section .settings-input {
  margin-bottom: 12px;
}

.registration-list { list-style: none; margin: 0; padding: 0; }
.registration-list li {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  overflow-wrap: anywhere;
}
.registration-list li span { color: var(--text-dim); font-size: 14px; }
.registration-list li div { display: flex; flex-wrap: wrap; gap: 8px; }

.service-google {
  border: 0;
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  min-width: 0;
  padding: 0;
}

.service-google[hidden] { display: none; }
.service-google legend { font-weight: 600; margin-bottom: 12px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pain-grid,
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-process {
    flex-direction: column;
    gap: 16px;
  }

  .step-card { flex: 0 0 auto; }

  .step-line {
    width: 2px;
    height: 40px;
    flex: 0 0 40px;
    margin-top: 0;
  }
}

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .nav-hamburger { display: block; }
  .nav-links, .nav-right { display: none; }
  .nav-links.open,
  .nav-right.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    gap: 14px;
    z-index: 999;
  }
  .nav-links.open { top: 100%; }
  .nav-right.open { top: calc(100% + 1px); padding-top: 0; }
  .nav-right.open .nav-cta { align-self: flex-start; }

  .hero { padding: 100px 0 60px; }

  .hero-title { font-size: 28px; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .section { padding: 64px 0; }

  .glass-card { padding: 24px; }

  .dropzone { padding: 48px 20px; }

  .result-card { flex-wrap: wrap; }
  .btn-download { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }

  .aurora-blob { opacity: 0.25; }
}
