/* ─── Landing Page ─── piecekeeper ─── */

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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #0a0a0a;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-primary: #0a0a0a;
  --color-primary-hover: #262626;
  --color-accent: #c45d3e;
  --color-accent-soft: #f0e0d8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NAV ─── */

.landing-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.landing-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.btn-primary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-accent {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-accent:hover {
  opacity: 0.9;
}

.btn-outline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}

/* ─── SECTIONS ─── */

section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ─── HERO ─── */

.hero {
  background: var(--color-surface);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ─── FEATURES ─── */

.features {
  background: var(--color-bg);
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.features-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── DATA OWNERSHIP ─── */

.data-ownership {
  background: var(--color-text);
  color: #fff;
}

.data-ownership .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.data-ownership h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.data-ownership h2 em {
  font-style: normal;
  color: var(--color-accent);
}

.data-ownership p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.data-ownership p:last-of-type {
  margin-bottom: 0;
}

.ownership-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ownership-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.ownership-point-icon {
  width: 36px;
  height: 36px;
  background: rgba(196,93,62,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.ownership-point-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.ownership-point-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ownership-point-text p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

/* ─── MISSION ─── */

.mission {
  background: var(--color-surface);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.mission-quote {
  max-width: 680px;
  margin: 0 auto;
}

.mission-quote blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-style: normal;
}

.mission-quote blockquote strong {
  color: var(--color-accent);
  font-weight: 700;
}

.mission-quote p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.mission-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.mission-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

/* ─── CTA SECTION ─── */

.cta-section {
  background: var(--color-bg);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ─── FOOTER ─── */

.landing-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--color-text);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .data-ownership .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .mission-values {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .landing-nav-actions .btn-ghost {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  .btn-accent, .btn-outline {
    justify-content: center;
    text-align: center;
  }
}
