/* ============================================
   PI2 — Minimalist responsive stylesheet
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --line: #e6e6e3;
  --accent: #0a0a0a;
  --accent-hover: #2a2a2a;

  --max-w: 1180px;
  --radius: 4px;

  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step-0: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  --step-1: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-4: clamp(2.2rem, 1.8rem + 2vw, 3.6rem);
  --step-5: clamp(2.8rem, 2rem + 4vw, 5.2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover, a:focus-visible {
  opacity: 0.7;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */

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

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.lang-btn {
  padding: 0.25rem 0.15rem;
  font-weight: 600;
  color: var(--ink-mute);
  transition: color 0.2s ease;
}

.lang-btn.is-active {
  color: var(--ink);
}

.lang-btn:hover {
  color: var(--ink);
  opacity: 1;
}

/* ===== Hero ===== */

.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.lede {
  font-size: var(--step-2);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 1;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}

/* ===== Sections ===== */

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: var(--step-4);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-body {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-body p + p {
  margin-top: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}

/* ===== Cards ===== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--ink);
}

.card-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===== Contact ===== */

.contact-block {
  padding-top: 0.5rem;
}

.contact-list {
  display: grid;
  gap: 1.75rem;
}

.contact-list > div {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}

.contact-list dd {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}

.contact-list a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: #e6e6e3;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
  }
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 400;
  color: #a0a0a0;
  margin-top: 0.5rem;
}

.footer-legal {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #a0a0a0;
}

.footer-legal strong {
  color: #fff;
}

.footer-links {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #e6e6e3;
  border-bottom: 1px solid #444;
  padding-bottom: 2px;
}

.footer-links a:hover {
  border-bottom-color: #fff;
  opacity: 1;
}

.copyright {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #777;
}

/* ===== Legal page ===== */

.legal-page {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal-page h1 {
  font-size: var(--step-4);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 22ch;
}

.legal-page h2 {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page ul {
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 65ch;
}

.legal-page p + p {
  margin-top: 1rem;
}

.legal-page ul {
  list-style: none;
  padding: 0;
}

.legal-page ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-page ul li:last-child {
  border-bottom: none;
}

.legal-page ul li strong {
  color: var(--ink);
  font-weight: 500;
  display: inline-block;
  min-width: 220px;
}

.legal-page a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  color: var(--ink);
}

@media (max-width: 620px) {
  .legal-page ul li strong {
    display: block;
    min-width: 0;
    margin-bottom: 0.15rem;
  }
}

/* ===== Responsive ===== */

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

  .nav-right {
    gap: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
