:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(135deg, #111827 0%, #312e81 48%, #4f46e5 100%);
}

.page-shell {
  min-height: 100vh;
}

.app-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.hero-panel {
  min-height: 590px;
  background:
    linear-gradient(160deg, rgba(79, 70, 229, 0.96), rgba(55, 48, 163, 0.98)),
    var(--brand);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-text {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-footer {
  color: rgba(255, 255, 255, 0.72);
}

.letter-spacing {
  letter-spacing: 0.12em;
}

.search-group .input-group-text,
.search-group .form-control,
.search-group .btn {
  min-height: 58px;
}

.search-group .input-group-text {
  border-color: var(--line);
  border-radius: 14px 0 0 14px;
}

.search-group .form-control {
  border-color: var(--line);
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.search-group .form-control:focus {
  border-color: var(--line);
  box-shadow: none;
}

.search-group:focus-within {
  border-radius: 14px;
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.13);
}

.search-group .btn {
  border-radius: 0 14px 14px 0;
  border-color: var(--brand);
  background: var(--brand);
  font-weight: 600;
}

.search-group .btn:hover,
.search-group .btn:focus {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.search-group .btn:disabled {
  border-color: #818cf8;
  background: #818cf8;
  opacity: 1;
  cursor: not-allowed;
}

.result-section {
  animation: rise 0.35s ease-out;
}

.info-card {
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.info-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.source-badge {
  padding: 0.55rem 0.75rem;
  font-weight: 600;
}

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

@media (max-width: 991.98px) {
  .hero-panel {
    min-height: auto;
  }

  .app-card {
    border-radius: 22px;
  }
}

@media (max-width: 575.98px) {
  .page-shell {
    align-items: flex-start !important;
  }

  .app-card {
    border-radius: 18px;
  }

  .search-group {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .search-group .input-group-text {
    border-radius: 14px 0 0 14px;
  }

  .search-group .form-control {
    border-radius: 0 14px 14px 0 !important;
    border-left: 0;
  }

  .search-group .btn {
    grid-column: 1 / -1;
    margin-top: 0.65rem;
    border-radius: 14px !important;
  }
}
