/* Vagudukai — brand-aligned site styles
 * Source palette: macos-voice-signal-logo-11.svg
 * Background #15151A, wordmark cream #FAF4DE, accent peach #F2B265,
 * deeper peach #D08230, lavender low end #9C82C7.
 */

:root {
  --bg: #15151A;
  --bg-elev: #1c1c22;
  --surface: #1f1f26;
  --surface-2: #2a2a32;
  --border: #2e2e38;
  --border-strong: #3f3f4c;

  --text: #FAF4DE;
  --text-muted: #b0aa95;
  --text-faint: #76746a;

  --accent: #F2B265;
  --accent-hover: #F8C68C;
  --accent-deep: #D08230;
  --accent-soft: rgba(242, 178, 101, 0.12);
  --accent-soft-strong: rgba(242, 178, 101, 0.22);

  --lavender: #A993CF;
  --lavender-soft: rgba(169, 147, 207, 0.12);
  --success: #8FD89E;

  --shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

::selection {
  background: var(--accent-soft-strong);
  color: var(--text);
}

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

/* ------ Nav ------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.005em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.wordmark .vd {
  color: var(--text);
  letter-spacing: -0.01em;
}

.wordmark .ai {
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 178, 101, 0.28);
}

/* ------ Layout ------ */
.page {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
  position: relative;
}

section:first-of-type {
  padding-top: 56px;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 650;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

p {
  color: var(--text-muted);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title p {
  max-width: 580px;
  margin: 12px auto 0;
  font-size: 17.5px;
}

/* ------ Hero ------ */
.hero {
  padding-top: 88px;
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 640px 320px at 30% 0%, var(--lavender-soft), transparent 65%),
    radial-gradient(ellipse 780px 380px at 70% 5%, var(--accent-soft-strong), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-logo {
  width: 124px;
  height: 124px;
  margin: 0 auto 36px;
  display: block;
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(208, 130, 48, 0.28), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero h1 .ai {
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--text-muted);
  margin-top: 22px;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg) !important;
  box-shadow: 0 6px 18px rgba(242, 178, 101, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(242, 178, 101, 0.42);
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero-sub .dot {
  margin: 0 8px;
  color: var(--text-faint);
}

/* ------ How it works ------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: left;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
}

.step .kbd {
  margin-top: 14px;
}

/* Keycap pill, mimicking the in-app Keycap.swift look */
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: -apple-system, BlinkMacSystemFont, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  letter-spacing: 0;
}

/* ------ Features grid ------ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature {
  padding: 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.feature:hover {
  border-color: var(--accent);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  font-size: 15px;
}

/* ------ Pricing ------ */
.pricing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 320px 180px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.pricing > * {
  position: relative;
}

.price-tag {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin: 24px 0 6px;
}

.price-tag .cents {
  font-size: 28px;
  vertical-align: super;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.price-sub {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 30px;
}

.pricing .btn-primary {
  width: 100%;
  justify-content: center;
}

.pricing-includes {
  margin-top: 30px;
  text-align: left;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.pricing-includes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  list-style: none;
}

.pricing-includes .check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ------ Install note ------ */
.install-note {
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}

.install-note strong {
  color: var(--text);
  font-weight: 600;
}

.install-note code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ------ Docs / Privacy / Terms layout ------ */
.doc-page {
  padding-top: 56px;
}

.doc-page h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 8px;
}

.doc-page .meta {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc-page h2 {
  font-size: 22px;
  font-weight: 650;
  margin: 44px 0 12px;
  color: var(--text);
}

.doc-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}

.doc-page p,
.doc-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.doc-page ul,
.doc-page ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.doc-page li {
  margin-bottom: 6px;
}

.doc-page strong {
  color: var(--text);
  font-weight: 600;
}

.doc-page code {
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  border: 1px solid var(--border);
}

.doc-page pre {
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  color: var(--text);
}

.doc-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 18px;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text);
}

.toc a {
  color: var(--text);
}

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

/* ------ Footer ------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  margin-top: auto;
  background: var(--bg-elev);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ------ Responsive ------ */
@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 20px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 28px;
  }
  .pricing {
    padding: 40px 24px;
  }
  .price-tag {
    font-size: 52px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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