:root {
  --primary: #1e171b;
  --secondary: #b8456b;
  --secondary-light: #d8a77a;
  --tertiary: #f6e3ea;
  --background: #fbf8f9;
  --header-bg: rgba(251, 248, 249, 0.92);
  --surface: #ffffff;
  --text: #1e171b;
  --text-secondary: #4f4449;
  --text-muted: #6f6368;
  --border: #e8dde2;
  --gradient-start: #d8a77a;
  --gradient-end: #b8456b;
  --on-primary: #ffffff;
  --band-bg: linear-gradient(135deg, #2a1820, #4a2233);
  --display: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 20px 60px -24px rgba(50, 20, 35, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #f4edf0;
    --secondary: #e27a9c;
    --secondary-light: #d9ae7f;
    --tertiary: #3a2430;
    --background: #130f12;
    --header-bg: rgba(19, 15, 18, 0.92);
    --surface: #211a1f;
    --text: #f4edf0;
    --text-secondary: #cbbfc5;
    --text-muted: #a99ca3;
    --border: #322830;
    --on-primary: #130f12;
    --band-bg: linear-gradient(135deg, #2a1820, #3a2430);
    --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #f4edf0;
  --secondary: #e27a9c;
  --secondary-light: #d9ae7f;
  --tertiary: #3a2430;
  --background: #130f12;
  --header-bg: rgba(19, 15, 18, 0.92);
  --surface: #211a1f;
  --text: #f4edf0;
  --text-secondary: #cbbfc5;
  --text-muted: #a99ca3;
  --border: #322830;
  --on-primary: #130f12;
  --band-bg: linear-gradient(135deg, #2a1820, #3a2430);
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--tertiary);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.brand span:last-child {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero p,
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 42rem;
}

.hero-card,
.feature-card,
.contact-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
}

.btn-secondary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
}

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--band-bg);
  color: white;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.legal-card,
.contact-card {
  padding: 2rem;
  margin-bottom: 3rem;
}

.legal-card h2,
.legal-card h3 {
  margin-top: 2rem;
}

.legal-card h2:first-child,
.legal-card h3:first-child {
  margin-top: 0;
}

.legal-card strong {
  color: var(--text);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--background);
  color: var(--text);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}
