/* ===================================================================
   Taskmancer — taskmancer.com
   Design System: Momus Dev Glass (dark glassmorphism, emerald accent)
   Font: Inter + JetBrains Mono
   =================================================================== */

/* --- Reset & Tokens --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --slate-950: #0a0f1a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;

  --orange-500: #f97316;
  --orange-400: #fb923c;

  --bg-primary: var(--slate-950);
  --bg-secondary: var(--slate-900);
  --bg-elevated: var(--slate-800);
  --text-primary: var(--slate-100);
  --text-secondary: var(--slate-400);
  --text-muted: var(--slate-700);
  --accent: var(--emerald-500);
  --accent-hover: var(--emerald-400);
  --accent-glow: var(--emerald-300);
  --border: var(--slate-800);

  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --section-gap: 5rem;
  --content-max: 72rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background-color: var(--emerald-500);
  color: var(--slate-950);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

strong {
  color: var(--text-primary);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-gap) 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--slate-950);
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Scroll Reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
  height: 1.75rem;
  width: auto;
}
.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--section-gap) + 4rem);
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 52rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--slate-950);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
  color: var(--slate-950);
}
.cta-btn svg {
  width: 1rem;
  height: 1rem;
}

/* --- Stats Bar --- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding: 0 0 var(--section-gap);
}

.stats__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 3rem;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-400);
}

.stats__label {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stats__divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header__desc {
  font-size: 1.125rem;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 100%;
}

/* --- Glass Cards --- */
.card {
  border-radius: 16px;
  padding: 2rem;
}

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card--glass:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card--glass-accent {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.05);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-400);
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}

.card__text {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
}

/* --- Feature Grid --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.features__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Methodology Grid --- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.method-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.method-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.method-card h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Presets Callout --- */
.presets-callout {
  margin-top: 2.5rem;
}

.presets-callout__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--emerald-400);
  margin-bottom: 0.625rem;
}

.presets-callout__text {
  font-size: 0.9375rem;
  color: var(--slate-300);
  line-height: 1.7;
  max-width: 100%;
}

/* --- Governance / Tenets --- */
.governance {
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tenet {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.tenet:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.tenet-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.tenet h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.tenet p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pricing__card {
  padding: 2.5rem;
}

.pricing__price {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.pricing__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-400);
  margin-top: 0.5rem;
}

.pricing__amount {
  font-size: 3.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing__cents {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-400);
  margin-top: 0.5rem;
}

.pricing__model {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-300);
}

.pricing__features svg {
  flex-shrink: 0;
  color: var(--emerald-400);
}

.pricing__sidebar {
  padding-top: 1rem;
}

.pricing__sidebar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.pricing__comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing__comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
}

.pricing__comp-row--them {
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.pricing__comp-row--us {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing__comp-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-300);
}

.pricing__comp-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.pricing__comp-row--them .pricing__comp-value {
  color: var(--orange-400);
}

.pricing__comp-row--us .pricing__comp-value {
  color: var(--emerald-400);
}

.pricing__comp-value small {
  font-weight: 500;
  opacity: 0.7;
}

.pricing__sidebar-text {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- Platforms --- */
.platforms-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 140px;
  transition: border-color 0.2s ease;
}
.platform-badge:hover {
  border-color: var(--accent);
}

.platform-badge__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.platform-badge__detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  height: 3rem;
  width: auto;
  opacity: 0.7;
}

.ownership-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-byline {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer-byline a {
  color: var(--text-secondary);
}
.footer-byline a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Meet the Developer --- */
.developer {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.developer__card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
}

.developer__portrait-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  margin-bottom: 1.5rem;
}

.developer__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.developer__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.developer__quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--slate-400);
  line-height: 1.8;
  max-width: 100%;
  margin-bottom: 2rem;
}

.developer__callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.04);
  margin-bottom: 2rem;
  width: 100%;
}

.developer__callout svg {
  flex-shrink: 0;
  color: var(--emerald-400);
  margin-top: 0.125rem;
}

.developer__callout-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-400);
  margin-bottom: 0.375rem;
}

.developer__callout-text {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--slate-400);
  line-height: 1.6;
}

/* --- Trust Checklist --- */
.trust-checklist {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--bg-secondary);
  text-align: left;
  margin-bottom: 2rem;
}

.trust-checklist__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-700);
}

.trust-checklist__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.trust-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-300);
  font-weight: 500;
}

.trust-checklist__item--done {
  color: var(--slate-200);
  text-decoration: line-through;
  text-decoration-color: var(--emerald-500);
  text-decoration-thickness: 2px;
}

.trust-checklist__item svg {
  flex-shrink: 0;
  color: var(--emerald-400);
}

.trust-checklist__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-700);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-checklist__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.developer__sig {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
  }

  nav ul {
    gap: 1.25rem;
  }
  nav a {
    font-size: 0.8125rem;
  }

  .features__grid,
  .features__grid--2 {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .tenets {
    grid-template-columns: 1fr;
  }

  .stats__inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .stats__divider {
    width: 60px;
    height: 1px;
  }

  .platforms {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero {
    padding-top: calc(var(--section-gap) + 6rem);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card--glass,
  .card--glass-accent,
  .stats__inner,
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-elevated);
    border-color: var(--slate-700);
  }
}
