/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #8a8a8a;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.12);
  --input-bg: #0a0a0a;
  --btn-bg: #ffffff;
  --btn-text: #000000;
  --btn-hover: #e8e8e8;
  --focus-ring: rgba(255, 255, 255, 0.22);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --text: #0a0a0a;
    --text-muted: #6b6b6b;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --btn-bg: #0a0a0a;
    --btn-text: #ffffff;
    --btn-hover: #222222;
    --focus-ring: rgba(0, 0, 0, 0.14);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Layout ===== */
main {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 4rem 0 5rem;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.4;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background-color: var(--btn-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn-full {
  width: 100%;
}

/* ===== Contact ===== */
.contact {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== Card ===== */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ===== Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  width: 100%;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.form-privacy {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.25rem;
}

.form-privacy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.form-privacy a:hover {
  color: var(--text);
}

.form-privacy a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

/* ===== Privacy policy page ===== */
.policy {
  padding-top: 1rem;
}

.policy h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 2.5rem;
}

.policy-section {
  margin-bottom: 1.75rem;
}

.policy-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
}

.policy-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section strong {
  color: var(--text);
  font-weight: 500;
}

.policy-section ul {
  margin: 0.5rem 0 0.75rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.policy-section li {
  margin-bottom: 0.4rem;
}

.policy-section li:last-child {
  margin-bottom: 0;
}

.policy-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section a:hover {
  color: var(--text-muted);
}

.policy-section a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.policy-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--text);
}

footer a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

/* ===== Desktop ===== */
@media (min-width: 640px) {
  main {
    padding: 4rem 1.5rem 5rem;
  }

  .hero {
    padding: 1rem 0 6rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.1875rem;
  }

  .card {
    padding: 1.75rem;
  }

  .policy h1 {
    font-size: 2.25rem;
  }
}
