:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #0f172a;
  background-color: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
}

button,
a {
  font: inherit;
}

#root {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #0f172a;
}

.top-nav {
  height: 80px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.brand-accent {
  font-weight: 700;
  color: #0f172a;
}

.brand-sup {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
  position: relative;
  top: -0.4rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hero-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
}

.hero-grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  max-width: 560px;
}

.hero-card-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.card-shell {
  width: 100%;
  max-width: 620px;
}

.panel-card,
.success-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  position: relative;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-banner {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 20px;
  padding: 20px;
  color: #166534;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon,
.icon-small,
.success-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.info-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1rem;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 160ms ease, background-color 160ms ease;
  text-decoration: none;
}

.primary-button {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.18);
}

.primary-button:hover {
  background: #047857;
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background: #0f172a;
  color: #ffffff;
  margin-top: 8px;
}

.secondary-button:hover {
  background: #111827;
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.support-copy {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.6;
}

.error-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.success-card {
  text-align: center;
  overflow: hidden;
}

.success-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, #34d399, #4f46e5);
}

.success-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  color: #047857;
}

.success-title {
  margin: 0 0 16px;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #047857;
}

.success-copy {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.7;
}

.loading-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.footer {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 20px 20px;
  }

  .hero-panel {
    padding: 16px;
  }

  .panel-card,
  .success-card {
    padding: 24px;
    border-radius: 24px;
  }
}

