/* SavirOS site styles – neutral, WorkOS-inspired */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-accent: #020617;
  --border-subtle: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --text-inverse: #f9fafb;
  --accent: #111827;
  --accent-soft: #1f2937;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.13);
}

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-accent {
  background: var(--bg-accent);
  color: var(--text-inverse);
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 12px;
}

.section-header h1 {
  font-size: 32px;
}

.section-header h2 {
  font-size: 28px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #f9fafb;
  font-weight: 600;
}

.logo-text {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 0;
}

.nav-links a.active {
  color: var(--text-main);
  font-weight: 500;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

/* Buttons */

.btn {
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: var(--accent);
  color: #f9fafb;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #020617;
  border-color: #020617;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.03);
}

.full-width {
  width: 100%;
}

/* Hero */

.hero {
  padding: 80px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.04);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-footnote {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* Hero card */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card {
  border-radius: 16px;
  background: #020617;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.dot-green {
  background: #22c55e;
}

.hero-card-body {
  padding: 16px 16px 18px;
}

.hero-card-text {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.hero-card-insight {
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
}

.hero-caption {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Grids and cards */

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  background: #ffffff;
}

.section-alt .card {
  background: #ffffff;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.bullet-list {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.bullet-list li + li {
  margin-top: 4px;
}

.numbered-list {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.numbered-list li + li {
  margin-top: 4px;
}

/* Timeline */

.timeline {
  border-left: 1px dashed rgba(15, 23, 42, 0.16);
  margin-left: 10px;
  padding-left: 18px;
  display: grid;
  gap: 18px;
}

.timeline-step {
  position: relative;
}

.timeline-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: absolute;
  left: -30px;
  top: 3px;
}

.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Early access */

.early-access-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.section-accent .section-header p,
.section-accent p {
  color: rgba(209, 213, 219, 0.9);
}

.ea-form {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 18px 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

label {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.92);
}

input[type="email"],
input[type="text"],
textarea {
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form-footnote {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

/* Demo output */

.demo-output {
  min-height: 160px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  padding: 12px;
  font-size: 14px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.footer-text {
  margin: 0;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Generic text muted helper */

.text-muted {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .early-access-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.nav-open,
  .nav-cta.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 20px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-cta.nav-open {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 60px;
  }
}
