/* Marketing site at www.stoksaha.com. Plain CSS, no build step; colors follow the app's brand palette. */

:root {
  color-scheme: light dark;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --line: #e4e4e7;
  --ink: #18181b;
  --muted: #55555e;
  --brand: #5546ea;
  --brand-hover: #4737cc;
  --brand-soft: #f1f0ff;
  --brand-ink: #4737cc;
  --glow: rgba(85, 70, 234, 0.14);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f22;
    --surface: #151935;
    --line: #262b4d;
    --ink: #ececf3;
    --muted: #a3a3b8;
    --brand-hover: #6b5cff;
    --brand-soft: #1f1a4d;
    --brand-ink: #aba3ff;
    --glow: rgba(122, 107, 255, 0.2);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

img,
svg {
  display: block;
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand-accent {
  color: var(--brand-ink);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--brand-hover);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.text-link,
.site-footer a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

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

/* Features */

.features {
  padding: 56px 0 72px;
  border-top: 1px solid var(--line);
}

.features h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

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

.feature h3 {
  margin: 16px 0 6px;
  font-size: 1.0625rem;
  line-height: 1.35;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}
