/* EverKin Landing Page — warm heritage aesthetic */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --warm-cream: #FDF6EC;
  --deep-walnut: #3D2B1F;
  --soft-amber: #C8956C;
  --muted-sage: #8B9E82;
  --aged-paper: #F5EBD8;
  --ink: #2A1F14;
  --faded-rose: #C4918A;
  --light-linen: #FAF3E8;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  z-index: 100;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--deep-walnut);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-spacer { flex: 1; }
.nav-login {
  font-size: 14px;
  color: var(--soft-amber);
  text-decoration: none;
  font-weight: 500;
  padding: 9px 16px;
  margin-right: 4px;
  transition: color 0.15s;
}
.nav-login:hover { color: var(--deep-walnut); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--deep-walnut);
  color: var(--warm-cream);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, box-shadow 0.18s;
}
.nav-cta:hover {
  background: var(--ink);
  box-shadow: 0 4px 16px rgba(42,31,20,0.2);
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  background: linear-gradient(180deg, var(--warm-cream) 0%, var(--aged-paper) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 149, 108, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(196, 145, 138, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.tree-symbol {
  font-size: 44px;
  margin-bottom: 28px;
  opacity: 0.65;
  letter-spacing: 20px;
}

.tree-symbol span {
  display: inline-block;
  animation: sway 6s ease-in-out infinite;
}
.tree-symbol span:nth-child(2) { animation-delay: 0.5s; }
.tree-symbol span:nth-child(3) { animation-delay: 1s; }

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 7vw, 68px);
  color: var(--deep-walnut);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: var(--soft-amber);
}

.hero-sub {
  font-size: 18px;
  color: #6B5744;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.btn-hero-primary {
  background: var(--deep-walnut);
  color: var(--warm-cream);
  box-shadow: 0 4px 20px rgba(61,43,31,0.2);
}
.btn-hero-primary:hover {
  background: var(--ink);
  box-shadow: 0 6px 28px rgba(61,43,31,0.3);
  transform: translateY(-1px);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--deep-walnut);
  border: 1.5px solid rgba(212,184,150,0.8);
}
.btn-hero-secondary:hover {
  background: var(--aged-paper);
}

/* ── Tree preview illustration ─────────────────────────────────────── */
.hero-illustration {
  position: relative;
  margin: 60px auto 0;
  max-width: 600px;
  width: 100%;
}

.tree-preview {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(212,184,150,0.5);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 48px rgba(61,43,31,0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.tree-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200,149,108,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview-nodes {
  position: relative;
  height: 220px;
  z-index: 1;
}

.preview-node {
  position: absolute;
  width: 110px;
  background: #FFFAF4;
  border: 1.5px solid rgba(212,184,150,0.8);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(61,43,31,0.1);
}
.preview-node-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  color: white;
}
.preview-node-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--deep-walnut);
}
.preview-node-date {
  font-size: 9px;
  color: var(--soft-amber);
  margin-top: 2px;
}

/* SVG connector lines in preview */
.preview-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ── Features ───────────────────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--soft-amber);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--deep-walnut);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--aged-paper);
  border: 1px solid rgba(212,184,150,0.4);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 6px 28px rgba(61,43,31,0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--deep-walnut);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #7A5E4A;
  line-height: 1.6;
}

/* ── CTA Section ────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--aged-paper) 0%, var(--warm-cream) 100%);
}

.cta-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--deep-walnut);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: #6B5744;
  margin-bottom: 36px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(212,184,150,0.3);
  font-size: 13px;
  color: var(--soft-amber);
}
footer a { color: var(--soft-amber); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .hero { padding: 80px 16px 40px; }
  .features { padding: 60px 16px; }
  .preview-nodes { height: 180px; }
}
