/* Voily — landing + blog (Vite public/, copied to dist root) */

:root {
  --bg: #0c0e12;
  --bg-elevated: #12151c;
  --bg-card: #161a24;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #3ee0b8;
  --accent-dim: rgba(62, 224, 184, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(62, 224, 184, 0.15), transparent),
    linear-gradient(180deg, #0c0e12 0%, #08090c 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #04120e;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.75);
  backdrop-filter: blur(12px);
}

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

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.nav {
  display: none;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

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

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #04120e;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(62, 224, 184, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

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

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.lead.tight {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: rgba(62, 224, 184, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(62, 224, 184, 0.35);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Privacy split */

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.stat-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */

.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(62, 224, 184, 0.25);
  background: linear-gradient(135deg, rgba(62, 224, 184, 0.08), rgba(12, 14, 18, 0.9));
}

@media (min-width: 720px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 48ch;
}

.cta-inner code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Blog */

.blog-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.blog-container {
  max-width: 720px;
}

.blog-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.blog-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.blog-breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.blog-breadcrumb-current {
  color: var(--text);
}

.blog-meta {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-list-head {
  margin-bottom: 2rem;
}

.blog-list-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.blog-list-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 52ch;
}

.blog-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.blog-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

.prose > h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 2.25rem 0 1rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

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

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  color: #5fe8c8;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin: 0;
}

.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Landing: deck style (Create presentation… / Presentation.tsx + Slide1) ── */

body.landing-pres {
  --bg: #0f0f11;
  --bg-elevated: #18181b;
  --bg-card: #18181b;
  --text: #f4f4f5;
  --text-body: #d4d4d8;
  --text-muted: #9ca3af;
  --accent: #5b6cff;
  --accent-deep: #3447cc;
  --accent-dim: rgba(91, 108, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(91, 108, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 40%, rgba(52, 71, 204, 0.14), transparent 50%),
    linear-gradient(180deg, #0f0f11 0%, #0a0a0c 100%);
}

body.landing-pres .skip-link:focus {
  background: linear-gradient(135deg, #6b7dff 0%, #3447cc 100%);
  color: #fff;
}

body.landing-pres .site-header {
  background: rgba(24, 24, 27, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

body.landing-pres .logo-pres {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.03em;
  color: #fff;
}

body.landing-pres .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b7dff 0%, #3447cc 100%);
  box-shadow: 0 4px 14px rgba(91, 108, 255, 0.35);
}

body.landing-pres .logo-pres:hover {
  color: #fff;
}

body.landing-pres .logo-pres:hover .logo-mark {
  filter: brightness(1.06);
}

body.landing-pres .nav a:hover {
  color: #fff;
}

body.landing-pres .btn-primary {
  background: linear-gradient(135deg, #6b7dff 0%, #3447cc 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(91, 108, 255, 0.35);
}

body.landing-pres .btn-primary:hover {
  filter: brightness(1.06);
}

body.landing-pres .btn--primary {
  background: #5b6cff;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border: none;
  gap: 0.5rem;
}

body.landing-pres .btn--primary:hover {
  filter: brightness(1.05);
}

body.landing-pres .btn--hero {
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 1.25rem;
  box-shadow: 0 0 0 0 rgba(91, 108, 255, 0.35);
}

body.landing-pres .btn--hero:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(91, 108, 255, 0.35);
}

body.landing-pres .icon-arrow {
  width: 1.125rem;
  height: 1.125rem;
}

.prose a.btn--primary {
  color: #fff;
  text-decoration: none;
}

.prose a.btn--primary:hover {
  color: #fff;
}

body.landing-pres .btn-secondary:hover {
  border-color: rgba(91, 108, 255, 0.45);
  background: rgba(91, 108, 255, 0.08);
}

body.landing-pres .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

body.landing-pres .hero-pres {
  position: relative;
  overflow: hidden;
}

body.landing-pres .hero-pres::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  pointer-events: none;
  background-image:
    linear-gradient(#5b6cff 1px, transparent 1px),
    linear-gradient(90deg, #5b6cff 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

body.landing-pres .hero-pres::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: #5b6cff;
  opacity: 0.14;
  filter: blur(80px);
}

body.landing-pres .hero-grid {
  position: relative;
  z-index: 1;
}

body.landing-pres .hero-pres > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.landing-pres .hero-grid.hero-single {
  width: 100%;
  max-width: 720px;
  flex: 0 1 auto;
}

@media (min-width: 900px) {
  body.landing-pres .hero-grid.hero-single {
    grid-template-columns: 1fr;
  }
}

body.landing-pres .hero-pres .hero-copy {
  text-align: center;
}

body.landing-pres .hero-pres .lead {
  margin-inline: auto;
}

body.landing-pres .hero-pres .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

body.landing-pres .eyebrow {
  color: #5b6cff;
  letter-spacing: 0.06em;
}

body.landing-pres .hero h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.landing-pres .section-alt {
  background: rgba(24, 24, 27, 0.65);
  border-block-color: rgba(255, 255, 255, 0.06);
}

body.landing-pres .card:hover {
  border-color: rgba(91, 108, 255, 0.35);
}

body.landing-pres .card-icon {
  color: #8b9bff;
}

body.landing-pres .step-num {
  background: rgba(91, 108, 255, 0.14);
  color: #c7cdff;
  border-color: rgba(91, 108, 255, 0.4);
}

body.landing-pres .checklist li::before {
  color: #5b6cff;
}

body.landing-pres .cta-inner {
  border-color: rgba(91, 108, 255, 0.35);
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.12), rgba(24, 24, 27, 0.95));
}

body.landing-pres .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Blog + article prose under deck theme */

body.landing-pres .blog-main {
  position: relative;
}

body.landing-pres .blog-list-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.landing-pres .blog-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.landing-pres .blog-card:hover {
  border-color: rgba(91, 108, 255, 0.35);
}

body.landing-pres .blog-breadcrumb a:hover,
body.landing-pres .blog-card-title a:hover {
  color: #c7cdff;
}

body.landing-pres .blog-card-link:hover {
  color: #c7cdff;
}

body.landing-pres .prose a:hover {
  color: #a5afff;
}

body.landing-pres .prose blockquote {
  border-left-color: #5b6cff;
  background: rgba(91, 108, 255, 0.1);
}

body.landing-pres .prose {
  color: var(--text-body);
}

body.landing-pres .prose > h1,
body.landing-pres .prose h2,
body.landing-pres .prose h3,
body.landing-pres .prose th {
  color: var(--text);
}

body.landing-pres .prose > h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
