/* Euterpe Notes — marketing site (matches app branding) */
:root {
  --bg-deep: #2d243a;
  --bg-mid: #5a4870;
  --bg-card: rgba(255, 255, 255, 0.06);
  --lilac: #c7b6da;
  --lilac-soft: #e8e0f2;
  --white: #ffffff;
  --text: #f4eef9;
  --text-muted: #c9bdd8;
  --border: rgba(199, 182, 218, 0.22);
  --accent: #c7b6da;
  --ok: #9ad4b1;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(199, 182, 218, 0.18), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(90, 72, 112, 0.55), transparent 50%),
    linear-gradient(165deg, #241c30 0%, var(--bg-deep) 38%, #3a2f4d 72%, #4a3a60 100%);
  background-attachment: fixed;
}

a {
  color: var(--lilac);
  text-decoration: none;
}

a:hover {
  color: var(--white);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(36, 28, 48, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--lilac-soft);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 750;
  color: var(--white);
}

.hero .tagline {
  margin: 0 0 0.5rem;
  color: var(--lilac-soft);
  font-size: 1.15rem;
}

.hero .sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-mid);
}

.hero-art img {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #d4c4e8, var(--lilac));
  color: #2a2036;
}

.btn-primary:hover {
  color: #1a1224;
  background: linear-gradient(135deg, #ebe1f5, #d8c9e8);
}

.btn-ghost {
  background: transparent;
  color: var(--lilac-soft);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--lilac);
}

/* Sections */
.section {
  padding: 1.25rem 0 2.75rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  color: var(--white);
}

.section h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.1rem;
  color: var(--lilac-soft);
}

.lead {
  color: var(--text-muted);
  max-width: 42rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--white);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .num {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(199, 182, 218, 0.2);
  color: var(--lilac);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-muted);
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0.85;
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.note strong {
  color: var(--lilac-soft);
}

/* Legal / content pages */
.page-hero {
  padding: 2.25rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  color: var(--white);
}

.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.content {
  padding: 0.5rem 0 3rem;
}

.content .panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow);
}

.content p,
.content li {
  color: var(--text-muted);
}

.content ul,
.content ol {
  padding-left: 1.25rem;
}

.content li {
  margin: 0.3rem 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.content th,
.content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.content th {
  background: rgba(199, 182, 218, 0.12);
  color: var(--lilac-soft);
  font-weight: 600;
}

.content td {
  color: var(--text-muted);
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.toc {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
}

.toc strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--white);
  font-size: 0.9rem;
}

.toc a {
  display: inline-block;
  margin: 0.15rem 0.75rem 0.15rem 0;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

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

.footer-links a:hover {
  color: var(--white);
}

.muted {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .content .panel {
    padding: 1.15rem 1rem 1.35rem;
  }
}
