:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --bg-alt: #efe9e0;
  --ink: #1c1b19;
  --muted: #5c5a55;
  --accent: #ff7b2f;
  --accent-dark: #e5681f;
  --card: #ffffff;
  --line: rgba(28, 27, 25, 0.12);
  --shadow: 0 20px 60px rgba(28, 27, 25, 0.12);
}

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

body {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6ea 0%, var(--bg) 45%, #f0ebe5 100%);
  min-height: 100vh;
  line-height: 1.6;
  padding: 32px 48px 48px;
  position: relative;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 40px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 32px 0 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 123, 47, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 123, 47, 0.35);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.hero-card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--muted);
}

.date {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.card-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.meta-value {
  font-weight: 500;
}

.section {
  padding: 72px 0;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 600px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.app-card {
  background: var(--card);
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(28, 27, 25, 0.08);
}

.app-card.muted {
  background: #f6f1ea;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 123, 47, 0.12);
  color: var(--accent-dark);
}

.app-subtitle {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.app-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 18px 0 16px;
}

.app-list li::before {
  content: "•";
  color: var(--accent-dark);
  margin-right: 8px;
}

.text-link {
  border: none;
  background: none;
  font-family: inherit;
  color: var(--muted);
  padding: 0;
  cursor: not-allowed;
}

.app-links {
  display: grid;
  gap: 10px;
}

.live-link {
  cursor: pointer;
  text-decoration: none;
}

.live-link:hover {
  color: var(--ink);
}

.legal-page {
  position: relative;
  z-index: 1;
}

.legal-nav {
  padding-bottom: 24px;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legal-meta {
  color: var(--muted);
  margin-bottom: 20px;
}

.legal-lead {
  max-width: 680px;
}

.legal-card {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.legal-section h3 {
  font-size: 1rem;
  margin: 18px 0 10px;
}

.legal-section p {
  color: var(--muted);
}

.legal-section a {
  color: var(--accent-dark);
}

.legal-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin-left: 20px;
}

.about {
  background: linear-gradient(135deg, rgba(255, 123, 47, 0.08), rgba(255, 255, 255, 0));
  border-radius: 32px;
  padding: 72px 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.about-grid h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 24px;
}

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

.stat {
  font-size: 1.6rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  background: var(--card);
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.footnote {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 48px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

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

.copyright {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 900px) {
  body {
    padding: 24px;
  }

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

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-grid,
  .about-grid,
  .contact-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 56px 24px;
  }

  .legal-card {
    padding: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    padding: 28px;
  }
}
