/* ===================================================
   MeloLine Web - Shared Styles
   Mirrors the iOS app visual identity
   =================================================== */

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

:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Light mode */
  --bg-start: #F9FAFB;
  --bg-end: #E5E7EB;
  --fg: #000000;
  --fg-muted: rgba(0, 0, 0, 0.70);
  --fg-subtle: rgba(0, 0, 0, 0.45);
  --surface: rgba(255, 255, 255, 0.55);
  --border: rgba(0, 0, 0, 0.08);
  --bg-image: url("../assets/meloline-background-light.svg");
  --icon: url("../assets/meloline-appicon-light.png");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #111827;
    --bg-end: #000000;
    --fg: #ffffff;
    --fg-muted: rgba(255, 255, 255, 0.70);
    --fg-subtle: rgba(255, 255, 255, 0.45);
    --surface: rgba(0, 0, 0, 0.35);
    --border: rgba(255, 255, 255, 0.10);
    --bg-image: url("../assets/meloline-background-dark.svg");
    --icon: url("../assets/meloline-appicon-dark.png");
  }
}

html,
body {
  height: 100%;
  font-family: var(--font);
  color: var(--fg);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

/* ── Background ─────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

/* ── Layout wrapper ─────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ─────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

/* ── Home hero ──────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1.5rem;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background-image: var(--icon);
  background-size: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}

.hero-slogan {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

.hero-badge {
  margin-top: 0.5rem;
}

.hero-badge img {
  height: 48px;
}

/* ── Content pages (privacy & support) ─────────── */

.content-wrap {
  flex: 1;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.content-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 700px;
  width: 100%;
}

.content-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.content-card .updated {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  margin-bottom: 2rem;
}

.content-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.content-card p,
.content-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.content-card ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.content-card a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Support contact button ─────────────────────── */

.contact-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid var(--fg);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-btn:hover {
  background: var(--fg);
  color: var(--bg-start);
}

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

.footer {
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

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

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

@media (max-width: 480px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .content-card {
    padding: 1.75rem 1.25rem;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }
}