/* Drivoly marketing site — Nextcloud-inspired structure, Emil Kowalski–style polish */

:root {
  --bg: #eceff4;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2a9fd4;
  --primary-hover: #2289b8;
  --primary-soft: #e3f6fc;
  --border: #e2e8f0;
  --hero-bg: linear-gradient(155deg, #0c4a6e 0%, #0e5f7a 38%, #0f6b84 62%, #0d5c6f 100%);
  --hero-text: #ffffff;
  --hero-muted: #e0f2fe;
  --hero-text-shadow: 0 1px 2px rgba(0, 36, 58, 0.45);
  --accent-glow: rgba(77, 184, 232, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .nav-list a:not(.nav-cta) {
  color: var(--text-muted);
  text-shadow: none;
}

.site-header.is-scrolled .nav-list a:not(.nav-cta):hover {
  color: var(--text);
  background: var(--bg-muted);
}

.site-header.is-scrolled .nav-toggle-bar {
  background: var(--text);
  box-shadow: none;
}

.site-header.on-hero:not(.is-scrolled) .nav-list a:not(.nav-cta) {
  color: #fff;
  text-shadow: var(--hero-text-shadow);
}

.site-header.on-hero:not(.is-scrolled) .nav-toggle-bar {
  background: #fff;
  box-shadow: var(--hero-text-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  border-radius: 12px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.site-header.on-hero:not(.is-scrolled) .nav-list a:hover {
  color: var(--hero-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--primary-hover) !important;
  box-shadow: 0 2px 12px rgba(15, 60, 90, 0.15);
}

.nav-cta:hover {
  background: #fff !important;
  color: #1a7aa8 !important;
}

.site-header.is-scrolled .nav-cta,
.site-header:not(.on-hero) .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: none;
}

.site-header.is-scrolled .nav-cta:hover,
.site-header:not(.on-hero) .nav-cta:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  padding: calc(var(--header-h) + 64px) 0 0;
  overflow: hidden;
  background: var(--hero-bg);
  background-color: #0c4a6e;
  color: var(--hero-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 42, 64, 0.35) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px 48px;
    padding-bottom: 64px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-glow--a {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -5%;
  background: rgba(56, 189, 248, 0.18);
  opacity: 0.55;
}

.hero-glow--b {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -120px;
  background: rgba(14, 116, 144, 0.35);
  opacity: 0.45;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, black 20%, transparent 75%);
  opacity: 0.6;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.hero-orb--1 {
  width: 120px;
  height: 120px;
  top: 18%;
  right: 8%;
  animation: hero-float-y 7s ease-in-out infinite;
}

.hero-orb--2 {
  width: 64px;
  height: 64px;
  bottom: 28%;
  left: 12%;
  animation: hero-float-y 5s ease-in-out infinite reverse;
}

@keyframes hero-float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e0f2fe;
}

.hero-highlights li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.7);
}

.hero-meta span + span::before {
  content: "·";
  margin-inline: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-bottom-label {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.85);
}

.hero-bottom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hero-bottom-tags li {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #f0f9ff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.hero-visual-stack {
  position: relative;
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-width: 160px;
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 60, 90, 0.2);
  animation: hero-float-y 6s ease-in-out infinite;
}

.hero-float strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-float small {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.hero-float--sync {
  top: 8%;
  left: -8%;
  animation-delay: 0s;
}

.hero-float--share {
  top: 42%;
  right: -6%;
  animation-delay: 1.2s;
}

.hero-float--quota {
  bottom: 6%;
  left: 4%;
  animation-delay: 0.6s;
}

.hero-float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-float-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border-radius: 8px;
}

.hero-float-bar {
  display: block;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.hero-float-bar span {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: var(--primary);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-muted);
  margin: 0 0 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: #fff;
}

.hero-accent {
  color: #fff;
}

.hero-lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(224, 242, 254, 0.92);
  max-width: 28rem;
  margin: 0 0 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-inline: 0;
}

/* Browser frame for portal screenshots */
.browser-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(15, 60, 90, 0.06),
    0 24px 64px rgba(15, 60, 90, 0.18);
  overflow: hidden;
}

