:root {
  color-scheme: light dark;
  --background: #f8f8f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --subtle-text: #4a4a4a;
  --border: #e2e2e2;
  --accent: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(1080px, 90vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.tagline {
  font-size: 0.9rem;
  color: var(--subtle-text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.hero-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--subtle-text);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover,
.cta:focus {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.hero-card p {
  color: var(--subtle-text);
}

section {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.features h2,
.about h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-grid h3 {
  font-size: 1.15rem;
}

.feature-grid p {
  color: var(--subtle-text);
}

.about p {
  color: var(--subtle-text);
  max-width: 48rem;
}

.contact p {
  font-size: 1.05rem;
}

.contact a {
  font-weight: 600;
}

.legal-page {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.legal-page section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-page section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  color: var(--subtle-text);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

@media (max-width: 720px) {
  .site-header .container,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .tagline {
    font-size: 0.85rem;
  }
}
