@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #f7f5f1;
  --bg-soft: #efeae0;
  --surface: #ffffff;
  --surface-elevated: #fdfcfa;
  --ink: #1a1a1c;
  --ink-soft: #2a2a2e;
  --muted: #6b6962;
  --tertiary: #999588;
  --border: rgba(26, 26, 28, 0.08);
  --border-soft: rgba(26, 26, 28, 0.04);
  --accent: #5E8B6E;
  --accent-soft: rgba(94, 139, 110, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px rgba(26,26,28,0.04);
  --shadow-md: 0 8px 24px rgba(26,26,28,0.06), 0 1px 2px rgba(26,26,28,0.04);
  --shadow-lg: 0 24px 48px rgba(26,26,28,0.10), 0 4px 8px rgba(26,26,28,0.04);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02';
}

body {
  background-image:
    radial-gradient(at 20% 0%, rgba(94, 139, 110, 0.04), transparent 50%),
    radial-gradient(at 80% 100%, rgba(180, 160, 120, 0.05), transparent 50%);
  min-height: 100vh;
}

/* ---------------------- CONTAINER ---------------------- */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 32px 64px;
}

/* ---------------------- HERO ---------------------- */

.hero {
  text-align: center;
  margin-bottom: 96px;
  position: relative;
}

.logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
  animation: breathe 4s ease-in-out infinite;
}

.logo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.3; }
}

h1 {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ---------------------- LEAD ---------------------- */

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 96px;
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.lead p + p { margin-top: 20px; }

.lead p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ink);
  line-height: 1.5;
}

.lead p:nth-child(2) {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  margin-top: 32px;
}

/* ---------------------- FEATURES ---------------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 96px;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.features article {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,26,28,0.1), transparent);
}

.features article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.features article::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  opacity: 0.5;
}

.features h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.features p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------- PROMISE ---------------------- */

.promise {
  background: var(--ink);
  color: white;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 96px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promise::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
}

.promise h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.promise p {
  font-family: var(--serif);
  font-style: italic;
  opacity: 0.75;
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  line-height: 1.5;
}

/* ---------------------- FOOTER ---------------------- */

footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

footer a:hover::after {
  transform: scaleX(1);
}

.copyright {
  font-size: 12px;
  color: var(--tertiary);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------------------- LEGAL PAGES ---------------------- */

.legal .container {
  max-width: 680px;
  padding-top: 72px;
}

.legal header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal .meta {
  color: var(--tertiary);
  font-size: 13px;
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.legal section {
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal p,
.legal ul {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  list-style: none;
}

.legal li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 4px;
}

.legal li::before {
  content: '—';
  position: absolute;
  left: -20px;
  color: var(--accent);
  font-weight: 600;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal a:hover {
  text-decoration-color: var(--ink);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s, gap 0.2s;
}

.back:hover {
  color: var(--ink) !important;
  gap: 10px;
}

.legal footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}

/* ---------------------- DARK MODE ---------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d10;
    --bg-soft: #18181c;
    --surface: #18181c;
    --surface-elevated: #1f1f24;
    --ink: #f5f4f0;
    --ink-soft: #d4d3cf;
    --muted: #a09e98;
    --tertiary: #6b6962;
    --border: rgba(245, 244, 240, 0.08);
    --border-soft: rgba(245, 244, 240, 0.04);
    --accent: #8fbf9f;
    --accent-soft: rgba(143, 191, 159, 0.1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.2);
  }
  body {
    background-image:
      radial-gradient(at 20% 0%, rgba(143, 191, 159, 0.06), transparent 50%),
      radial-gradient(at 80% 100%, rgba(180, 160, 120, 0.04), transparent 50%);
  }
  .promise { background: var(--surface-elevated); }
}

/* ---------------------- RESPONSIVE ---------------------- */

@media (max-width: 480px) {
  .container { padding: 64px 20px 48px; }
  .hero { margin-bottom: 64px; }
  .lead, .features, .promise { margin-bottom: 64px; }
  .promise { padding: 40px 24px; }
  footer nav { gap: 20px; }
}
