/* ============================================================
   PLAS — DESIGN SYSTEM
   Orchid palette · Syne + DM Sans · Dark/Light · Mobile-first
   ============================================================ */

/* ── 0. Self-hosted fonts ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/syne-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 1. Custom Properties ── */
:root {
  --primary: #A259FF;
  --primary-10: rgba(162, 89, 255, 0.10);
  --primary-20: rgba(162, 89, 255, 0.20);
  --primary-40: rgba(162, 89, 255, 0.40);

  --bg:        #ffffff;
  --card:      #fafafa;
  --card-2:    #f4f4f5;
  --fg:        #0a0a0a;
  --fg-muted:  #71717a;
  --border:    rgba(0,0,0,0.10);
  --border-md: rgba(0,0,0,0.16);
  --glass-bg:  rgba(255,255,255,0.72);
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --success: #22c55e;
  --warning: #f59e0b;
  --error:   #ef4444;

  --r:  0.5rem;
  --rl: 1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 64px;
}

.dark {
  --bg:        #000000;
  --card:      #0f0f0f;
  --card-2:    #141414;
  --fg:        #ededed;
  --fg-muted:  #71717a;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.14);
  --glass-bg:  rgba(0,0,0,0.72);
  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

a  { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── 3. Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-display {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-family: 'Syne', sans-serif;
}
.text-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}
.text-h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
}
.text-body  { font-size: 1rem;    line-height: 1.65; }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem;  letter-spacing: 0.04em; }
.text-muted { color: var(--fg-muted); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* ── 4. Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { padding-inline: 3rem; } }

.section { padding-block: 6rem; }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* ── 5. Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 767px) { .header-nav .nav-links { display: none; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.75rem;
}
.nav-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--fg);
  background: var(--primary-10);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--fg);
  background: var(--card-2);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* ── 6. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--primary-40);
}
.btn-primary:hover {
  background: #b770ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-40);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--border-md);
  background: var(--card);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ── 7. Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 45%, rgba(162, 89, 255, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 75% at 85% 55%, rgba(162, 89, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(162, 89, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary-40);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.6); }
}

.hero-title { max-width: 900px; margin-bottom: 1.5rem; }
.hero-title .line { display: block; }
.hero-title .line-accent { color: var(--primary); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-subtitle p + p {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-bar-anim 2s ease-in-out infinite;
}
@keyframes scroll-bar-anim {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* ── 8. Principles ── */
.principles { border-top: 1px solid var(--border); }

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
@media (min-width: 768px) {
  .principle-card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .principle-card:last-child { border-right: none; }
}
.principle-card:hover { background: var(--primary-10); }

.principle-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.principle-icon svg { width: 100%; height: 100%; }

.principle-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: 'Syne', sans-serif;
}

.principle-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── 9. App Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card {
  border-radius: var(--rl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
  cursor: default;
}
.gallery-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-40);
}

.gallery-preview {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--card-2);
}
@media (min-width: 1024px) { .gallery-preview { height: 180px; } }

.gallery-label {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.gallery-label h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.gallery-label p { font-size: 0.78rem; color: var(--fg-muted); }

/* Mock App UIs */
.mock-app {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: scale(1);
  transform-origin: top left;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 6px; height: 6px; border-radius: 50%; }
.mock-title-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border-md);
  flex: 1;
  max-width: 100px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.mock-row.header { background: var(--primary-10); border-color: var(--primary-20); }
.mock-cell {
  height: 7px;
  border-radius: 3px;
  background: var(--border-md);
  flex: 1;
}
.mock-cell.wide { flex: 2; }
.mock-cell.narrow { flex: 0 0 40px; }
.mock-badge {
  height: 14px;
  width: 40px;
  border-radius: 99px;
  flex-shrink: 0;
}
.mock-badge.green  { background: rgba(34, 197, 94, 0.2); }
.mock-badge.amber  { background: rgba(245, 158, 11, 0.2); }
.mock-badge.purple { background: var(--primary-20); }
.mock-badge.red    { background: rgba(239, 68, 68, 0.2); }

.mock-form { display: flex; flex-direction: column; gap: 0.5rem; }
.mock-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mock-label { height: 6px; width: 60px; border-radius: 3px; background: var(--border-md); }
.mock-input {
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-md);
  background: var(--bg);
}

