:root {
  --bg: #050914;
  --bg-alt: #081220;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #aebcd0;
  --muted-strong: #cfdae8;
  --accent: #2f8cff;
  --accent-strong: #64b5ff;
  --accent-dark: #0d3f86;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(47, 140, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #050914 0%, #07111f 46%, #050914 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 9, 20, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
  padding: 4px;
  object-fit: contain;
  border: 1px solid rgba(100, 181, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(47, 140, 255, 0.1);
  box-shadow: 0 14px 30px rgba(47, 140, 255, 0.2);
}

.brand-text {
  overflow-wrap: anywhere;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: clamp(560px, 78svh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.96) 0%, rgba(5, 9, 20, 0.76) 42%, rgba(5, 9, 20, 0.28) 100%),
    linear-gradient(180deg, transparent 70%, rgba(5, 9, 20, 0.95) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/wittchow-hero.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.82;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-subtitle {
  margin: 1.1rem 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #76c5ff);
  color: #04101f;
  box-shadow: 0 16px 40px rgba(47, 140, 255, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.policy-content a:hover,
.policy-content a:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
  outline: 2px solid rgba(100, 181, 255, 0.7);
  outline-offset: 3px;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(8, 18, 32, 0.72);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.card,
.feature-panel,
.contact-card,
.policy-content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.card {
  min-height: 245px;
  padding: clamp(1.25rem, 3vw, 1.7rem);
}

.card h2,
.card h3 {
  margin-top: 1rem;
}

.card p,
.prose p,
.lead,
.feature-panel,
.contact-list,
.policy-content p {
  color: var(--muted-strong);
}

.card p {
  margin: 1rem 0 0;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(47, 140, 255, 0.13);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.lead {
  margin: 0;
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 1.3rem;
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

.feature-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.screenshot-strip.compact {
  max-width: 620px;
  justify-self: end;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.phone-shot figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.app-screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  width: min(100%, 720px);
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
}

.app-screenshot-gallery.tiny {
  width: min(100%, 360px);
  gap: 0.55rem;
}

.app-screenshot-gallery.tiny .app-screenshot {
  border-radius: 12px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(255, 255, 255, 0.025);
}

.app-screenshot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 181, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    #07111f;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(255, 255, 255, 0.03);
}

.app-screenshot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-screenshot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.metric span {
  color: var(--muted);
}

.metric strong {
  color: var(--text);
  font-size: 1.2rem;
}

.cta-section {
  padding-block: clamp(4rem, 8vw, 6rem);
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.18), rgba(255, 255, 255, 0.04)),
    #07111f;
}

.cta-content {
  max-width: 820px;
}

.cta-content p:last-child {
  color: var(--muted-strong);
  font-size: 1.13rem;
}

.cta-content a {
  color: var(--text);
  font-weight: 850;
}

.page-hero {
  padding-block: clamp(5.5rem, 12vw, 9rem) clamp(3.5rem, 7vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero .lead {
  margin-top: 1.2rem;
}

.updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.contact-list div {
  display: grid;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
}

.contact-list a {
  color: var(--accent-strong);
  text-decoration: none;
}

.policy-content {
  max-width: 900px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.policy-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content a {
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: #030711;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-content p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1rem;
}

.footer-links a {
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 650;
}

@media (max-width: 920px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5, 9, 20, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.82) 100%),
      linear-gradient(180deg, transparent 70%, rgba(5, 9, 20, 0.95) 100%);
  }

  .hero-media {
    background-position: center;
    opacity: 0.42;
  }

  .card-grid.three,
  .split,
  .screenshot-strip {
    grid-template-columns: 1fr;
  }

  .app-screenshot-gallery {
    width: min(100%, 520px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-screenshot-gallery.tiny {
    width: min(100%, 340px);
  }

  .screenshot-strip.compact {
    max-width: none;
    justify-self: stretch;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 1rem, var(--container));
  }

  .nav {
    min-height: 64px;
  }

  .nav-menu {
    left: 0.5rem;
    right: 0.5rem;
    top: calc(100% + 0.35rem);
  }

  .nav-menu a {
    padding: 0.8rem 0.85rem;
    font-size: 0.96rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.9) 62%, rgba(5, 9, 20, 0.72) 100%),
      linear-gradient(180deg, transparent 65%, rgba(5, 9, 20, 0.96) 100%);
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-content {
    padding-block: 3.75rem;
  }

  .hero-subtitle {
    margin-top: 0.9rem;
    font-size: 1.12rem;
  }

  .hero-copy {
    margin-top: 0.9rem;
    font-size: 1rem;
  }

  .section {
    padding-block: 3rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .page-hero {
    padding-block: 4rem 3rem;
  }

  .page-hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .lead {
    font-size: 1.04rem;
  }

  .card {
    min-height: auto;
    padding: 1.1rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
  }

  .feature-panel {
    padding: 0.75rem;
  }

  .metric {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 0.9rem;
  }

  .metric strong {
    font-size: 1.08rem;
  }

  .app-screenshot-gallery {
    gap: 0.5rem;
    width: min(100%, 340px);
  }

  .app-screenshot-gallery.tiny {
    width: min(100%, 300px);
  }

  .app-screenshot {
    border-radius: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 2.8rem);
  }

  .app-screenshot-gallery {
    width: min(100%, 300px);
  }

  .app-screenshot-gallery.tiny {
    width: min(100%, 270px);
  }
}
