/*
Visual language lifted from lazentis.com/nl: light theme, huge tight-tracked
Inter Light headline broken into short lines, a rounded-full badge pill, a
dark rounded-lg (not full-pill) primary CTA, and a "dissolve" dot-pattern
background faded out with a mask-image gradient. Recolored to Amelu's own
blue accent instead of Lazentis' orange.
*/

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: rgba(10, 10, 10, 0.08);
  --surface: #f7f7f8;
  --accent: #3860e8;
  --accent-foreground: #ffffff;
}

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

html {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, ul, p {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: clip;
}

p {
  margin-top: 1rem;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 24px;
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 768px) {
  .site-header { padding: 16px 40px; }
}
.site-header--scrolled {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img {
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}
.site-header--scrolled img {
  filter: none;
}
.site-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-header-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-header-links a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}
.site-header--scrolled .site-header-links a {
  color: var(--muted);
}
.site-header--scrolled .site-header-links a:hover {
  color: var(--foreground);
  background-color: rgba(10, 10, 10, 0.04);
}
.site-header .btn-dark {
  background-color: #fff;
  color: var(--foreground);
}
.site-header .btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.85);
}
.site-header--scrolled .btn-dark {
  background-color: var(--foreground);
  color: #fff;
}
.site-header--scrolled .btn-dark:hover {
  background-color: rgba(10, 10, 10, 0.85);
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background-color: var(--foreground);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-dark:hover {
  background-color: rgba(10, 10, 10, 0.85);
}
.btn-dark svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.btn-dark:hover svg {
  transform: translateX(2px);
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.btn-text:hover {
  color: var(--foreground);
}
.btn-text svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.btn-text:hover svg {
  transform: translateX(2px);
}

/* Hero */

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 200px;
  background:
    linear-gradient(180deg, rgba(10, 20, 50, 0.35) 0%, rgba(10, 20, 50, 0.15) 40%, rgba(10, 20, 50, 0.55) 100%),
    url("/793c5002-162e-46ae-9ed1-ce4f09e2e8e3.png") center center / cover no-repeat;
  color: #fff;
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}
.badge:hover {
  border-color: rgba(10, 10, 10, 0.2);
}
.badge-light {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.badge-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-light .badge-tag {
  background-color: #fff;
  color: var(--accent);
}
.badge svg {
  width: 14px;
  height: 14px;
  color: rgba(10, 10, 10, 0.5);
}
.badge-light svg {
  color: rgba(255, 255, 255, 0.7);
}
.badge-github-icon {
  width: 16px !important;
  height: 16px !important;
  color: inherit !important;
}

.hero-headline {
  margin-top: 24px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: 3rem;
}
@media (min-width: 640px) {
  .hero-headline { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-headline { font-size: 5.5rem; }
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background-color: #fff;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-light svg {
  width: 14px;
  height: 14px;
}
.btn-text-light {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.btn-text-light:hover {
  color: #fff;
}
.btn-text-light svg {
  width: 14px;
  height: 14px;
}

/* Dissolve edge - 1:1 port of ordnary-web's DissolveBanner.astro overlay mode */

.dissolve-edge {
  position: absolute;
  inset: 0;
  height: 100%;
  background: transparent;
  pointer-events: none;
}
.dissolve-edge__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  display: block;
  pointer-events: none;
}
.dissolve-edge--flip .dissolve-edge__canvas {
  top: auto;
  bottom: 0;
  transform: scaleY(-1);
}

/* Sections */

.section {
  padding: 96px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .section { padding: 120px 40px; }
}
.section-header {
  max-width: 40rem;
}
.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}
.section-title {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.75rem; }
}
.section-subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34rem;
}

/* Dashboard mockup */

.mockup {
  margin-top: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(10, 10, 10, 0.08);
}
.mockup img {
  width: 100%;
  display: block;
}

/* Feature tiles */

.features-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-tile {
  background-color: var(--background);
  padding: 32px;
}
.feature-tile h3 {
  font-size: 1.05rem;
  font-weight: 500;
}
.feature-tile p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* Open source */

