/* ============================================================
   Plaitec Website — shared stylesheet
   Loaded via <link rel="stylesheet"> in each HTML head so styles
   are in place before first paint (cannot be done from site.js,
   which is deferred and runs only after the page has rendered).
   ============================================================ */

/* Hero entry animation — direct children of [data-hero-stagger]
   fade up sequentially on first paint. */
.font-manrope {
  font-family: "Manrope", system-ui, sans-serif;
}

.font-inter {
  font-family: "Inter", system-ui, sans-serif;
}

.plaitec-mobile-menu-toggle,
.plaitec-mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  body > header.sticky nav,
  header.sticky nav {
    height: 64px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 10px !important;
  }

  header.sticky nav > a:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  header.sticky nav > a:first-child img {
    height: 42px !important;
    max-width: 150px;
    object-fit: contain;
  }

  header.sticky nav > .flex.items-center.gap-4 {
    gap: 8px !important;
    flex: 0 0 auto;
  }

  header.sticky nav > .flex.items-center.gap-4 > a[data-i18n="nav.contact"] {
    display: none !important;
  }

  .plaitec-lang-switcher {
    flex-shrink: 0;
  }

  .plaitec-lang-btn {
    min-width: 32px;
  }

  .plaitec-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #ffffff;
    color: #081625;
    box-shadow: 0 6px 18px -12px rgba(8, 22, 37, 0.45);
  }

  .plaitec-mobile-menu-toggle .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
  }

  .plaitec-mobile-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 60;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px -24px rgba(8, 22, 37, 0.48);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  header.plaitec-mobile-nav-open .plaitec-mobile-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .plaitec-mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    color: #0b1c30;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
  }

  .plaitec-mobile-menu-link:hover,
  .plaitec-mobile-menu-link:focus-visible {
    background: #eff4ff;
    color: #904d00;
    outline: none;
  }

  .plaitec-mobile-menu-link.is-active {
    background: #fd8b00;
    color: #ffffff;
  }
}

@media (max-width: 767px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body,
  main,
  section,
  article,
  header,
  footer {
    min-width: 0 !important;
    max-width: 100vw !important;
  }

  main,
  footer {
    overflow-x: clip;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100% !important;
  }

  img,
  svg,
  video {
    height: auto;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100% !important;
  }

  main .grid,
  footer .grid,
  main .flex,
  footer .flex,
  main [class*="grid-cols-"],
  footer [class*="grid-cols-"] {
    min-width: 0 !important;
  }

  main .flex.items-center,
  main .inline-flex,
  footer .flex {
    flex-wrap: wrap;
  }

  header.sticky .flex.items-center,
  footer [data-newsletter-form] .flex {
    flex-wrap: nowrap !important;
  }

  .px-8,
  .px-10,
  .px-12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .p-6,
  .p-8 {
    padding: 1rem !important;
  }

  .p-10,
  .p-12 {
    padding: 1.25rem !important;
  }

  .py-section-gap {
    padding-top: clamp(3rem, 12vw, 5rem) !important;
    padding-bottom: clamp(3rem, 12vw, 5rem) !important;
  }

  .pt-24,
  .pt-20,
  .pt-16 {
    padding-top: clamp(3.5rem, 14vw, 5rem) !important;
  }

  .pb-32,
  .pb-24,
  .pb-20,
  .pb-16,
  .pb-section-gap {
    padding-bottom: clamp(2.75rem, 12vw, 4.5rem) !important;
  }

  .gap-20,
  .gap-16,
  .gap-12 {
    gap: 2rem !important;
  }

  .gap-8,
  .gap-gutter {
    gap: 1.25rem !important;
  }

  .text-h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .text-h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  .text-h3 {
    font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
    line-height: 1.25 !important;
  }

  .text-body-lg,
  .font-body-lg {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  main h1,
  main h2,
  main h3,
  main p,
  main li,
  main a,
  footer p,
  footer a,
  footer li,
  .legal-prose p,
  .legal-prose li {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  main a[class*="px-"],
  main button[class*="px-"],
  footer button[class*="px-"] {
    min-height: 44px;
    white-space: normal !important;
    text-align: center;
  }

  main a[class*="rounded-"],
  main button[class*="rounded-"] {
    justify-content: center;
  }

  [class*="rounded-[2rem]"],
  [class*="rounded-[2.5rem]"],
  [class*="rounded-[3rem]"] {
    border-radius: 1.25rem !important;
  }

  [class*="min-h-[500px]"] {
    min-height: min(92vw, 380px) !important;
  }

  [class*="min-h-[819px]"] {
    min-height: auto !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }

  [class*="max-h-[280px]"],
  [class*="max-h-[640px]"] {
    width: 100% !important;
    max-height: min(68vh, 420px) !important;
    object-fit: contain !important;
  }

  main img[class*="rotate-"] {
    transform: none !important;
  }

  main .blur-3xl.absolute,
  main .absolute.blur-3xl {
    width: min(70vw, 260px) !important;
    height: min(70vw, 260px) !important;
  }

  table {
    min-width: 620px;
  }

  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  footer [data-newsletter-form] .flex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.5rem !important;
  }

  footer [data-newsletter-form] input {
    min-width: 0 !important;
  }

  footer [data-newsletter-form] button {
    width: 44px;
    height: 44px;
    padding: 0 !important;
  }

  .plaitec-waitlist-dialog {
    width: 100% !important;
    max-height: 90dvh !important;
    padding: 22px !important;
  }

  .plaitec-waitlist-grid {
    grid-template-columns: 1fr !important;
  }

  pre,
  code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@keyframes plaitec-hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-hero-stagger] > * {
  animation: plaitec-hero-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

[data-hero-stagger] > *:nth-child(1) { animation-delay: 0s;   }
[data-hero-stagger] > *:nth-child(2) { animation-delay: 0.2s; }
[data-hero-stagger] > *:nth-child(3) { animation-delay: 0.3s; }
[data-hero-stagger] > *:nth-child(4) { animation-delay: 0.4s; }
[data-hero-stagger] > *:nth-child(5) { animation-delay: 0.5s; }
[data-hero-stagger] > *:nth-child(n+6) {
  animation-delay: 0.6s;
  animation-duration: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-stagger] > * { animation: none !important; }
}

.index-section-copy {
  padding-top: clamp(1.1rem, 2.5vw, 2.25rem);
  padding-bottom: clamp(1rem, 2vw, 1.85rem);
}

.index-section-copy > :last-child {
  margin-bottom: 0;
}

.particles-background {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background:
    radial-gradient(circle at 48% 44%, rgba(0, 213, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #020914 0%, #05172d 45%, #062f4f 100%);
  border-radius: inherit;
  isolation: isolate;
  transition: background 0.5s ease;
}

.dark .particles-background,
[data-theme="dark"] .particles-background,
.particles-background.is-dark {
  background:
    radial-gradient(circle at 48% 44%, rgba(0, 245, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #020914 0%, #05172d 45%, #062f4f 100%);
}

.particles-background canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.particles-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle, transparent 62%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 245, 255, 0.10), transparent 36%, rgba(0, 0, 0, 0.32));
  box-shadow:
    inset 0 0 80px rgba(0, 245, 255, 0.10),
    inset 0 0 140px rgba(0, 0, 0, 0.68);
}

.particles-background.is-dark::after {
  background:
    radial-gradient(circle, transparent 70%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 245, 255, 0.10), transparent 34%, rgba(0, 0, 0, 0.26));
  box-shadow:
    inset 0 0 80px rgba(0, 245, 255, 0.10),
    inset 0 0 120px rgba(0, 0, 0, 0.62);
}

.plaitec-waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Manrope, system-ui, sans-serif;
}

