/* Mewnay landing + legal pages */

:root {
  --bg: #f8fafa;
  --surface: #ffffff;
  --surface-muted: #f1f5f4;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e6eceb;
  --primary: #3fb8a8;
  --primary-soft: #ddf7f2;
  --primary-softer: #f0fbf8;
  --primary-hover: #2da090;
  --accent: #fbbf24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 63, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 63, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 63, 58, 0.16);
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Lang switcher (3 small buttons) */

.lang-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--primary);
  color: #fff;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text h1 .grad {
  background: linear-gradient(135deg, #3fb8a8, #72d6c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-text p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  text-decoration: none;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero image */

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-art .glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(63, 184, 168, 0.28) 0%,
    rgba(63, 184, 168, 0) 65%
  );
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(15, 63, 58, 0.18));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ─── Features ────────────────────────────────────────────── */

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.features h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.features-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 17px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-softer), var(--primary-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ─── Showcase strip (mascot row) ─────────────────────────── */

.showcase {
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--primary-softer), #fff 60%);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--border);
}

.showcase-art {
  text-align: center;
}

.showcase-art img {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 16px 30px rgba(15, 63, 58, 0.14));
}

.showcase-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ─── Legal pages ─────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  font-weight: 700;
}

.legal p {
  color: var(--text);
  margin-bottom: 14px;
}

.legal a {
  color: var(--primary-hover);
  font-weight: 500;
}

/* ─── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  margin-top: 60px;
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

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

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

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    gap: 32px;
  }
  .hero-text p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .showcase {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 22px;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 14px;
    font-size: 13px;
  }
  .nav a:not(.skip-on-mobile) {
    display: none;
  }
  .hero {
    padding: 40px 20px 24px;
  }
  .features {
    padding: 40px 20px;
  }
  .feature {
    padding: 22px;
  }
  .legal {
    padding: 40px 20px 60px;
  }
  .hero-art img {
    max-width: 260px;
  }
}
