:root {
  color-scheme: light dark;
  --bg: #f6f7f7;
  --surface: #ffffff;
  --raised: #eef1f1;
  --line: #e1e5e6;
  --fg: #121718;
  --muted: #5b6769;
  --accent: #0f766e;
  --accent-hover: #0d5f59;
  --accent-fg: #ffffff;
  --accent-soft: #e0f4f1;
  --shadow: 0 20px 50px -20px rgb(15 40 40 / 0.35);
  --font:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f10;
    --surface: #131819;
    --raised: #1b2224;
    --line: #242d2f;
    --fg: #e6ecec;
    --muted: #93a0a2;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-fg: #04201d;
    --accent-soft: #0f2e2b;
    --shadow: 0 20px 60px -20px rgb(0 0 0 / 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.nav nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
}
.nav nav a:not(.btn):hover {
  color: var(--fg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 18px;
}
.brand-sm {
  font-size: 15px;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--raised);
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(
      60% 50% at 85% 20%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent
    ),
    radial-gradient(
      40% 40% at 0% 100%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent
    );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
}
.lede {
  margin: 20px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fineprint {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Illustrative app window (decorative) */
.window {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.window-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.window-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}
.window-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.desk {
  position: relative;
  height: 170px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e5f73, #14b8a6);
  overflow: hidden;
}
.desk-app {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 58%;
  height: 110px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.92);
}
.desk-app-bar {
  height: 16px;
  border-radius: 6px 6px 0 0;
  background: rgb(0 0 0 / 0.08);
}
.desk-lines {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.desk-lines i {
  height: 6px;
  border-radius: 3px;
  background: rgb(0 0 0 / 0.12);
}
.desk-lines i.short {
  width: 60%;
}
.desk-audio {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.desk-audio b {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: #5eead4;
  animation: eq 1s ease-in-out infinite;
}
.desk-audio b:nth-child(2) {
  animation-delay: -0.2s;
}
.desk-audio b:nth-child(3) {
  animation-delay: -0.5s;
}
.desk-audio b:nth-child(4) {
  animation-delay: -0.7s;
}
.desk-audio b:nth-child(5) {
  animation-delay: -0.35s;
  margin-right: 6px;
}
@keyframes eq {
  50% {
    transform: scaleY(0.35);
  }
}
.term {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #0c0f10;
  color: #d6dede;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  white-space: pre;
}
.term .p {
  color: #2dd4bf;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: text-bottom;
  background: #2dd4bf;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Features */
.features {
  padding: 80px 0;
}
.features h2,
.pricing h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.feature svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: var(--accent-soft);
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-top: 16px;
  font-size: 1.05rem;
}
.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.security {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin-top: 56px;
  padding: 32px;
  border-radius: 16px;
  background: var(--raised);
}
.security h2 {
  text-align: left;
  font-size: 1.6rem;
}
.security p {
  margin: 8px 0 0;
  color: var(--muted);
}
.security ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.security li,
.plan li {
  position: relative;
  padding-left: 26px;
}
.security li::before,
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2L11.5 6' fill='none' stroke='%2314b8a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* Pricing */
.pricing {
  padding: 24px 0 96px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.plan-pro {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.price {
  margin: 10px 0 18px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-pro .price {
  font-size: 1.4rem;
  color: var(--muted);
  padding: 8px 0 4px;
}
.plan ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  flex: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer-row .brand {
  color: var(--fg);
}
.footer-row nav {
  display: flex;
  gap: 20px;
}
.footer-row nav a {
  text-decoration: none;
}
.footer-row nav a:hover {
  color: var(--fg);
}
.footer-row p {
  margin: 0 0 0 auto;
}

/* 404 */
.notfound {
  min-height: calc(100vh - 64px - 90px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.notfound p {
  color: var(--muted);
  margin: 12px 0 28px;
}

@media (max-width: 960px) {
  .hero-grid,
  .security {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }
  .nav nav a:not(.btn):not([href*='login']) {
    display: none;
  }
  .nav nav {
    gap: 14px;
  }
  .feature-grid,
  .security ul,
  .plans {
    grid-template-columns: 1fr;
  }
  .security {
    padding: 24px;
  }
  .footer-row p {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .desk-audio b,
  .cursor {
    animation: none;
  }
}
