/* Telos — dark, minimal, moss.ag–inspired layout */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8e6;
  --text-muted: #8a8a88;
  --text-dim: #5c5c5a;
  --accent: #c4f542;
  --accent-soft: rgba(196, 245, 66, 0.12);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 3rem));
}

/* Fixed header offset for in-page links */
section[id] {
  scroll-margin-top: 6rem;
}

/* Floating glass top bar */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 0.5rem));
  margin-inline: auto;
  padding: 0.65rem 1.15rem;
  min-height: 3.25rem;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__bar {
    background: rgba(18, 18, 18, 0.92);
  }
}

.site-header .btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.site-header .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.logo:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.signup input:focus-visible {
  outline: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #0f0f0f;
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

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

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

/* Hero — extra top space for fixed floating header */

.hero {
  position: relative;
  padding: clamp(6.5rem, 14vw, 9.5rem) 0 clamp(5rem, 10vw, 7rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__gradient {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: min(70vh, 520px);
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(196, 245, 66, 0.09) 0%,
    transparent 55%
  );
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  color: var(--accent);
}

@supports (background-clip: text) {
  .hero__title-accent {
    background: linear-gradient(135deg, #d8ff6a 0%, var(--accent) 50%, #9fcc2e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section--tight {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-label--on-dark {
  color: rgba(255, 255, 255, 0.45);
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28rem;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-intro--short {
  margin-bottom: 1.75rem;
}

.section-body {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-body em {
  color: var(--text);
  font-style: italic;
}

.section-body--max {
  max-width: 44rem;
}

/* Steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.steps__item:last-child {
  border-bottom: none;
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.steps__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

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

/* Pills */

.pill-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* CTA */

.cta-block {
  padding: clamp(4rem, 12vw, 7rem) 0;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-top: 1px solid var(--border);
}

.cta-block__inner {
  text-align: center;
}

.cta-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.cta-block__text {
  margin: 0 auto 2rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.signup input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.signup input::placeholder {
  color: var(--text-dim);
}

.signup input:focus {
  border-color: rgba(196, 245, 66, 0.45);
}

.cta-block__fineprint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Footer */

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

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

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

.site-footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}
