@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #f6efe5;
  --surface: #fff9f1;
  --text: #26140d;
  --muted: #6b5242;
  --brand: #4f2b1a;
  --brand-2: #c87a3e;
  --line: #e7d2bf;
  --shadow: 0 16px 45px rgba(65, 30, 12, 0.13);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 85% 8%, #fdd9b7 0%, #f6efe5 40%),
    linear-gradient(160deg, #f6efe5 0%, #f9f2e9 100%);
  line-height: 1.6;
}

.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(#9f7e64 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: -1;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(160, 116, 79, 0.25);
  background: rgba(246, 239, 229, 0.7);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(60, 29, 14, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  margin: 5px 0;
}

.hero {
  padding: 80px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: stretch;
}

.kicker {
  font-weight: 700;
  color: var(--brand-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.hero-copy p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 10px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #6e3d26 0%, #4f2b1a 100%);
  box-shadow: 0 10px 22px rgba(58, 28, 14, 0.22);
}

.btn-secondary {
  color: var(--brand);
  border: 1px solid var(--line);
  background: #fff;
}

.tiny-note {
  font-size: 0.9rem;
}

.tiny-note a {
  color: var(--brand);
  font-weight: 700;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  animation: rise 0.7s ease both;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-card li {
  margin-bottom: 10px;
}

.features,
.workflow,
.contact,
.legal-page {
  padding: 52px 0;
}

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

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  animation: rise 0.7s ease both;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.step {
  background: linear-gradient(155deg, #fff 0%, #fdf5ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  font-weight: 500;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  margin-right: 8px;
  background: #f2cfb2;
  color: var(--brand);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.contact-card,
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}

.contact-card a,
.legal-card a {
  color: var(--brand);
  font-weight: 700;
}

.legal-page {
  min-height: 70vh;
}

.legal-card h2 {
  margin-top: 24px;
  font-size: 1.35rem;
}

.footer {
  border-top: 1px solid rgba(160, 116, 79, 0.3);
  padding: 22px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--brand);
  text-decoration: none;
}

.small-header {
  position: sticky;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-direction: row;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
}
