@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: radial-gradient(circle at top, #0f172a, #020617 60%);
  --card: #0b1220;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --shadow: 0 25px 60px rgba(8, 145, 178, 0.2);
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.landing-body {
  padding: 40px clamp(24px, 5vw, 80px);
  overflow-x: hidden;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 48px;
}

.hero h1 {
  font-size: 18px;
  margin: 0 0 16px;
}

.tagline {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.upload-panel {
  position: relative;
}

.panel-chrome {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.panel-title {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.panel-status {
  color: var(--accent);
}

.file-field {
  display: block;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-bottom: 18px;
}

.file-field input {
  display: none;
}

.file-field:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.file-name {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  font-family: 'Share Tech Mono', monospace;
}

.form-alert {
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  color: #f87171;
  margin: 0 0 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-alert.visible {
  opacity: 1;
}

.upload-btn {
  width: 100%;
  font-size: 18px;
  padding: 14px 0;
}

.panel-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.telemetry {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.pulse-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.9), rgba(8,47,73,0.4));
  animation: orbPulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.telemetry-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
}

.telemetry-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.processing-overlay.visible {
  display: flex;
}

.processing-core {
  text-align: center;
  color: var(--text);
}

.processing-robot {
  width: 160px;
  margin: 0 auto 24px;
  position: relative;
  animation: robotFloat 4s ease-in-out infinite;
}

.robot-dome {
  width: 120px;
  height: 60px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(59,130,246,0.8), rgba(15,23,42,0.9));
  border-radius: 120px 120px 40px 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
}
.robot-dome .sensor {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.9);
  animation: blink 1.8s ease-in-out infinite;
}
.robot-dome .sensor.left { left: 25px; }
.robot-dome .sensor.right { right: 25px; animation-delay: 0.6s; }

.robot-body {
  width: 110px;
  height: 70px;
  margin: -10px auto 0;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
}

.robot-body .chest-line {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.5), rgba(14, 165, 233, 0.9));
  animation: pulseLine 2.2s ease-in-out infinite;
}

.robot-base {
  width: 80px;
  height: 14px;
  background: rgba(59, 130, 246, 0.5);
  margin: 0 auto;
  border-radius: 999px;
  filter: blur(2px);
}

.robot-beam {
  width: 160px;
  height: 80px;
  margin: 18px auto 0;
  background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  position: relative;
  animation: scan 3s linear infinite;
  overflow: hidden;
}

.doc-icon {
  width: 46px;
  height: 60px;
  border-radius: 6px;
  border: 2px solid rgba(248, 250, 252, 0.6);
  margin: 10px auto;
  position: relative;
  animation: docInspect 3s ease-in-out infinite;
}
.doc-icon::before,
.doc-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 999px;
}
.doc-icon::before { top: 18px; }
.doc-icon::after { bottom: 18px; }

.processing-core p {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
}

.version {
  margin-top: 40px;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* Review page styles */

.review-body {
  padding: 30px clamp(16px, 4vw, 60px);
}

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

h1 {
  margin-top: 0;
  font-size: clamp(26px, 3vw, 40px);
}

.work-area-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

.preview-img-static {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  display: block;
}

.rows-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rows-table th,
.rows-table td {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 8px;
  vertical-align: top;
}

.rows-table th {
  background: rgba(148, 163, 184, 0.1);
  text-align: left;
  font-weight: 600;
}

input.row-name,
input.row-passport {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  padding: 6px;
  border-radius: 6px;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0f172a;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.status {
  margin-left: 8px;
  font-size: 13px;
}

.actions-bar {
  margin-bottom: 16px;
  text-align: right;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes scan {
  0% { box-shadow: inset 0 0 0 rgba(14,165,233,0.4); }
  50% { box-shadow: inset 0 0 40px rgba(14,165,233,0.35); }
  100% { box-shadow: inset 0 0 0 rgba(14,165,233,0.4); }
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes armWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

@keyframes docInspect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.doc-icon::after { bottom: 18px; }

.robot-arms {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}

.robot-arm {
  width: 6px;
  height: 40px;
  background: linear-gradient(180deg, rgba(59,130,246,0.5), rgba(14,165,233,0.9));
  border-radius: 999px;
  animation: armWave 1.8s ease-in-out infinite;
}
.robot-arm.right {
  animation-delay: 0.6s;
}
