/* SierraEspada — base styles */
:root {
  --yellow: #ffe03a;
  --night: #1a1a2e;
  --coral: #ff6b6b;
  --warm: #f5f5f0;
  --text: #1a1a2e;
  --muted: #555;
  --border: #e8e8e0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--warm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  display: inline-block;
  background: var(--yellow);
  color: var(--night);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--night); transform: translateY(-1px); }
nav.primary { display: flex; gap: 1.75rem; font-size: 0.95rem; }
nav.primary a { text-decoration: none; color: var(--muted); }
nav.primary a:hover { color: var(--night); }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: var(--warm);
}
.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: 2rem;
}
.hero .accent { color: var(--coral); }

/* Sections */
section { padding: 4rem 0; }
section h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
section .section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,26,46,0.08); }
.card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card .tag.coming {
  background: transparent;
  border: 1px dashed var(--muted);
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid var(--night);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--night); color: var(--yellow); }
.btn-primary:hover { color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--night); }
.btn-ghost:hover { color: var(--night); background: var(--yellow); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--night); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Product page */
.product-hero {
  background: var(--yellow);
  padding: 5rem 0 4rem;
  border-bottom: 4px solid var(--night);
}
.product-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.product-hero .lead { font-size: 1.25rem; max-width: 50ch; margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.feature-list strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.feature-list span { color: var(--muted); font-size: 0.95rem; }

/* Utilities */
.muted { color: var(--muted); }
.tight { max-width: 60ch; }

@media (max-width: 600px) {
  nav.primary { width: 100%; justify-content: flex-start; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
}
