:root {
  color-scheme: light;
  --md-sys-color-primary: #006c4f;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #8cf8cb;
  --md-sys-color-on-primary-container: #002116;
  --md-sys-color-secondary: #4d6358;
  --md-sys-color-tertiary: #38656f;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-background: #fbfdf8;
  --md-sys-color-surface: #fbfdf8;
  --md-sys-color-surface-container: #eef3ec;
  --md-sys-color-surface-container-high: #e3e8e1;
  --md-sys-color-on-surface: #171d1a;
  --md-sys-color-on-surface-variant: #3f4944;
  --md-sys-color-outline: #6f7973;
  --md-sys-color-inverse-surface: #2c322f;
  --md-sys-color-inverse-on-surface: #eff1ec;
  --accent-coral: #ffb4a8;
  --accent-sky: #b9eaff;
  --shadow-1: 0 1px 3px rgba(19, 31, 27, 0.14), 0 1px 2px rgba(19, 31, 27, 0.22);
  --shadow-2: 0 12px 32px rgba(19, 31, 27, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1160px;
  font-family: Inter, Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.top-app-bar {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(251, 253, 248, 0.8);
  border-bottom: 1px solid rgba(111, 121, 115, 0.16);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  padding: 8px clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 760;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  color: var(--md-sys-color-on-primary);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 820;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  justify-content: center;
}

.nav-links a {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--md-sys-color-primary);
}

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

.language-switch {
  background: var(--md-sys-color-surface-container);
  border: 1px solid rgba(111, 121, 115, 0.35);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.language-button,
.header-link,
.button {
  -webkit-tap-highlight-color: transparent;
}

.language-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  min-height: 32px;
  min-width: 40px;
  padding: 4px 10px;
}

.language-button[aria-pressed="true"] {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.header-link {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--md-sys-color-primary);
}

.section-band {
  position: relative;
}

.container {
  margin: 0 auto;
  max-width: var(--container);
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
  width: 100%;
}

.hero {
  align-items: center;
  display: grid;
  min-height: 74svh;
  overflow: hidden;
  padding: clamp(68px, 9vh, 108px) 0 clamp(46px, 8vh, 76px);
}

.hero-background,
.hero-scrim {
  inset: 0;
  position: absolute;
}

.hero-background {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  z-index: -2;
}

.hero-scrim {
  background:
    radial-gradient(circle at 74% 34%, rgba(251, 253, 248, 0.28) 0%, rgba(251, 253, 248, 0) 30%),
    linear-gradient(90deg, rgba(5, 18, 14, 0.88) 0%, rgba(5, 18, 14, 0.72) 42%, rgba(5, 18, 14, 0.38) 100%),
    linear-gradient(0deg, rgba(5, 18, 14, 0.7) 0%, rgba(5, 18, 14, 0.08) 64%);
  z-index: -1;
}

.hero-content {
  display: block;
}

.hero-copy {
  color: #ffffff;
  max-width: min(820px, 100%);
}

.eyebrow {
  color: var(--md-sys-color-primary);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-sky);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.9rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
}

.hero h1 {
  overflow-wrap: normal;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4.7vw, 4rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 940px;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.45;
  margin: 18px 0 0;
  max-width: 680px;
}

.hero-buttons,
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-small {
  font-size: 0.92rem;
  min-height: 40px;
  padding: 8px 16px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-filled {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--shadow-1);
}

.button-tonal {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

.button-outlined {
  background: transparent;
  color: var(--md-sys-color-primary);
  outline: 1px solid var(--md-sys-color-outline);
}

.hero-facts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-facts div {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  padding: 8px 13px;
}

.hero-facts strong,
.hero-facts span {
  display: inline;
}

.hero-facts strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  margin-top: 2px;
}

.surface {
  background: var(--md-sys-color-surface);
}

.intro {
  padding: clamp(56px, 8vw, 100px) 0;
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr 1fr;
}

.section-lede {
  color: var(--md-sys-color-on-surface-variant);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  margin: 0;
}

.product-strip {
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  overflow: hidden;
  padding: clamp(58px, 8vw, 108px) 0;
}

.screenshot-grid {
  align-items: center;
  display: grid;
  gap: clamp(16px, 3vw, 34px);
  grid-template-columns: minmax(110px, 0.72fr) minmax(130px, 0.82fr) minmax(110px, 0.72fr) minmax(280px, 1.35fr);
}

.phone-shot {
  aspect-ratio: 589 / 1280;
  background: #0c1110;
  border-radius: 30px;
  box-shadow: var(--shadow-2);
  margin: 0;
  overflow: hidden;
  padding: 8px;
}