.mock-kanban { display: flex; gap: 0.4rem; height: 100%; }
.mock-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mock-col-head {
  height: 14px;
  border-radius: 3px;
  background: var(--border-md);
  margin-bottom: 0.2rem;
}
.mock-card-item {
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.3rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mock-card-line { height: 6px; border-radius: 3px; background: var(--border-md); }
.mock-card-line.short { width: 60%; }

.mock-timeline { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.25rem; }
.mock-step {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.mock-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.mock-step-dot.active { background: var(--primary); }
.mock-step-dot.done   { background: var(--success); }
.mock-step-dot.idle   { background: var(--border-md); }
.mock-step-body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.mock-step-line { height: 6px; border-radius: 3px; background: var(--border-md); }

.mock-grid-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.mock-cal-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--border);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.mock-cal-cell.active { background: var(--primary-20); color: var(--primary); }
.mock-cal-cell.head   { background: transparent; color: var(--fg-muted); font-weight: 600; }

/* ── 10. How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}
@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.step-connector {
  display: none;
}
@media (min-width: 1024px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 28px;
    left: calc(33.33% + 1rem);
    width: calc(33.33% - 2rem);
    height: 1px;
    background: linear-gradient(to right, var(--primary-40), var(--border));
  }
  .step-connector:nth-of-type(2) {
    left: calc(66.66% + 1rem);
  }
}

.step-card {
  padding: 2rem 2.5rem 2rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  .step-card { padding: 2rem 3rem 2rem 0; }
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: var(--primary-10);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: 'Syne', sans-serif;
}

.step-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* ── 11. Feature Pills ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-pill {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-pill:hover {
  border-color: var(--primary-40);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.feature-icon svg { width: 16px; height: 16px; }

.feature-pill h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.01em;
}
.feature-pill p { font-size: 0.78rem; color: var(--fg-muted); line-height: 1.5; }

/* ── 12. Data Sovereignty ── */
.sovereignty { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sovereignty-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sovereignty-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.sovereignty-text h2 { margin-bottom: 1.25rem; }
.sovereignty-text p  { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }

.sovereignty-diagram {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ── 13. Who It's For ── */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.who-card {
  padding: 2rem 2.5rem;
  border-radius: var(--rl);
  border: 1px solid var(--border);
  background: var(--card);
}

.who-card-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.who-card-title.for   { color: var(--success); }
.who-card-title.notfor { color: var(--fg-muted); }

.who-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.who-item:last-child { border-bottom: none; }

.who-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--success);
}
.who-icon.x { color: var(--fg-muted); }
.who-icon svg { width: 100%; height: 100%; }

.who-item p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.5; }
.who-item strong { color: var(--fg); font-weight: 500; }

/* ── 14. Before/After ── */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .before-after-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .before-after-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.ba-card {
  padding: 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ba-before {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--r);
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
}
.ba-after {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--r);
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.12);
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ba-dot.red   { background: var(--error); }
.ba-dot.green { background: var(--success); }

.ba-before p, .ba-after p { font-size: 0.85rem; line-height: 1.5; color: var(--fg-muted); }
.ba-before strong { color: var(--error); }
.ba-after  strong { color: var(--success); }

/* ── 15. CTA Section ── */
.cta-section {
  border-top: 1px solid var(--border);
  text-align: center;
  padding-block: 7rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { color: var(--fg-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 16. Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 0.82rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--fg); }
.footer-copy { font-size: 0.78rem; color: var(--fg-muted); }

/* ── 17. Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; }

/* ── 18. Manifesto sub-page ── */
.manifesto-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.manifesto-body {
  max-width: 660px;
  margin: 0 auto;
  padding-block: 4rem 6rem;
}
.manifesto-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.manifesto-body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.manifesto-body p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.manifesto-body p strong { color: var(--fg); }
.manifesto-body blockquote {
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  margin-block: 2rem;
  color: var(--fg);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
}

/* ── 19. Sicurezza sub-page ── */
.security-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .security-grid { grid-template-columns: repeat(3, 1fr); } }

.security-card {
  padding: 1.75rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.security-card:hover {
  border-color: var(--primary-40);
  transform: translateY(-2px);
}
.security-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.security-card-icon svg { width: 17px; height: 17px; }
.security-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Syne', sans-serif;
}
.security-card p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.6; }

.security-notice {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-radius: var(--r);
  border: 1px solid var(--primary-20);
  background: var(--primary-10);
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.security-notice strong { color: var(--primary); }

/* ── 20. Focus ring accessibility ── */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ── 21. Selection ── */
::selection { background: var(--primary-20); color: var(--fg); }

/* ── 22. Scrollbar (subtle) ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* ── 23. SVG diagram ── */
.diagram-svg text { fill: var(--fg); }
.diagram-svg .muted { fill: var(--fg-muted); }
.dark .diagram-svg text { fill: #ededed; }
.dark .diagram-svg .muted { fill: #71717a; }
