:root {
  --primary: #0f2249;
  --secondary: #ed0d28;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.9);
  --panel: rgba(15, 34, 73, 0.92);
  --panel-border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(237, 13, 40, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #071225 0%, var(--primary) 52%, #091634 100%);
}

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.app-shell::before,
.app-shell::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(12px);
  pointer-events: none;
}

.app-shell::before {
  width: 18rem;
  height: 18rem;
  top: -6rem;
  right: -5rem;
}

.app-shell::after {
  width: 14rem;
  height: 14rem;
  bottom: 2rem;
  left: -4rem;
}

.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.brand-row h1,
.brand-row .lead {
  color: var(--white);
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--panel-border) !important;
  backdrop-filter: blur(18px);
  border-radius: 1.5rem;
}

.form-label,
.form-text,
.result-title,
.profile-key,
.profile-value,
.status-banner,
.btn-outline-light {
  color: var(--white);
}

.form-control {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-radius: 1rem;
}

.form-control:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(237, 13, 40, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.btn-primary {
  background: var(--secondary);
  border-color: var(--secondary);
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #d30c23;
  border-color: #d30c23;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.status-banner {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-success {
  background: rgba(20, 155, 87, 0.2);
  border: 1px solid rgba(20, 155, 87, 0.45);
  color: #b6ffcf;
}

.status-error {
  background: rgba(237, 13, 40, 0.16);
  border: 1px solid rgba(237, 13, 40, 0.45);
  color: #ffd2d9;
}

.result-title {
  font-size: 1.25rem;
  color: #d2f8de;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.profile-item {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-key {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.profile-value {
  display: block;
  font-size: 1rem;
  word-break: break-word;
}

.profile-item.full {
  grid-column: 1 / -1;
}

@media (max-width: 767.98px) {
  .hero-card {
    padding-top: 1rem;
  }

  .app-card {
    border-radius: 1.25rem;
  }
}
