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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #020617;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: #0ea5e9;
  text-decoration: none;
}

a:hover {
  color: #38bdf8;
}

.disclosure-banner {
  width: 100%;
  background: #0a0a0c;
  color: #22c55e;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-row {
  height: 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track span {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 24px;
  line-height: 20px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nav-row {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

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

.nav-toggle {
  display: none;
}

.burger-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.burger-label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #f8fafc;
  transition: transform 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #22d3ee;
}

.site-footer {
  background: #020617;
  color: #f8fafc;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
  filter: brightness(1.1);
}

.footer-brand p {
  color: #64748b;
  font-size: 14px;
  max-width: 280px;
}

.footer-links h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #f8fafc;
  font-size: 14px;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge {
  display: block;
  transition: filter 0.2s, transform 0.2s;
}

.footer-badge img {
  height: 48px;
  width: auto;
}

.footer-badge:hover {
  filter: invert(1);
  transform: scale(1.04);
}

.footer-disclosure {
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.7;
  color: #64748b;
}

.footer-disclosure p + p {
  margin-top: 12px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 12px;
  color: #475569;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(2, 6, 23, 0.12);
  padding: 16px;
  z-index: 2000;
  box-shadow: 0 -4px 24px rgba(2, 6, 23, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.cookie-toggle {
  display: none;
}

.cookie-toggle:not(:checked) ~ .cookie-banner {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: #64748b;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cookie-accept {
  background: #0ea5e9;
  color: #fff;
}

.cookie-accept:hover {
  background: #38bdf8;
}

.cookie-decline {
  background: transparent;
  color: #020617;
  border: 1px solid rgba(2, 6, 23, 0.12);
}

.page-hero {
  position: relative;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
}

.page-hero-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: #22d3ee;
}

.page-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 48px 112px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  transform: scaleX(1.08);
  transform-origin: left center;
  margin-bottom: 12px;
}

.page-hero p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 560px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  transform: scaleX(1.05);
  transform-origin: left;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: #020617;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 12px;
  color: #334155;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: #334155;
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form-wrap {
  margin-top: 32px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #020617;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background: #f8fafc;
  color: #020617;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.form-field input[type="email"]:invalid:not(:focus):not(:placeholder-shown) + .field-error {
  display: block;
}

.form-submit {
  align-self: flex-start;
  padding: 12px 28px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, filter 0.15s;
}

.form-submit:hover {
  background: #38bdf8;
  filter: invert(0.05);
}

.form-success {
  display: none;
  padding: 24px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 4px;
  color: #065f46;
}

.form-success:target {
  display: block;
}

.contact-form-wrap:has(#form-sent:target) .contact-form {
  display: none;
}

.error-page {
  text-align: center;
  padding: 80px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 900;
  color: #0ea5e9;
  line-height: 1;
  letter-spacing: -0.05em;
  transform: scaleX(1.15);
}

.error-page p {
  color: #64748b;
  margin: 16px 0 32px;
}

.error-link {
  display: inline-block;
  padding: 12px 28px;
  background: #020617;
  color: #f8fafc;
  font-weight: 700;
  border-radius: 4px;
  transition: filter 0.2s;
}

.error-link:hover {
  filter: invert(1);
  color: #020617;
}

.dead-pixel {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #0ea5e9;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 900px) {
  .marquee-row {
    display: none;
  }

  .burger-label {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-row .burger-label .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-row .burger-label .burger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-row .burger-label .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header {
    position: sticky;
  }

  .nav-row {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #020617;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    z-index: 100;
  }

  .nav-toggle:checked ~ .nav-row .nav-links {
    display: flex;
  }

  .page-hero-stripe {
    position: static;
    width: 100%;
    height: 6px;
  }

  .page-hero-content {
    padding: 32px 16px;
    text-align: center;
  }

  .page-hero h1 {
    transform-origin: center;
  }

  .page-hero p {
    margin: 0 auto;
  }
}

@media (min-width: 901px) {
  .site-header .nav-row-wrapper {
    position: relative;
  }
}
