:root {
  color-scheme: dark;
  --background: #101816;
  --surface: #192b25;
  --surface-raised: #20352e;
  --border: #354d44;
  --text: #f0f8f5;
  --muted: #b6ccc3;
  --accent: #76dfbd;
  --on-accent: #092821;
  --hero-dark: #072622;
  --hero-light: #0e4138;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.frame {
  width: min(1072px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-block: 24px;
  padding: 11px 14px 11px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.13rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand img { border-radius: 11px; }
.navigation, .legal-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 29px); }
.nav-link, .legal-links a { color: var(--muted); font-weight: 620; text-decoration: none; }
.nav-link:hover, .legal-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  text-align: center;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.3;
}

.button-outline { border-color: #527a68; color: var(--accent); }
.button-outline:hover { background: var(--surface-raised); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: #a4efd5; }

.hero {
  max-width: 790px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #375a4f;
  border-radius: 27px;
  background: var(--hero-dark);
}

.hero-banner { position: relative; }
.banner-image { width: 100%; height: auto; }
.banner-art { display: none; }

.hero-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero-actions, .app-access {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.hero-actions {
  padding: 22px clamp(22px, 4vw, 42px);
  border-top: 1px solid #34564b;
  background: #16352c;
}

.hero-actions p { max-width: 40ch; color: #d3e6dd; font-size: 1.03rem; }
.hero-actions .button, .app-links { flex-shrink: 0; }

.app-access p { color: var(--muted); }

.app-access {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.app-access h2 { margin-bottom: 4px; font-size: clamp(1.3rem, 2.8vw, 1.73rem); line-height: 1.25; letter-spacing: -0.03em; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 40px;
}

.legal-links { flex-wrap: wrap; }
.legal-links a { font-size: 0.94rem; }

@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .site-header { margin-block: 16px; }
  .nav-link { display: none; }
  .hero { border-radius: 23px; }

  .hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    min-height: clamp(232px, 42vw, 310px);
    background: linear-gradient(110deg, var(--hero-dark), var(--hero-light));
  }

  .hero-copy {
    position: relative;
    align-self: center;
    width: auto;
    height: auto;
    margin: 25px 0 25px 22px;
    overflow: visible;
    clip-path: none;
  }

  .hero-copy h1 { font-size: clamp(2rem, 7vw, 3.35rem); line-height: 1.05; letter-spacing: -0.04em; }
  .hero-copy .hero-subtitle { margin-block: 12px 4px; color: #9cebd1; font-size: clamp(1rem, 3.2vw, 1.26rem); font-weight: 750; line-height: 1.2; }
  .hero-copy p:last-child { color: #cee3db; }
  .banner-image { display: none; }

  .banner-art {
    display: block;
    background-image: url("/assets/annochat-banner.png");
    background-position: right center;
    background-size: auto 100%;
    mask-image: linear-gradient(to right, transparent, black 14%);
  }

}

@media (max-width: 500px) {
  .frame { width: calc(100% - 24px); }
  .site-header { padding: 9px 10px; border-radius: 17px; }
  .brand { gap: 8px; }
  .hero-actions, .app-access, .footer { flex-direction: column; align-items: flex-start; }
  .hero-actions { padding: 18px; gap: 14px; }
  .hero-actions .button, .app-links, .app-links .button { width: 100%; }
  .app-access { gap: 16px; }
  .footer { gap: 12px; padding-block: 29px; }
}
