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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #001a33;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
}

.app-wrapper {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-radial-glow {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-radial-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08), transparent 50%);
}

.bg-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 256px;
  background: linear-gradient(to top, #001429, transparent);
  pointer-events: none;
}

.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .main-container {
    padding: 48px 16px;
  }
}

.state {
  display: none;
  width: 100%;
}

.state-active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.state-active {
  animation: fadeInUp 0.5s ease-out;
}

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

.robot-wrapper {
  width: 192px;
  height: 192px;
  position: relative;
  z-index: 20;
  margin: 0 auto;
  animation: bounce 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .robot-wrapper {
    width: 224px;
    height: 224px;
  }
}

.robot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
  border-radius: 50%;
}

.card {
  width: 100%;
  background: rgba(0, 43, 92, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-overlap {
  margin-top: -32px;
  padding-top: 48px;
}

@media (min-width: 768px) {
  .card {
    padding: 32px;
  }
  .card-overlap {
    margin-top: -32px;
    padding-top: 48px;
  }
}

.title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #d4af37;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .title {
    font-size: 1.875rem;
  }
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
  margin: 8px 0;
}

.subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1rem;
  }
}

.description {
  font-size: 0.75rem;
  color: #d1d5db;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .description {
    font-size: 0.875rem;
  }
}

.counter {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.input-field {
  width: 100%;
  height: 56px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 0 24px;
  text-align: center;
  font-size: 1.125rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-field::placeholder {
  color: #9ca3af;
}

.input-field:focus-visible {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 2px #d4af37;
}

.btn-primary {
  width: 100%;
  height: 56px;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 9999px;
  border: none;
  border-bottom: 4px solid #6b4f1d;
  background: linear-gradient(to bottom, #c5a059, #8e6d2f);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #d4af37, #a67c00);
}

.btn-primary:active {
  transform: scale(0.98);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  padding-top: 32px;
  opacity: 0.8;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #d4af37;
}

.feature-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #fff;
}

.feature-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.625;
}

/* Loading State */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-glow {
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.2);
  filter: blur(64px);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spinner {
  position: relative;
  color: #d4af37;
  animation: spin 2s linear infinite;
}

.spinner svg {
  display: block;
}

.loading-text {
  text-align: center;
  margin-top: 32px;
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.loading-desc {
  color: #9ca3af;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Result State */
.result-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  margin-bottom: 16px;
}

.result-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

.result-title-highlight {
  color: #d4af37;
  font-size: 2.25rem;
}

.result-desc {
  text-align: center;
  color: #d1d5db;
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.report-card {
  padding: 32px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 43, 92, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: 16px;
}

.report-content {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d4af37;
  font-weight: 700;
}

.report-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e5e7eb;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  flex-shrink: 0;
}

.btn-line {
  margin-bottom: 24px;
  width: 100%;
  height: 64px;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: #06C755;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 15px -3px rgba(6, 199, 85, 0.2);
  transition: background 0.15s ease;
}

.btn-line:hover {
  background: #05b34c;
}

.btn-line:active {
  transform: scale(0.98);
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.btn-ghost {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.btn-ghost:hover {
  color: #fff;
}

/* Footer */
.footer {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #00142980;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.footer-info {
  font-size: 11px;
  color: #99a1af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.8;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #9ca3af;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: #fff;
}

/* Spacing utility for result section */
.result-wrapper > * + * {
  margin-top: 32px;
}
