:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 260ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --accent: #d89038;
  --accent-text: #ffffff;
  --accent-dim: #f3e2c6;
  --accent-glow: rgba(216, 144, 56, 0.12);
  --green: #16a34a;
  --navy: #16294a;
  --max: 1120px;
  --radius-btn: 8px;
  --radius-card: 16px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f4f6f9;
  color: #16294a;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-dim);
  color: #16294a;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  top: calc(8px + var(--sat));
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #16294a;
}

.lead {
  font-size: 1.05rem;
  color: #3d5378;
  max-width: 46rem;
  margin: 0;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--sat);
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: #e8e4dc;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  border: 1px solid #243352;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8a090;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: #c47e2c;
}

.btn-ghost {
  background: transparent;
  color: #e8e4dc;
  border-color: #243352;
}

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

.btn-ghost-light {
  background: #fff;
  color: #16294a;
  border-color: #d5dce8;
}

.btn-ghost-light:hover {
  background: #edf1f6;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid #243352;
  background: transparent;
  color: #e8e4dc;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(216, 144, 56, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(22, 41, 74, 0.8), transparent 50%),
    linear-gradient(180deg, #05070c 0%, #0a1020 100%);
  color: #e8e4dc;
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 80%;
  background:
    repeating-radial-gradient(circle at 70% 30%, transparent 0, transparent 48px, rgba(255, 255, 255, 0.03) 49px, transparent 50px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #fff;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: #d89038;
  margin: 0 0 16px;
}

.purpose-en {
  color: #a8a090;
  font-size: 0.95rem;
  max-width: 40rem;
  margin: 0 0 24px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.purpose .card h3 {
  font-size: 1.05rem;
}

.purpose .card h3:not(:first-child) {
  margin-top: 18px;
}

html[lang="en"] .nav-links [data-i18n="nav.privacy"] {
  display: none;
}

.hero .lead {
  color: #a8a090;
  font-size: 1.12rem;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.powered {
  margin-top: 28px;
  font-size: 13px;
  color: #6a6458;
}

/* Inbox mock */
.inbox-mock {
  display: grid;
  grid-template-columns: 132px 1fr 1.15fr;
  background: #0a1020;
  border: 1px solid #243352;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mock-col {
  border-right: 1px solid #152033;
  padding: 12px;
}

.mock-col:last-child {
  border-right: 0;
}

.mock-side {
  background: #05070c;
}

.mock-dotrow {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-dotrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #243352;
  display: block;
}

.mock-dotrow i:first-child { background: #d89038; }

.mock-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-nav b,
.mock-nav span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 6px;
  color: #a8a090;
}

.mock-nav b {
  background: rgba(216, 144, 56, 0.15);
  color: #d89038;
}

.mock-item {
  padding: 10px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.mock-item.active {
  background: rgba(216, 144, 56, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}

.mock-item .from {
  font-size: 12px;
  font-weight: 600;
  color: #e8e4dc;
}

.mock-item .subj {
  font-size: 11px;
  color: #a8a090;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-item .meta {
  font-size: 10px;
  color: #6a6458;
}

.mock-read h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

.mock-read p {
  margin: 0;
  font-size: 12px;
  color: #a8a090;
  line-height: 1.55;
}

.mock-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
}

/* Trust */
.trust {
  background: #0a1020;
  border-top: 1px solid #152033;
  padding: 28px 0 36px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  color: #a8a090;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid #d5dce8;
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 2px 8px rgba(22, 41, 74, 0.04);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  color: #16294a;
}

.card p {
  margin: 0;
  color: #3d5378;
  font-size: 0.95rem;
}

.card ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: #3d5378;
  font-size: 0.92rem;
}

.card ul li {
  margin: 6px 0;
}

.icon-blob {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
}

/* Features */
.features {
  background: #edf1f6;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feat {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 22px;
}

.feat h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.feat p {
  margin: 0;
  font-size: 0.88rem;
  color: #3d5378;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 8px 8px 8px 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: #3d5378;
  font-size: 0.92rem;
}

/* Security */
.security {
  background: #05070c;
  color: #e8e4dc;
}

.security h2,
.security .lead {
  color: #e8e4dc;
}

.security .lead {
  color: #a8a090;
}

.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.sec-item {
  background: #0a1020;
  border: 1px solid #243352;
  border-radius: 14px;
  padding: 22px;
}

.sec-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
}

.sec-item p {
  margin: 0;
  color: #a8a090;
  font-size: 0.92rem;
}

/* Mobile */
.mobile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 36px;
}

.phone {
  width: min(260px, 100%);
  margin-inline: auto;
  background: #0a1020;
  border: 8px solid #162033;
  border-radius: 28px;
  min-height: 420px;
  padding: 20px 16px;
  box-shadow: 0 20px 48px rgba(22, 41, 74, 0.18);
}

.phone .notch {
  width: 72px;
  height: 8px;
  border-radius: 8px;
  background: #243352;
  margin: 0 auto 18px;
}

.phone .push {
  background: #162033;
  border-radius: 12px;
  padding: 12px;
  color: #e8e4dc;
  font-size: 12px;
}

.phone .push strong {
  display: block;
  margin-bottom: 4px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  color: #3d5378;
}

.checklist svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* CTA */
.cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(216, 144, 56, 0.2), transparent 50%),
    #0a1020;
  color: #e8e4dc;
  text-align: center;
  padding: 88px 0;
}

.cta h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 12px;
}

.cta p {
  color: #a8a090;
  max-width: 36rem;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: #05070c;
  color: #a8a090;
  padding: 48px 0 calc(32px + var(--sab));
  font-size: 14px;
  border-top: 1px solid #152033;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  color: #e8e4dc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 6px 0;
}

.site-footer a {
  color: #a8a090;
}

.site-footer a:hover {
  color: #d89038;
}

.impressum {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #152033;
  font-size: 12px;
  color: #6a6458;
  line-height: 1.7;
}

/* Legal */
.legal-hero {
  background: linear-gradient(180deg, #05070c, #0a1020);
  color: #e8e4dc;
  padding: 56px 0 40px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
}

.legal-hero p {
  margin: 0;
  color: #a8a090;
}

.legal-body {
  max-width: 44rem;
}

.legal-body h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 10px;
}

.legal-body p,
.legal-body li {
  color: #3d5378;
  font-size: 0.98rem;
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: #edf1f6;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #3d5378;
}

[data-lang-block][hidden] {
  display: none !important;
}

/* Cookie */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--sab));
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: #0a1020;
  color: #e8e4dc;
  border: 1px solid #243352;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: none;
}

.cookie.is-open {
  display: block;
}

.cookie p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #a8a090;
}

.cookie a {
  color: #d89038;
}

.cookie .btn {
  width: 100%;
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero-grid,
  .mobile-grid,
  .sec-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .feat-grid,
  .steps,
  .trust-grid,
  .purpose-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inbox-mock {
    grid-template-columns: 1fr 1.2fr;
  }

  .mock-side {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    display: flex;
  }

  .site-header.is-open .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0 20px;
  }

  .site-header.is-open .nav-links {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 8px 0 0;
  }

  .site-header.is-open .nav-actions {
    order: 4;
    width: 100%;
    flex-wrap: wrap;
  }

  .site-header.is-open .nav-actions .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .pillars-grid,
  .feat-grid,
  .steps,
  .trust-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .inbox-mock {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mock-read {
    display: none;
  }

  .hero {
    padding: 40px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
