:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #dfe5ee;
  --soft: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --indigo: #4f46e5;
  --green: #047857;
}

* { box-sizing: border-box; }

html {
  background: #f6f8fb;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -220px, rgba(37, 99, 235, 0.10), transparent 440px),
    #f6f8fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.ha-page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px 20px 56px;
}

.ha-sitebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.ha-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.ha-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--blue));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}

.ha-home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
}

.ha-hero {
  max-width: 760px;
  padding: 52px 0 28px;
}

.ha-eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.08em;
}

h1 {
  margin: 8px 0 0;
  max-width: 820px;
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ha-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ha-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.ha-button.secondary {
  border-color: #d5dde8;
  background: #fff;
  color: #334155;
}

.ha-section {
  margin-top: 30px;
}

.ha-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: -0.025em;
}

.ha-section > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ha-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.ha-card h3 {
  margin: 4px 0 7px;
  font-size: 1.05rem;
}

.ha-card p,
.ha-card li {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ha-card p { margin: 0; }
.ha-card ul { margin: 10px 0 0; padding-left: 20px; }

.ha-label {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.ha-principles {
  padding: 20px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
}

.ha-principles h2 { margin-top: 0; }
.ha-principles li { color: #166534; line-height: 1.6; }

.ha-contact-box {
  max-width: 760px;
  padding: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #f8fbff;
}

.ha-email {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ha-form {
  max-width: 760px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ha-field {
  display: grid;
  gap: 6px;
}

.ha-field label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 750;
}

.ha-field input,
.ha-field select,
.ha-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.ha-field textarea {
  min-height: 140px;
  resize: vertical;
}

.ha-form-note,
.ha-small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.ha-legal {
  max-width: 780px;
}

.ha-legal h2 {
  margin: 30px 0 8px;
  font-size: 1.25rem;
}

.ha-legal p,
.ha-legal li {
  color: var(--text);
  line-height: 1.72;
}

.ha-legal ul {
  padding-left: 22px;
}

.ha-footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.ha-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}

.ha-footer a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.ha-button:focus-visible,
.ha-home-link:focus-visible,
.ha-email:focus-visible,
.ha-footer a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .ha-page { padding: 12px 16px 48px; }
  .ha-hero { padding-top: 34px; }
  .ha-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .ha-page { padding-left: 12px; padding-right: 12px; }
  .ha-actions { display: grid; grid-template-columns: 1fr; }
  .ha-button { width: 100%; }
  h1 { font-size: 2rem; }
}
