/* Kaverk, LLC — kaverk.com */

:root {
  --bg: #08182a;
  --bg-card: #10253a;
  --ink: #edfaff;
  --muted: #a9c1d1;
  --line: #254560;
  --accent: #55bde8;
  --accent-hover: #82d7fa;
  --accent-soft: #16344b;
  --footer-bg: #061220;
  --footer-ink: #edfaff;
  --footer-muted: #91aabd;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 16px 40px rgba(0, 0, 0, 0.22);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --content: 70rem;
  --radius: 1.35rem;
  --focus: 0 0 0 3px #08182a, 0 0 0 6px #55bde8;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand:hover { color: var(--ink); }

.brand img, .brand svg {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.45rem;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--accent); }

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero .wrap {
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  right: -12rem;
  top: -14rem;
  background: radial-gradient(circle, rgba(85, 189, 232, 0.16), rgba(85, 189, 232, 0) 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 auto 1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-size: clamp(2.15rem, 6vw, 3.75rem);
  max-width: none;
  white-space: nowrap;
}

.lede {
  margin: 0 auto;
  max-width: none;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
  white-space: nowrap;
}

/* Apps */

.apps {
  padding: 1rem 0 4.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.app {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(23, 20, 31, 0.08), 0 8px 18px rgba(23, 20, 31, 0.08);
  background: #fff;
}

.app-top h2 {
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.2;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
}

.app > p {
  margin: 0;
  color: var(--ink);
}

.app ul {
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  list-style: none;
}

.app li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.35rem 0;
  color: var(--muted);
}

.app li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.store-badge img {
  height: 2.75rem;
  width: auto;
}

.site-link {
  font-weight: 550;
  font-size: 0.95rem;
  margin-left: 0.15rem;
}

/* About + contact */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  padding: 0 0 5rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.panel p { margin: 0 0 0.8rem; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }

.email {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 1.6rem 0 1.75rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.88rem;
}

.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }

.legal {
  max-width: 36rem;
}

/* 404 */

.deadend {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 6rem;
}

.deadend h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

.deadend p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 32rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
}

.home-link:hover { background: var(--accent-hover); color: #fff; }

@media (max-width: 800px) {
  .grid, .split { grid-template-columns: 1fr; }
  .hero h1,
  .lede { white-space: normal; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--content), calc(100% - 1.75rem)); }
  .site-header .wrap { min-height: 3.7rem; }
  .nav { gap: 0.85rem; }
  .store-badge img { height: 2.5rem; }
  .app-icon { width: 3.85rem; height: 3.85rem; border-radius: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
