/* FocusFlow — premium dark SaaS */

:root {
  --bg-deep: #050608;
  --bg-elevated: #0c0e14;
  --bg-card: #101218;
  --bg-surface: var(--bg-card);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-color: var(--border-strong);
  --text-primary: #f5f6f8;
  --text-muted: rgba(245, 246, 248, 0.62);
  --text-faint: rgba(245, 246, 248, 0.38);
  --accent: #2ecc71;
  --accent-dim: rgba(46, 204, 113, 0.12);
  --accent-glow: rgba(46, 204, 113, 0.45);
  --gold-light: #f0d78c;
  --gold-mid: #c9a227;
  --gold-dark: #8b6914;
  --gold-muted: rgba(201, 162, 39, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.85s;
  --shadow-card: 0 0 0 1px var(--border-subtle), 0 32px 64px rgba(0, 0, 0, 0.55);
}

*,
*::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);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #050608;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 12vw, 8rem);
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.nav__left {
  justify-self: start;
}

.nav__center {
  justify-self: center;
}

.nav__right {
  justify-self: end;
}

.logo {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.logo:hover {
  color: var(--accent);
  text-shadow: 0 0 32px rgba(46, 204, 113, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .nav__left {
    grid-column: 1;
    grid-row: 1;
  }

  .nav__right {
    grid-column: 2;
    grid-row: 1;
  }

  .nav__center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border-subtle);
    margin: 0 -24px;
    padding-inline: 24px;
    padding-bottom: 0.5rem;
  }

  .nav-links {
    justify-content: center;
    gap: 2rem;
  }

  .btn-nav {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-nav {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-xl {
  padding: 1rem 1.65rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #031206;
  box-shadow:
    0 0 0 1px rgba(46, 204, 113, 0.35),
    0 12px 40px rgba(46, 204, 113, 0.22);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(46, 204, 113, 0.55),
    0 16px 48px rgba(46, 204, 113, 0.32);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: rgba(46, 204, 113, 0.35);
  box-shadow: 0 0 32px rgba(46, 204, 113, 0.1);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: rgba(46, 204, 113, 0.4);
  background: var(--accent-dim);
  box-shadow: 0 0 36px rgba(46, 204, 113, 0.12);
}

.btn-block {
  width: 100%;
  margin-top: auto;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(5.5rem, 14vw, 9.5rem);
  padding-bottom: clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(46, 204, 113, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(46, 204, 113, 0.06), transparent),
    radial-gradient(ellipse 45% 35% at 10% 60%, rgba(80, 120, 200, 0.05), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-size: clamp(2.75rem, 7.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
  background: linear-gradient(180deg, #fff 0%, rgba(245, 246, 248, 0.88) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero-title {
    color: var(--text-primary);
    background: none;
  }
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  font-weight: 450;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
}

.hero-dashboard-wrap {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-dashboard-placeholder {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(16, 18, 24, 0.95) 0%, rgba(8, 9, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(46, 204, 113, 0.12),
    0 0 80px rgba(46, 204, 113, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-dashboard-placeholder::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(46, 204, 113, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.hero-dashboard-placeholder__label {
  position: relative;
  z-index: 1;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

/* Features deep-dive */
.features-deep__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.features-deep__kicker,
.section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.features-deep__title,
.section-head__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.features-deep__lede,
.section-head__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-inline: auto;
}

.zigzag {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vw, 6.5rem);
}

.zigzag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.zigzag-row--reverse .zigzag-row__copy {
  order: 2;
}

.zigzag-row--reverse .zigzag-row__media {
  order: 1;
}

@media (max-width: 900px) {
  .zigzag-row,
  .zigzag-row--reverse {
    grid-template-columns: 1fr;
  }

  .zigzag-row--reverse .zigzag-row__copy,
  .zigzag-row--reverse .zigzag-row__media {
    order: unset;
  }

  .zigzag-row__media {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
}

.zigzag-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.zigzag-heading {
  font-size: clamp(1.65rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.zigzag-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 42ch;
}

.zigzag-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.zigzag-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.zigzag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.zigzag-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 24, 32, 1) 0%, rgba(12, 14, 20, 1) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.media-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* Trust */
.trust-section {
  padding-block: clamp(3rem, 8vw, 4.5rem);
}

.trust-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
  border-color: rgba(46, 204, 113, 0.22);
  box-shadow: var(--shadow-card), 0 0 48px rgba(46, 204, 113, 0.06);
}

.trust-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
}

.trust-copy h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.trust-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 65ch;
  line-height: 1.65;
}

@media (max-width: 560px) {
  .trust-card {
    flex-direction: column;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin-inline: auto;
  align-items: stretch;
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card--annual:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.price-card--lifetime {
  background: linear-gradient(
    165deg,
    rgba(201, 162, 39, 0.14) 0%,
    rgba(16, 18, 24, 0.97) 42%,
    #0a0b10 100%
  );
  border: 1px solid rgba(240, 215, 140, 0.35);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(201, 162, 39, 0.12),
    inset 0 1px 0 rgba(255, 248, 220, 0.08);
}

.price-card--lifetime:hover {
  box-shadow:
    0 0 0 1px rgba(240, 215, 140, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(201, 162, 39, 0.18),
    inset 0 1px 0 rgba(255, 248, 220, 0.1);
}

.price-card__ribbon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(139, 105, 20, 0.25));
  border: 1px solid rgba(240, 215, 140, 0.4);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.2);
}

.price-card__title {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.price-card__tagline {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-card__price {
  margin: 0 0 1.35rem;
}

.price-card__amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-card__amount--gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .price-card__amount--gold {
    color: var(--gold-light);
    background: none;
  }
}

.price-card__period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-card__list {
  margin: 0 0 1.5rem;
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price-card--lifetime .price-card__list li::before {
  background: var(--gold-mid);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.pricing-microcopy {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0 2.5rem;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Legal pages (privacy, terms) */
.legal-main {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px 4rem;
}

.legal-prose h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.legal-prose .legal-updated {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin: 0 0 2.5rem;
}

.legal-prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-prose li {
  margin-bottom: 0.5rem;
}

.legal-prose li::marker {
  color: var(--text-faint);
}

.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: var(--text-primary);
}

.legal-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 204, 113, 0.25);
  background: rgba(46, 204, 113, 0.06);
}

.legal-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-callout strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .legal-main {
    margin: 72px auto;
  }
}