.plaitec-waitlist-modal.is-open {
  display: flex;
}

.plaitec-waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 37, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.plaitec-waitlist-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  color: #081625;
  box-shadow: 0 28px 80px -20px rgba(8, 22, 37, 0.48);
  padding: 32px;
}

.plaitec-waitlist-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.plaitec-waitlist-kicker {
  margin: 0 0 8px;
  color: #fd8b00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plaitec-waitlist-dialog h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 800;
}

.plaitec-waitlist-copy {
  margin: 12px 42px 24px 0;
  color: #64748b;
  line-height: 1.55;
}

.plaitec-waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plaitec-waitlist-field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.plaitec-waitlist-field-full {
  margin-bottom: 14px;
}

.plaitec-waitlist-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #ffffff;
  color: #081625;
  font: inherit;
  font-weight: 600;
  outline: none;
  padding: 10px 12px;
}

.plaitec-waitlist-field input:focus {
  border-color: #fd8b00;
  box-shadow: 0 0 0 3px rgba(253, 139, 0, 0.16);
}

.plaitec-waitlist-field input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.plaitec-waitlist-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.plaitec-waitlist-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  cursor: pointer;
}

.plaitec-waitlist-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #fd8b00;
  cursor: pointer;
}

.plaitec-waitlist-consent-text a {
  color: #fd8b00;
  font-weight: 700;
  text-decoration: underline;
}

.plaitec-waitlist-consent-text a:hover {
  color: #c46d00;
}

.plaitec-waitlist-status {
  min-height: 20px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.plaitec-waitlist-status.is-error {
  color: #b42318;
}

.plaitec-waitlist-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: #081625;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.plaitec-waitlist-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.plaitec-waitlist-success {
  margin-top: 24px;
  border-radius: 16px;
  background: #f0fdf4;
  color: #14532d;
  padding: 24px;
  text-align: center;
  font-weight: 800;
}

.plaitec-waitlist-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 9999px;
  background: #22c55e;
  color: #ffffff;
}

@media (max-width: 640px) {
  .plaitec-waitlist-modal {
    padding: 12px;
  }

  .plaitec-waitlist-dialog {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .plaitec-waitlist-copy {
    margin-right: 0;
  }

  .plaitec-waitlist-grid {
    grid-template-columns: 1fr;
  }
}
