:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #e8eef2;
  --text: #0f172a;
  --text-soft: #334155;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --line: #cbd5e1;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at top right, #d8e8e6 0%, #f4f6f8 45%, #edf2f7 100%);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 1rem 0 4.5rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  z-index: -1;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: rgba(15, 118, 110, 0.2);
  top: -130px;
  right: -100px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: rgba(251, 191, 36, 0.16);
  bottom: -110px;
  left: -100px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.hero-content {
  margin-top: 2rem;
  max-width: 760px;
  animation: fadeSlideIn 500ms ease-out both;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
}

.hero h1 {
  margin: 1rem 0;
  font-size: clamp(1.9rem, 7vw, 3.3rem);
}

.hero-intro {
  max-width: 65ch;
  color: var(--text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.34);
}

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.2rem);
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.section-search {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.5), rgba(255, 255, 255, 0.7));
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.search-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid #94a3b8;
  border-radius: 0.7rem;
  padding: 0.7rem 0.75rem;
  background: #ffffff;
}

input:focus,
select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  border-color: var(--primary);
}

.loading {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-soft);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  border-top-color: var(--primary);
  animation: spin 700ms linear infinite;
}

.results {
  margin-top: 1.3rem;
}

.results-grid {
  display: grid;
  gap: 1rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 320ms ease forwards;
}

.result-card p {
  margin: 0;
  color: var(--text-soft);
}

.result-card .btn {
  width: fit-content;
}

.empty-state {
  margin-top: 1rem;
  background: var(--surface-alt);
  border: 1px dashed #94a3b8;
  border-radius: var(--radius);
  padding: 1rem;
}

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

.profile-card ul {
  padding-left: 1.1rem;
}

.section-contact a {
  color: var(--primary-dark);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-form {
    padding: 1.4rem;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
