/* ==========================================================================
   PurrCalm Design System Tokens — purrcalm.antaaistudio.com
   Inspired by sunlit linen, matte sky-blue plaster (#8FB3E3), and calm night
   ========================================================================== */

:root {
  /* Core Palette */
  --sky-50: #F2F7FD;
  --sky-100: #E2EEFC;
  --sky-200: #C6DDF7;
  --sky-300: #A4C5EC;
  --sky-400: #8FB3E3;
  --sky-500: #6694D1;
  --sky-600: #4A78B8;

  --paper: #F7F5F0;
  --paper-warm: #EFECE5;
  --paper-card: #FFFFFF;
  --linen: #E8E2D7;

  --ink: #16284A;
  --ink-strong: #0E1B34;
  --ink-soft: #3E5170;
  --muted: #64748D;
  --muted-light: #9AA8BE;

  --night-bg: #0D192E;
  --night-surface: #152440;
  --night-border: rgba(212, 228, 252, 0.14);
  --night-ink: #F4F7FC;
  --night-muted: #A9BDD9;

  --warm-amber: #E5B985;
  --sage: #A9B9A9;
  --blush: #E4BDCD;

  /* Borders & Glass */
  --border-subtle: rgba(22, 40, 74, 0.08);
  --border-medium: rgba(22, 40, 74, 0.14);
  --glass-light: rgba(247, 245, 240, 0.78);
  --glass-dark: rgba(13, 25, 46, 0.72);

  /* Typography */
  --font-serif: 'Newsreader', 'New York', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Text', system-ui, sans-serif;

  /* Spacing & Layout */
  --container-max: 1180px;
  --container-narrow: 800px;
  --section-py: clamp(4.5rem, 8.5vw, 7.5rem);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-soft: 0 12px 36px -12px rgba(22, 40, 74, 0.08), 0 2px 6px rgba(22, 40, 74, 0.03);
  --shadow-card: 0 20px 52px -18px rgba(22, 40, 74, 0.12), 0 4px 12px rgba(22, 40, 74, 0.04);
  --shadow-device: 0 34px 70px -20px rgba(10, 22, 45, 0.32), 0 8px 20px -6px rgba(10, 22, 45, 0.14);

  /* Motion */
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.37, 0, 0.63, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Editorial Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-600);
}

.eyebrow--light {
  color: var(--sky-200);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.display-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.display-serif em {
  font-style: italic;
  font-weight: 400;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.68;
  color: var(--ink-soft);
}

/* Shared Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.92rem 1.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.32s var(--ease-calm), background-color 0.25s ease, box-shadow 0.32s var(--ease-calm), border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 10px 26px -10px rgba(22, 40, 74, 0.45);
}

.btn--primary:hover {
  background: var(--ink-strong);
  box-shadow: 0 16px 34px -12px rgba(22, 40, 74, 0.55);
}

.btn--light {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(10, 22, 45, 0.28);
}

.btn--light:hover {
  background: var(--sky-50);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--ghost-ink {
  background: rgba(22, 40, 74, 0.05);
  color: var(--ink);
  border: 1px solid var(--border-subtle);
}

.btn--ghost-ink:hover {
  background: rgba(22, 40, 74, 0.09);
}

/* Shared Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background-color 0.35s var(--ease-calm), backdrop-filter 0.35s var(--ease-calm), border-color 0.35s ease, padding 0.35s var(--ease-calm);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled,
.site-nav--solid {
  background: var(--glass-light);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border-subtle);
  padding: 0.7rem 0;
}

.site-nav--hero-top {
  color: #FFFFFF;
}

.site-nav--hero-top.is-scrolled {
  color: var(--ink);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(10, 22, 45, 0.16);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.84;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

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

/* Language Toggle Pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(22, 40, 74, 0.08);
  border: 1px solid rgba(22, 40, 74, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav--hero-top:not(.is-scrolled) .lang-toggle {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.lang-toggle__btn {
  padding: 0.34rem 0.68rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.22s ease, color 0.22s ease, opacity 0.22s ease;
  opacity: 0.75;
}

.lang-toggle__btn.is-active {
  background: #FFFFFF;
  color: var(--ink);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(10, 22, 45, 0.12);
}

.nav-cta {
  padding: 0.56rem 1.15rem;
  font-size: 0.85rem;
}

.site-nav--hero-top:not(.is-scrolled) .nav-cta {
  background: #FFFFFF;
  color: var(--ink);
}

/* Mobile Nav Button */
.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.site-nav.is-scrolled .nav-menu-btn,
.site-nav--solid .nav-menu-btn {
  background: rgba(22, 40, 74, 0.06);
}

/* Shared Footer */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.75rem;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.footer-col a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-calm), transform 0.8s var(--ease-calm);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .nav-cta {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