.open-source {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}
.open-source-inner {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .open-source-inner {
    padding: 56px 40px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.open-source .section-title {
  font-size: 1.75rem;
}
.open-source .section-subtitle {
  margin-left: 0;
  max-width: 32rem;
}
.open-source .btn-dark {
  flex-shrink: 0;
}
.open-source .btn-dark svg {
  width: 16px;
  height: 16px;
}

/* EU sovereignty band */

.eu-band {
  border-bottom: 1px solid var(--border);
  background-color: #eef2ff;
}
.eu-band-inner {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .eu-band-inner {
    padding: 56px 40px;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
}
.eu-band-flag {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.12);
}
.eu-band .section-title {
  font-size: 1.75rem;
}
.eu-band .section-subtitle {
  margin-left: 0;
  max-width: 34rem;
}

/* Pricing */

.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px 28px;
  background-color: var(--background);
  text-align: left;
}
.pricing-card.highlighted {
  border-color: var(--foreground);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background-color: var(--foreground);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
}
.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
}
.pricing-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.pricing-period {
  color: var(--muted);
  font-size: 0.875rem;
}
.pricing-annual-note {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 0.8125rem;
}
.pricing-features {
  margin-top: 24px;
  padding: 0;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.pricing-features li svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent);
}

.pricing-features li.pricing-feature-expandable {
  display: block;
  padding: 0;
}
.pricing-feature-expandable summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}
.pricing-feature-expandable summary::-webkit-details-marker {
  display: none;
}
.pricing-feature-expandable summary svg:first-child {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent);
}
.pricing-feature-expandable summary span {
  flex: 1;
}
.pricing-feature-expandable summary svg:last-child {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--muted-light);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.pricing-feature-expandable[open] summary svg:last-child {
  transform: rotate(-90deg);
}
.pricing-feature-expandable p {
  margin: 0 0 12px 25px;
  color: var(--muted-light);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.pricing-card .btn-dark,
.pricing-card .btn-outline-dark {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-outline-dark:hover {
  background-color: var(--surface);
}

/* FAQ */

.faq-list {
  margin-top: 40px;
  max-width: 42rem;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted-light);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary svg {
  transform: rotate(-90deg);
}
.faq-item p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 38rem;
}

/* CTA band */

.cta-band {
  border-top: 1px solid var(--border);
  padding: 96px 24px;
  text-align: center;
}
.cta-band .section-title {
  margin: 0 auto;
}
.cta-band p {
  color: var(--muted);
  max-width: 28rem;
  margin: 16px auto 0;
}
.cta-band .btn-dark {
  margin-top: 32px;
  display: inline-flex;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.site-footer-columns {
  display: grid;
  gap: 2.5rem;
  padding: 64px 24px;
}
@media (min-width: 640px) {
  .site-footer-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer-columns { grid-template-columns: repeat(4, 1fr); padding-left: 40px; padding-right: 40px; }
}
.site-footer-heading {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.site-footer-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}
.site-footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer-links a:hover {
  color: var(--foreground);
}

.site-footer-bottom-border {
  border-top: 1px solid var(--border);
}
.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 40px 24px;
}
@media (min-width: 768px) {
  .site-footer-bottom {
    padding: 40px 40px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}
.site-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0;
  flex-shrink: 0;
}
.site-footer-legal-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8125rem;
}
.site-footer-legal-links a:hover {
  color: var(--foreground);
}
.site-footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.site-footer-bottom-brand img {
  height: 18px;
  opacity: 0.3;
  filter: grayscale(1);
}
.site-footer-made-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted-light);
  /* The amelu wordmark has a lot of empty space at the top of its own
     bounding box, so flexbox centering the two boxes still reads as this
     text sitting too high relative to the logo's visible glyphs. */
  margin-top: 8px;
}
.site-footer-made-in svg {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}
.site-footer-bottom-left p {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 34rem;
}

.site-footer-banner {
  position: relative;
  height: 220px;
  background: url("/793c5002-162e-46ae-9ed1-ce4f09e2e8e3.png") center 70% / cover no-repeat;
}

@media (max-width: 767px) {
  .site-header-links {
    display: none;
  }
}

/* Legal pages */

.legal-page-inner {
  max-width: 46rem;
  padding-top: 160px;
  padding-bottom: 96px;
}
.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.legal-updated {
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 0.875rem;
}
.legal-page h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 500;
}
.legal-page p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-page ul {
  margin-top: 14px;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-page li {
  list-style: disc;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}
