/* ========================================
   PRAXIDO — Landing Page
   Redesign 2026
   ======================================== */

/* --- Tokens --- */
:root {
  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;

  --clr-primary: #2B6B5A;
  --clr-primary-light: #3A8E78;
  --clr-primary-pale: #E6F0ED;
  --clr-accent: #C8764B;
  --clr-accent-pale: #F5E8DE;

  --clr-bg: #FAFAF6;
  --clr-bg-warm: #F5F3EE;
  --clr-surface: #FFFFFF;
  --clr-dark: #1A2520;

  --clr-text: #1A2520;
  --clr-text-body: #4A5854;
  --clr-text-muted: #7C8B85;

  --clr-border: #E2DFD8;

  --shadow-sm: 0 1px 3px rgba(26, 37, 32, 0.06);
  --shadow-md: 0 4px 14px rgba(26, 37, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 37, 32, 0.10);
  --shadow-xl: 0 24px 48px rgba(26, 37, 32, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark {
  --clr-bg: #111B17;
  --clr-bg-warm: #162019;
  --clr-surface: #1A2822;
  --clr-dark: #0A1210;

  --clr-text: #E2EBE7;
  --clr-text-body: #B0C4BB;
  --clr-text-muted: #9BB3AA;

  --clr-border: #243530;

  --clr-primary-pale: rgba(43, 107, 90, 0.15);
  --clr-accent-pale: rgba(200, 118, 75, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* --- Base --- */
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--clr-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
}

h1 em {
  font-style: italic;
  color: var(--clr-primary);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 107, 90, 0.25);
}

.btn-primary:hover {
  background: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 107, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

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

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-mac {
  background: linear-gradient(135deg, #334155, #0F172A);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-mac:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-print {
  background: var(--clr-bg-warm);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.btn-print:hover {
  background: var(--clr-primary-pale);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--clr-accent-pale);
  color: var(--clr-accent);
  border: 1px solid rgba(200, 118, 75, 0.2);
}

.badge--on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Check list */
.check-list { margin-top: 1rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--clr-text-body);
}

.check-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clr-primary);
}

.check-list--accent li svg { color: var(--clr-accent); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--clr-border);
}