.browser-frame--hero {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin-inline: auto;
  transform: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.browser-frame--hero:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(15, 60, 90, 0.06),
    0 32px 72px rgba(15, 60, 90, 0.22);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dots span:nth-child(1) {
  background: #f87171;
}

.browser-dots span:nth-child(2) {
  background: #fbbf24;
}

.browser-dots span:nth-child(3) {
  background: #4ade80;
}

.browser-url {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #fff;
  color: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(15, 60, 90, 0.18);
}

.hero .btn-primary {
  background: #fff;
  color: #0c4a6e;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 36, 58, 0.35);
}

.section.cta .btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #f0f9ff;
}

.hero .btn-primary:hover {
  background: #f0f9ff;
  color: #0a3d5c;
}

.section.cta .btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(0, 36, 58, 0.25);
  text-shadow: var(--hero-text-shadow);
}

.hero .btn-ghost:hover {
  background: rgba(0, 36, 58, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hero-text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

/* Portal showcase */
.showcase {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .showcase-row {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 56px;
  }

  .showcase-row--reverse .showcase-copy {
    order: 2;
  }

  .showcase-row--reverse .showcase-media {
    order: 1;
  }
}

.showcase-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border-radius: 999px;
}

.showcase-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.showcase-copy p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  color: var(--text);
}

.showcase-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.showcase-media {
  margin: 0;
}

.showcase-media .browser-frame {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.showcase-media .browser-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(15, 60, 90, 0.08),
    0 32px 72px rgba(15, 60, 90, 0.14);
}

/* Downloads / platforms */
.downloads {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 1100px) {
  .platform-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.platform-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-spring);
}

.platform-card--available {
  background: var(--bg-elevated);
  border-color: #9dd9ef;
  box-shadow: var(--shadow-sm);
}

.platform-card--available:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.platform-card--soon {
  opacity: 0.92;
}

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.platform-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.platform-icon--windows {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 100%);
}

.platform-icon--macos {
  background: linear-gradient(160deg, #fafafa 0%, #f4f4f5 100%);
}

.platform-icon--linux {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
}

.platform-icon--android {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 100%);
}

.platform-icon--ios {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
}

.platform-card--soon .platform-icon img {
  opacity: 0.72;
}

