/* SAMT marketing site — shares the app's own palette and restraint. */

:root {
  --bg: #090b0a;
  --surface: #151816;
  --surface-muted: #1c201e;
  --surface-raised: #1a1e1b;
  --hairline: #242926;
  --text-primary: #f4f6f5;
  --text-secondary: #8c938e;
  --text-tertiary: #666d68;
  --accent: #7dcb8c;
  --accent-strong: #96d9a3;
  --mint-glow: #c8f1d0;
  --forest: #1b4a31;
  --forest-deep: #0e2a1d;
  --cta-bg: #f4f6f5;
  --cta-fg: #0c0f0d;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --gutter: clamp(20px, 5vw, 64px);
  --max-width: 1160px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasis: cubic-bezier(0.3, 0, 0, 1.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Background field: the dotted-world-map language the app uses ───────── */

.dot-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dot-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(9, 11, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-standard);
}

.nav.scrolled {
  border-bottom-color: var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

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

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-standard);
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.3s var(--ease-standard);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta-bg);
  color: var(--cta-fg) !important;
  font-weight: 600 !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s var(--ease-standard);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: scale(1.04);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(244, 246, 245, 0.16);
}

.btn-ghost {
  background: var(--surface-muted);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
}

.btn-lg {
  padding: 18px 34px;
  font-size: 16px;
}

/* ── Reveal-on-scroll ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Chip / pill labels ───────────────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 32px;
  transition: transform 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 203, 140, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(125, 203, 140, 0.18), rgba(125, 203, 140, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(125, 203, 140, 0.2);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--hairline);
  padding: 56px var(--gutter) 32px;
  margin-top: 120px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s var(--ease-standard);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── Section spacing ──────────────────────────────────────────────────── */

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

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    background: var(--bg);
    gap: 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-standard), transform 0.25s var(--ease-standard), visibility 0.25s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  footer {
    margin-top: 72px;
  }
}