html.dark .site-header {
  background: rgba(17, 27, 23, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: 3rem;
  margin-right: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover { color: var(--clr-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: none;
  border: none;
  color: var(--clr-text);
}

.menu-toggle svg { width: 22px; height: 22px; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 9rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, var(--clr-primary-pale) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, var(--clr-accent-pale) 0%, transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-content { margin-bottom: 3.5rem; }

.hero .badge { margin-bottom: 1.5rem; }

.hero h1 { margin-bottom: 1.25rem; }

.hero-logo {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: bottom;
  margin-right: 0.15em;
  border-radius: 10px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 1rem;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Screenshot Composition */
.hero-screenshot {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.hero-desktop {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.hero-screenshot:hover .hero-desktop {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(26, 37, 32, 0.16);
}

.hero-mobile-frame {
  position: absolute;
  bottom: -24px;
  right: 40px;
  width: 190px;
  border-radius: 22px;
  border: 7px solid rgba(20, 20, 20, 0.85);
  background: #000;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-spring);
  z-index: 2;
  cursor: pointer;
}

.hero-mobile-frame:hover {
  transform: rotate(0deg) scale(1.05) translateY(-10px);
}

.hero-mobile-frame img { border-radius: 16px; }

.hero-badge-desktop,
.hero-badge-mobile {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 3;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
}

.hero-badge-desktop svg,
.hero-badge-mobile svg { width: 15px; height: 15px; }

.hero-badge-desktop {
  top: 1.25rem;
  left: 1.25rem;
  color: var(--clr-primary);
}

.hero-badge-mobile {
  bottom: 2.5rem;
  right: 250px;
  color: var(--clr-accent);
}

/* --- Founder --- */
.founder {
  padding: 5rem 0;
  background: var(--clr-bg-warm);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.founder-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.founder-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-surface);
  box-shadow: var(--shadow-lg);
}

.founder-text h2 {
  font-style: italic;
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}

.founder-quote {
  position: relative;
  padding-left: 2.5rem;
}

.founder-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.1rem;
  top: -0.6rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: normal;
  color: var(--clr-primary);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.founder-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text-body);
}

.founder-text p strong { color: var(--clr-text); }

.founder-text .btn { margin-top: 0.5rem; }

/* --- Dual System --- */
.system {
  padding: 5rem 0 2rem;
}

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

.system-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-primary);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.system-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.system-card--mobile { border-top-color: var(--clr-accent); }

.system-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.system-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.system-icon svg { width: 22px; height: 22px; }
.system-icon--accent { background: var(--clr-accent-pale); color: var(--clr-accent); }

.system-card-header h3 { margin-bottom: 0; }
.system-card-header span { font-size: 0.85rem; color: var(--clr-text-muted); }
.system-card > p { color: var(--clr-text-body); margin: 0; font-size: 0.95rem; }

/* --- Features / Bento --- */
.features {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--clr-border);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-card--wide { grid-column: span 2; }

.bento-card--featured {
  background: var(--clr-primary-pale);
  border-color: rgba(43, 107, 90, 0.2);
}

.bento-card--dark {
  background: var(--clr-dark);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.bento-card--dark h3 { color: #fff; }
.bento-card--dark .check-list li { color: rgba(255, 255, 255, 0.75); }
.bento-card--dark .check-list li svg { color: var(--clr-primary-light); }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(43, 107, 90, 0.2);
}

.bento-icon svg { width: 20px; height: 20px; }

.bento-icon--accent {
  background: linear-gradient(135deg, var(--clr-accent), #D4943A);
  box-shadow: 0 4px 12px rgba(200, 118, 75, 0.2);
}

.bento-card--dark .bento-icon {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.bento-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: 0.25rem;
}

.bento-highlight {
  font-weight: 600;
  color: var(--clr-primary-light);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Security note */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 1.25rem 2rem;
  text-align: center;
  border-radius: var(--radius-full);
  background: var(--clr-primary-pale);
  border: 1px solid rgba(43, 107, 90, 0.15);
}

.security-note svg {
  width: 20px;
  height: 20px;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.security-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--clr-text-body);
}

/* --- Gallery --- */
.gallery {
  padding: 5rem 0 3rem;
  background: var(--clr-bg-warm);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 2rem calc(50vw - 420px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(840px, 85vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, opacity 0.3s;
  background: var(--clr-surface);
}

.gallery-slide:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top center;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.9rem;
}

/* Gallery wrapper for nav buttons */
.gallery-wrapper {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--clr-surface);
  color: var(--clr-text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.85;
}

.gallery-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev { left: max(1rem, calc(50vw - 450px)); }
.gallery-nav--next { right: max(1rem, calc(50vw - 450px)); }

/* Gallery dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--clr-border);
  cursor: pointer;
  padding: 17px;
  box-sizing: content-box;
  background-clip: content-box;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--clr-primary);
  background-clip: content-box;
  transform: scale(1.3);
}

.gallery-dot:hover:not(.active) {
  background: var(--clr-text-muted);
  background-clip: content-box;
}

/* --- Download --- */
.download {
  padding: 6rem 0;
  background: var(--clr-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(43, 107, 90, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 118, 75, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.download-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.download-inner .badge { margin-bottom: 1.5rem; }

.download-inner h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.download-inner > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem;
}

.download-social-proof {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.download-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.download-note a {
  color: var(--clr-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-note a:hover { color: #fff; }

/* --- Install --- */
.install {
  padding: 5rem 0;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.install-steps h2 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.install-steps > p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--clr-border);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.step h3 { margin-bottom: 0.35rem; }

.step p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin: 0;
}

.install-requirements {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  text-align: center;
}

.install-requirements > svg {
  width: 44px;
  height: 44px;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.install-requirements h3 { margin-bottom: 1.5rem; }

.install-requirements ul {
  text-align: left;
  display: inline-block;
}

.install-requirements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.install-requirements li svg {
  width: 16px;
  height: 16px;
  color: var(--clr-primary);
  flex-shrink: 0;
}

/* --- Roadmap --- */
.roadmap {
  padding: 5rem 0 6rem;
  background: var(--clr-bg-warm);
  border-top: 1px solid var(--clr-border);
}

.roadmap-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-body);
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.chip svg { width: 16px; height: 16px; color: var(--clr-primary); }

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--clr-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  height: 28px;
  opacity: 0.35;
  filter: grayscale(1);
}

html.dark .footer-logo {
  opacity: 0.5;
  filter: grayscale(1) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--clr-primary); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin: 0;
}

/* --- Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--clr-border);
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

html.dark .mobile-cta {
  background: rgba(17, 27, 23, 0.92);
}

.mobile-cta.visible { transform: translateY(0); }

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 32, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--clr-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop.active .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h3 { margin: 0; }

.modal-close {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  padding: 0.25rem;
}

.modal-close:hover { color: var(--clr-text); }
.modal-close svg { width: 20px; height: 20px; }

.modal > p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.form-group {
  margin: 1.5rem 0;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--clr-text);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--clr-text);
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-pale);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #D44B4B;
  margin-top: 0.4rem;
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  margin: 1.5rem 0;
}

.checkbox input { margin-top: 0.2rem; accent-color: var(--clr-primary); }

.checkbox span {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.checkbox a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--clr-primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 210;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }
.lightbox-close svg { width: 28px; height: 28px; }

.lightbox > img {
  max-width: 90%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav svg { width: 24px; height: 24px; }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* --- Subpage Styles --- */

.subpage-hero {
  padding: 9rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero .hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, var(--clr-primary-pale) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, var(--clr-accent-pale) 0%, transparent 45%);
  opacity: 0.5;
  pointer-events: none;
}

.subpage-hero .container { position: relative; z-index: 2; }

.subpage-hero h1 { margin-bottom: 0.75rem; }

.subpage-hero .lead {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.subpage-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.subpage-content--wide {
  max-width: 900px;
}

/* Legal card (datenschutz, nutzungsbedingungen, impressum) */
.legal-card {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  text-align: left;
  font-size: 1.35rem;
  color: var(--clr-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
}

.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--clr-text-body);
}

.legal-list li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.legal-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--clr-border);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.legal-link {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: var(--clr-primary-light);
}

/* Impressum sections */
.impressum-section {
  margin-bottom: 2.5rem;
}

.impressum-section:last-child {
  margin-bottom: 0;
}

.impressum-section h2 {
  text-align: left;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* About page */
.about-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-surface);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 2rem;
}

.story-card {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  margin-bottom: 3rem;
}

.story-card h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.story-card h2 svg {
  color: var(--clr-primary);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.story-card p {
  color: var(--clr-text-body);
  line-height: 1.8;
  font-size: 1.05rem;
}

.perspective-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.perspective-card {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.perspective-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.perspective-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perspective-icon svg {
  width: 28px;
  height: 28px;
}

.perspective-icon--accent {
  background: var(--clr-accent-pale);
  color: var(--clr-accent);
}

.perspective-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.perspective-card p {
  color: var(--clr-text-body);
  line-height: 1.65;
  margin: 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.vision-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
}

.vision-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vision-card-header svg {
  color: var(--clr-primary);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.vision-card-header h2 {
  font-size: 1.4rem;
  margin: 0;
}

.vision-card p {
  color: var(--clr-text-body);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  flex-grow: 1;
}

.contact-cta {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.contact-cta > p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}

.contact-cta a {
  color: var(--clr-primary);
  font-weight: 500;
}

.contact-cta a:hover {
  color: var(--clr-primary-light);
}

.contact-box {
  display: inline-block;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--clr-primary-pale);
  border: 1px solid rgba(43, 107, 90, 0.2);
  margin-top: 1rem;
}

.contact-box strong {
  display: block;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.contact-box p {
  margin: 0;
  color: var(--clr-text-body);
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card--wide { grid-column: span 2; }
  .hero-badge-mobile { right: 200px; }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--clr-surface); flex-direction: column; padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--clr-border); z-index: 49; }
  .nav.active { display: flex; }
  .menu-toggle { display: flex; order: 1; }

  .hero { padding: 7rem 0 4rem; }
  .hero-lead { font-size: 0.9rem; margin-top: 0.75rem; }

  .hero-mobile-frame { width: 130px; bottom: -12px; right: -5px; border-width: 4px; border-radius: 16px; }
  .hero-mobile-frame img { border-radius: 12px; }
  .hero-badge-desktop { font-size: 0.7rem; padding: 0.35rem 0.75rem; top: 0.75rem; left: 0.75rem; }
  .hero-badge-mobile { font-size: 0.7rem; padding: 0.35rem 0.75rem; bottom: 1.5rem; right: auto; left: 0.75rem; }

  .founder-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .founder-photo { width: 90px; height: 90px; }
  .founder-text h2 { text-align: center; }
  .founder-quote { padding-left: 0; }
  .founder-quote::before { left: 50%; transform: translateX(-50%); top: -1.2rem; font-size: 4rem; }

  .gallery-nav { display: none; }

  .system-grid { grid-template-columns: 1fr; }

  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }

  .security-note { flex-direction: column; border-radius: var(--radius-lg); text-align: center; }

  .gallery-slide img { height: 260px; }

  .install-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .install-steps h2 { text-align: center; }
  .install-steps > p { text-align: center; }

  .mobile-cta { display: block; }

  /* Extra padding at bottom for sticky CTA */
  .site-footer { padding-bottom: 5rem; }

  /* Subpage responsive */
  .subpage-hero { padding: 7rem 0 2rem; }

  .perspective-list { grid-template-columns: 1fr; }

  .perspective-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .vision-grid { grid-template-columns: 1fr; }

  .about-photo { width: 120px; height: 120px; }

  .story-card { padding: 2rem; }

  .legal-card { padding: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .download-buttons .btn { width: 100%; max-width: 280px; }
  .step { gap: 1rem; }
  .step-num { font-size: 2rem; width: 36px; }
}

/* --- Skip Navigation --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-nav:focus {
  top: 1rem;
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--radius-full);
}

.gallery-dot:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

.gallery-nav:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
}

.nav a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.footer-links a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.modal-close:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
}

/* --- Print Styles --- */
@media print {
  .site-header, 
  .site-footer, 
  .theme-toggle, 
  .btn-print,
  .skip-nav { 
    display: none !important; 
  }

  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .subpage-hero {
    padding: 2rem 0 !important;
  }

  .subpage-hero .hero-bg {
    display: none !important;
  }

  .subpage-content {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .legal-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: none !important;
  }

  .legal-section h2 {
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }

  a.legal-link {
    text-decoration: none !important;
    color: #000 !important;
  }
}