.platform-status {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.platform-status--available {
  color: #166534;
  background: #dcfce7;
}

.platform-status--soon {
  color: #92400e;
  background: #fef3c7;
}

.platform-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.platform-card p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.platform-meta {
  margin: 0 0 16px !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  color: var(--text-muted) !important;
  opacity: 0.85;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-soon {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
  cursor: not-allowed;
  user-select: none;
}

.downloads-server {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #2a9fd4 0%, #4db8e8 50%, #7ed4c9 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}

.downloads-server h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.downloads-server p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.downloads-server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.downloads-server .btn-primary {
  background: #fff;
  color: #0c4a6e;
}

.downloads-server .btn-primary:hover {
  background: #f0f9ff;
}

.downloads-server .btn-secondary {
  background: rgba(0, 36, 58, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.downloads-server .btn-secondary:hover {
  background: rgba(0, 36, 58, 0.35);
}

@media (max-width: 640px) {
  .downloads-server {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .downloads-server-actions {
    justify-content: center;
  }
}

/* Trust bar */
.trust {
  padding: 48px 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.trust-logos li {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0;
}

.hub {
  background: var(--bg);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.hub-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.25s;
}

.hub-card:hover {
  border-color: #9dd9ef;
  box-shadow: var(--shadow-md);
}

.hub-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.hub-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.hub-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.text-link:hover {
  color: var(--primary-hover);
}

.solutions {
  background: var(--bg-elevated);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.solution-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
}

.solution-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 12px;
}

.solution-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}

.solution-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.why-layout .section-header {
  margin-bottom: 40px;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.why-block h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.why-block p {
  margin: 0;
  color: var(--text-muted);
}

.compliance {
  background: var(--bg-muted);
}

.compliance-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 800px) {
  .compliance-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.compliance-copy p {
  color: var(--text-muted);
}

.check-list {
  margin-top: 24px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.compliance-cards {
  display: grid;
  gap: 12px;
}

.stat-card {
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.stat-card strong {
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta {
  padding-bottom: 120px;
}

.cta-box {
  padding: 56px;
  text-align: center;
  background: linear-gradient(135deg, #2a9fd4 0%, #4db8e8 50%, #7ed4c9 100%);
  color: var(--hero-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-content p {
  margin: 0 0 28px;
  color: var(--hero-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Docs page layout */
.docs-page {
  background: var(--bg-muted);
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-list a.is-current {
  color: var(--primary-hover);
  background: var(--primary-soft);
}

.docs-page-main {
  padding-top: var(--header-h);
}

.docs-page-hero {
  padding: 40px 0 32px;
  background: linear-gradient(145deg, #4db8e8 0%, #5ec4df 45%, #7ed4c9 100%);
  color: #fff;
}

.docs-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.docs-page-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.docs-page .section.docs {
  padding-top: 48px;
  padding-bottom: 96px;
}

/* Knowledge base / docs */
.docs {
  background: transparent;
}

.docs .eyebrow {
  color: var(--primary-hover);
}

.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .docs-layout {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.docs-nav-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.docs-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.docs-nav-link:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.docs-nav-link.is-active {
  color: var(--primary-hover);
  background: var(--primary-soft);
}

.docs-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.doc-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.doc-card h4 {
  margin: 28px 0 12px;
  font-size: 1rem;
  color: var(--text);
}

.doc-card > p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.doc-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-muted);
  line-height: 1.55;
}

.doc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.doc-list--compact {
  margin-top: 8px;
}

.doc-steps {
  margin: 0 0 20px;
  padding-left: 1.25rem;
}

.doc-steps > li {
  margin-bottom: 20px;
  padding-left: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-steps > li::marker {
  color: var(--primary);
  font-weight: 700;
}

.doc-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.doc-steps p {
  margin: 8px 0 0;
}

.doc-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.doc-callout {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--primary-soft);
  border: 1px solid #9dd9ef;
  border-radius: var(--radius);
}

.doc-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.doc-callout p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.code-panel {
  margin: 16px 0 24px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.code-panel-filename {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, "Consolas", monospace;
  color: #94a3b8;
}

.code-copy-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.code-copy-btn:hover {
  background: #475569;
  color: #fff;
}

.code-copy-btn.is-copied {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.code-block {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.code-block--file {
  margin: 0;
  border: none;
  border-radius: 0;
  max-height: 420px;
}

.doc-download-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f0fdfa 100%);
  border: 1px solid #9dd9ef;
  border-radius: var(--radius-lg);
}

.doc-download-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.doc-download-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.doc-download-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-download {
  flex-shrink: 0;
}

.docs-page .btn-primary.btn-download {
  background: var(--primary);
  color: #fff;
}

.docs-page .btn-primary.btn-download:hover {
  background: var(--primary-hover);
  color: #fff;
}

.platform-grid--docs {
  margin: 16px 0 24px;
}

.platform-grid--docs .platform-card {
  padding: 18px;
}

.code-block code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  white-space: pre;
}

.doc-card code:not(.code-block code) {
  padding: 2px 6px;
  font-size: 0.85em;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-radius: 4px;
}

.doc-urls {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.doc-url {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-url:hover {
  border-color: #9dd9ef;
  box-shadow: var(--shadow-sm);
}

.doc-url-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.doc-url-path {
  font-size: 0.8125rem;
  font-family: ui-monospace, "Consolas", monospace;
  color: var(--primary-hover);
}

.doc-faq {
  margin: 0;
}

.doc-faq > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.doc-faq > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-faq dt {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.doc-faq dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 64px 0 32px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.site-footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer nav a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
}

.site-footer nav a:hover {
  color: var(--primary);
}

.footer-contact {
  margin: 12px 0 0;
  font-size: 0.875rem;
}

.footer-contact a {
  color: var(--primary-hover);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Legal pages */
.legal-page-main {
  padding-top: var(--header-h);
}

.legal-page-hero {
  padding: 40px 0 32px;
  background: linear-gradient(145deg, #4db8e8 0%, #5ec4df 45%, #7ed4c9 100%);
  color: #fff;
}

.legal-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-page-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.legal-content {
  padding: 48px 0 72px;
  max-width: 42rem;
}

.legal-content section {
  margin-bottom: 32px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-content a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content code {
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: 4px;
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.legal-back a {
  color: var(--primary-hover);
  font-weight: 500;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 18px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-banner-text a {
  color: var(--primary-hover);
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 10px 18px;
  font-size: 0.875rem;
}

body.has-cookie-banner {
  padding-bottom: 100px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.on-hero:not(.is-scrolled) .nav-list a {
    color: var(--text);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    padding: 36px 24px;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-highlights li:not(:last-child)::after {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .hero-float {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-float {
    animation: none;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

html.i18n-pending body {
  visibility: hidden;
}

html.i18n-ready body {
  visibility: visible;
}
