:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #101216;
  --panel-2: #171a20;
  --text: #f4f6f8;
  --muted: #a5adb8;
  --line: rgba(255, 255, 255, 0.12);
  --green: #3ddc84;
  --blue: #63a4ff;
  --pink: #ff6f91;
  --amber: #ffc857;
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #050608 0%, #0b0e13 42%, #050608 100%);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(61, 220, 132, 0.78);
  outline-offset: 4px;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: #d8ffe9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 78px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0));
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(5, 6, 8, 0.72);
}

.nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: calc(100svh - 82px);
  padding: 36px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.4rem, 8.6vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: #c8ced7;
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.primary {
  background: var(--green);
  color: #041008;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 36px 0 0;
}

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stats dd {
  margin: 5px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.showcase {
  position: relative;
  min-height: clamp(560px, 56vw, 690px);
  isolation: isolate;
}

.showcase::before {
  position: absolute;
  inset: 7% 0 8% 7%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(61, 220, 132, 0.12), rgba(99, 164, 255, 0.08) 52%, rgba(255, 111, 145, 0.1)),
    rgba(255, 255, 255, 0.04);
  content: "";
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  background: #090a0e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.04);
}

.phone::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  pointer-events: none;
  content: "";
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.phone-main {
  top: 4%;
  left: 26%;
  z-index: 3;
  width: clamp(245px, 25vw, 330px);
  aspect-ratio: 702 / 1600;
}

.phone-side {
  width: clamp(170px, 18vw, 230px);
  aspect-ratio: 702 / 1600;
  opacity: 0.96;
}

.phone-side.top {
  top: 13%;
  left: 0;
}

.phone-side.bottom {
  right: 0;
  bottom: 3%;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 68px;
}

.strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d8dde4;
  background: rgba(255, 255, 255, 0.045);
}

.screenshots {
  padding: 12px 0 92px;
}

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

.screenshot-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-grid figure:hover {
  border-color: rgba(61, 220, 132, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(61, 220, 132, 0.15), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 702 / 1600;
  object-fit: contain;
  object-position: top center;
  background: #090a0e;
}

.screenshot-grid figcaption {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  color: #d8dde4;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article,
.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-grid article:hover,
.steps li:hover {
  border-color: rgba(61, 220, 132, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(61, 220, 132, 0.12), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.doc-links a:hover {
  border-color: rgba(61, 220, 132, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(61, 220, 132, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.feature-grid p,
.steps p,
.docs p,
.privacy-band p {
  color: var(--muted);
  line-height: 1.65;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 1.06fr);
  gap: 44px;
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(61, 220, 132, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(99, 164, 255, 0.15), transparent 42%),
    var(--panel);
}

.permission-list {
  display: grid;
  gap: 12px;
}

.permission-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.permission-list span {
  color: #dfffea;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84rem;
}

.setup,
.docs {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 900;
}

.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 36px;
  border-top: 1px solid var(--line);
}

.doc-links {
  display: grid;
  gap: 10px;
}

.doc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.doc-links a::after {
  content: "->";
  color: var(--green);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero,
  .split,
  .privacy-band,
  .docs {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .showcase {
    min-height: 610px;
  }

  .phone-main {
    left: 32%;
    width: clamp(230px, 38vw, 290px);
  }

  .phone-side {
    width: clamp(160px, 28vw, 210px);
  }

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

  .screenshot-grid {
    grid-auto-flow: column;
    grid-auto-columns: clamp(180px, 24vw, 220px);
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .screenshot-grid figure {
    scroll-snap-align: start;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    border-radius: var(--radius);
    padding: 8px;
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    border-radius: 6px;
    padding: 13px 14px;
  }

  .section {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.4rem);
  }

  .hero-stats,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .showcase {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    grid-template-areas:
      "main settings"
      "main media";
    align-items: center;
    gap: 12px;
    min-height: auto;
  }

  .showcase::before {
    inset: 24px 0;
  }

  .phone {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38), 0 0 0 6px rgba(255, 255, 255, 0.04);
  }

  .phone::after {
    inset: 8px;
    border-radius: 16px;
  }

  .phone-main {
    grid-area: main;
    justify-self: end;
    width: min(58vw, 245px);
  }

  .phone-side {
    width: min(32vw, 145px);
  }

  .phone-side.top {
    grid-area: settings;
  }

  .phone-side.bottom {
    grid-area: media;
  }

  .split,
  .screenshots,
  .setup,
  .docs {
    padding: 72px 0;
  }
}

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