:root {
  --bg: #05050b;
  --bg-soft: #0f172a;
  --surface: #0e111d;
  --surface-strong: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.8));
  --border: rgba(148, 163, 184, 0.4);
  --border-strong: rgba(59, 130, 246, 0.35);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-strong: #0ea5e9;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.55);
  --radius: 1.25rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.2), transparent 45%),
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.18), transparent 40%),
    var(--bg);
  color: var(--text);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% -10%, rgba(14, 165, 233, 0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.brand-header {
  margin: 0 auto 1rem;
  width: 120px;
}

.brand-logo {
  width: 100%;
  opacity: 0.5;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hero-card {
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.8rem;
  border-radius: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.subtitle {
  color: var(--text-muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-sm {
  display: grid;
  gap: 0.75rem;
}

.section {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

.section-icon {
  font-size: 1.25rem;
}

.contact-form-grid {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group input,
.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.contact-method-button {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  display: flex;
  gap: 0.7rem;
}

.contact-method-button.is-selected {
  border-color: var(--accent-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.contact-method-icon {
  font-size: 1.5rem;
}

.contact-method-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-method-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.button-grid {
  display: grid;
  gap: 0.75rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1.1rem;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.status-banner {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.features-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.features-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.08);
}

.feature-icon {
  font-size: 1.4rem;
}

.feature-text {
  color: var(--text-muted);
}

.pricing-section {
  padding-top: 0;
}

.pricing-card {
  background: rgba(59, 130, 246, 0.08);
  border-radius: 1.2rem;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-bottom: 0.35rem;
}

.pricing-note-block {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-note-accent {
  color: var(--accent-light);
  font-weight: 700;
}

.about-section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 4rem;
}

.about-content {
  color: var(--text-muted);
  line-height: 1.7;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 0 1rem;
}

.footer-brand {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-credits {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.5);
}

.camera-animation {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  position: relative;
  animation: pulse 4s ease-in-out infinite;
}

.camera-body {
  width: 100%;
  height: 60%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: absolute;
  top: 20%;
  left: 0;
}

.camera-lens {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
}

.lang-switcher-footer,
.lang-switcher-mini {
  display: flex;
  gap: 0.35rem;
}

.lang-btn-footer,
.lang-btn-mini {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border 0.2s ease;
}

.lang-btn-footer.active,
.lang-btn-mini.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
}

.upload-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-muted);
}

.dropzone {
  border: 2px dashed rgba(59, 130, 246, 0.35);
  border-radius: 1.5rem;
  padding: 2.25rem;
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  transform: scale(1.01);
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.dropzone-subtext {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-size .stat-number {
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-summary {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.08);
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.dropzone-content {
  display: grid;
  gap: 0.4rem;
}

.selected-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.8rem;
}

.selected-file-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.selected-file-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.selected-file-preview-placeholder {
  width: 100%;
  height: 160px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.selected-file-meta {
  padding: 0.9rem;
  display: grid;
  gap: 0.3rem;
}

.selected-file-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.selected-file-size {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.secondary-button {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--text);
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  place-items: center;
  z-index: 50;
}

.preview-modal.is-open {
  display: grid;
}

.preview-modal-content {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 90vw;
  max-height: 90vh;
}

.preview-modal-viewport {
  max-height: 70vh;
  display: grid;
  place-items: center;
}

.preview-modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.dropzone input {
  display: none;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hidden,
[hidden] {
  display: none !important;
}

.stack-sm:last-of-type {
  margin-bottom: 0;
}

.ref-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #a7f3d0;
}

.ref-badge {
  margin-right: 0.35rem;
}

.lang-switcher-footer {
  justify-content: center;
}

.lang-switcher-mini {
  display: flex;
  justify-content: flex-end;
}

.language-grid-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.language-btn:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1.5rem 1rem 3rem;
  }

  .hero-card,
  .card {
    padding: 1.5rem;
  }

  .dropzone {
    padding: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1rem;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05) translateY(-2px);
  }
}