.phone-shot.raised {
  transform: translateY(-28px);
}

.phone-shot img {
  border-radius: 23px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-copy p:not(.eyebrow) {
  color: rgba(239, 241, 236, 0.78);
  font-size: 1.08rem;
}

.product-copy h2 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.16;
  max-width: 520px;
}

.product-copy .eyebrow {
  color: var(--accent-coral);
}

#features,
#hosting {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.feature-grid,
.hosting-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.hosting-item {
  background: var(--md-sys-color-surface-container);
  border: 1px solid rgba(111, 121, 115, 0.24);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.feature-card p,
.hosting-item p {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 0;
}

.feature-icon {
  align-items: center;
  background: var(--accent-sky);
  border-radius: 50%;
  color: #003640;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 820;
  height: 40px;
  justify-content: center;
  margin-bottom: 22px;
  width: 40px;
}

.projects {
  background: #f9f4e8;
  padding: clamp(64px, 8vw, 112px) 0;
}

.split-layout,
.open-grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: 0.9fr 1.1fr;
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.check-list li {
  align-items: start;
  color: var(--md-sys-color-on-surface-variant);
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr;
}

.check-list li::before {
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  color: var(--md-sys-color-on-primary);
  content: "✓";
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 22px;
  margin-top: 2px;
  width: 22px;
}

.desktop-shot {
  background: #ffffff;
  border: 1px solid rgba(111, 121, 115, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.desktop-shot img {
  border-radius: 20px;
  height: auto;
  width: 100%;
}

.hosting-grid {
  grid-template-columns: repeat(3, 1fr);
}

.open-source {
  background: var(--md-sys-color-primary-container);
  padding: clamp(64px, 8vw, 106px) 0;
}

.open-grid {
  grid-template-columns: 1fr auto;
}

.cta-panel {
  align-content: center;
  background: rgba(251, 253, 248, 0.62);
  border: 1px solid rgba(0, 108, 79, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  flex-direction: column;
  margin: 0;
  min-width: min(360px, 100%);
  padding: 26px;
}

.cta-panel .button {
  width: 100%;
}

.site-footer {
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  padding: 28px 0;
}

.footer-grid {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
}

.footer-grid a,
.legal-content a {
  color: var(--accent-sky);
  font-weight: 720;
  text-decoration: none;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: end;
}

.legal-page {
  background: var(--md-sys-color-surface);
  min-height: 72svh;
}

.legal-content {
  max-width: 860px;
  padding-bottom: clamp(64px, 8vw, 112px);
  padding-top: clamp(54px, 8vw, 94px);
}

.legal-content h1 {
  color: var(--md-sys-color-on-surface);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 34px;
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin-top: 42px;
}

.legal-content h3 {
  color: var(--md-sys-color-on-surface);
  font-size: 1.18rem;
  margin-top: 28px;
}

.legal-content h4 {
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  margin: 22px 0 0;
}

.legal-content p,
.legal-content li {
  color: var(--md-sys-color-on-surface-variant);
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-content a {
  color: var(--md-sys-color-primary);
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .top-app-bar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-content,
  .intro-grid,
  .split-layout,
  .open-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-copy {
    grid-column: 1 / -1;
  }

  .feature-grid,
  .hosting-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .top-app-bar {
    min-height: 64px;
    padding: 8px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 70svh;
    padding-bottom: 28px;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.25rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.78rem, 9vw, 2.4rem);
  }

  .hero-content {
    align-items: stretch;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div {
    border-radius: 16px;
    padding: 12px;
  }

  .hero-facts strong {
    font-size: 0.92rem;
  }

  .hero-facts span {
    font-size: 0.78rem;
  }

  .hero-buttons,
  .cta-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid .phone-shot:nth-child(3) {
    display: none;
  }

  .phone-shot.raised {
    transform: none;
  }

  .feature-grid,
  .hosting-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --md-sys-color-background: #101512;
    --md-sys-color-surface: #101512;
    --md-sys-color-surface-container: #1c211e;
    --md-sys-color-surface-container-high: #272d29;
    --md-sys-color-on-surface: #e0e4de;
    --md-sys-color-on-surface-variant: #c0cac3;
    --md-sys-color-outline: #8a948e;
  }

  .top-app-bar {
    background: rgba(16, 21, 18, 0.86);
  }

  .projects {
    background: #211f18;
  }

  .desktop-shot,
  .feature-card,
  .hosting-item {
    border-color: rgba(192, 202, 195, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
