:root {
  --bg: #0f172a;
  --bg-soft: #101936;
  --surface: #111827;
  --primary: #6366f1;
  --primary-strong: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #22d3ee;
  --text: #f8fafc;
  --text-soft: #cbd5f5;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 15px 45px rgba(15, 23, 42, 0.25);
  --shadow-lg: 0 25px 80px rgba(15, 23, 42, 0.35);
  --gradient-1: rgba(79, 84, 255, 0.35);
  --gradient-2: rgba(34, 211, 238, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top right, var(--gradient-1), transparent 55%),
    radial-gradient(circle at bottom left, var(--gradient-2), transparent 45%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a:hover {
  opacity: 0.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn--outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(15, 23, 42, 0.45);
}

.btn--outline:hover {
  background: rgba(99, 102, 241, 0.15);
}

.hero {
  padding: 32px clamp(24px, 5vw, 80px) 120px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.logo__icon {
  display: inline-flex;
  font-size: 1.4rem;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.15rem;
}

.nav__cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 4px;
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 8vw, 80px);
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 18px 0;
}

.hero p {
  color: var(--text-soft);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 24px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-light);
}

.hero__mockup {
  display: grid;
  gap: 22px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.card--primary {
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.95), rgba(30, 64, 175, 0.9));
}

.card--primary .card__title {
  color: rgba(255, 255, 255, 0.8);
}

.card--primary .card__value {
  font-size: 1.35rem;
  font-weight: 600;
}

.card--secondary {
  background: rgba(15, 23, 42, 0.6);
}

.card--glass {
  background: rgba(15, 23, 42, 0.35);
  border-style: dashed;
}

.card__title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card__value {
  margin: 0 0 8px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.pill--muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
  border-color: transparent;
}

.section {
  padding: 110px clamp(24px, 5vw, 80px);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section__head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 16px 0 12px;
}

.section__head p {
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 26px;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature {
  background: rgba(15, 23, 42, 0.55);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature__icon {
  display: inline-flex;
  font-size: 1.4rem;
  line-height: 1;
}

.feature__icon i {
  display: inline-block;
}

.feature ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

.section--highlight {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(79, 70, 229, 0.25));
}

.highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.highlight__copy p {
  color: var(--text-soft);
  max-width: 520px;
}

.highlight__points {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.highlight__points strong {
  display: block;
  font-size: 1.05rem;
}

.highlight__points p {
  margin: 6px 0 0;
}

.highlight__panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  background: rgba(15, 23, 42, 0.55);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: var(--shadow-sm);
}

.panel-card--accent {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
}

.panel-card__label {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.panel-card__metric {
  font-size: 2rem;
  margin: 0 0 6px;
}

.grid--pricing {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.plan {
  background: rgba(15, 23, 42, 0.58);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan__price {
  font-size: 2.1rem;
  margin: 0;
}

.plan__price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan__description {
  color: var(--text-soft);
  margin: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.plan--featured {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.75), rgba(14, 116, 144, 0.65));
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

html[data-theme='light'] .plan {
  background: rgba(244, 247, 255, 0.96);
  border: 1px solid rgba(79, 70, 229, 0.24);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

html[data-theme='light'] .plan__description,
html[data-theme='light'] .plan ul {
  color: var(--text-muted);
}

html[data-theme='light'] .plan--featured {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.92), rgba(37, 99, 235, 0.88));
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

html[data-theme='light'] .plan--featured .plan__description,
html[data-theme='light'] .plan--featured ul,
html[data-theme='light'] .plan--featured .plan__price span {
  color: rgba(255, 255, 255, 0.85);
}

html[data-theme='light'] .plan--featured .btn--primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(59, 130, 246, 0.85));
  color: #fff;
}

html[data-theme='light'] .plan--featured .btn--outline {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section--cta {
  padding-bottom: 120px;
}

.cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.18));
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
}

.cta__copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta__copy p {
  margin: 0;
  color: var(--text-soft);
}

.cta__form {
  display: grid;
  gap: 18px;
}

.cta__form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.cta__form input,
.cta__form select {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}

.cta__form input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px clamp(24px, 5vw, 80px);
  display: grid;
  gap: 40px;
  background: rgba(15, 23, 42, 0.85);
}

.footer__brand p {
  color: var(--text-muted);
  max-width: 360px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.footer__links strong {
  display: block;
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__legal {
  display: flex;
  gap: 12px;
}

.progress {
  background: rgba(148, 163, 184, 0.2);
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.8), rgba(99, 102, 241, 0.9));
}

html[data-theme='light'] .progress {
  background: rgba(191, 219, 254, 0.6);
}

html[data-theme='light'] .progress span {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(124, 58, 237, 0.85));
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-muted: rgba(226, 232, 240, 0.64);
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-light: #6366f1;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(99, 102, 241, 0.25);
  --gradient-1: rgba(99, 102, 241, 0.18);
  --gradient-2: rgba(14, 165, 233, 0.14);
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 15px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 80px rgba(15, 23, 42, 0.18);
}

html[data-theme='light'] body {
  color: var(--text);
}

html[data-theme='light'] .nav {
  background: rgba(249, 251, 255, 0.9);
  border-color: rgba(79, 70, 229, 0.18);
}

html[data-theme='light'] .btn--outline {
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.14);
  color: var(--primary-strong);
}

html[data-theme='light'] .nav__cta {
  background: rgba(79, 70, 229, 0.22);
  color: #ffffff;
}

html[data-theme='light'] .btn--ghost {
  background: rgba(79, 70, 229, 0.14);
  color: var(--primary-strong);
}

html[data-theme='light'] .feature,
html[data-theme='light'] .panel__section,
html[data-theme='light'] .stat-card,
html[data-theme='light'] .list li,
html[data-theme='light'] .list__card,
html[data-theme='light'] .table,
html[data-theme='light'] .kanban article,
html[data-theme='light'] .calendar,
html[data-theme='light'] .panel__card,
html[data-theme='light'] .insight {
  background: rgba(244, 247, 255, 0.96);
  border-color: rgba(79, 70, 229, 0.18);
  color: var(--text);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html[data-theme='light'] .cards__empty,
html[data-theme='light'] .list__empty,
html[data-theme='light'] .table__empty {
  background: rgba(248, 250, 252, 0.92);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

html[data-theme='light'] .section--highlight {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.7), rgba(191, 219, 254, 0.55));
}

html[data-theme='light'] .card--secondary {
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
}

html[data-theme='light'] .card--glass {
  background: rgba(255, 255, 255, 0.65);
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme='light'] .panel-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text);
}

html[data-theme='light'] .panel-card--accent {
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.45), rgba(186, 230, 253, 0.46));
  border-color: rgba(125, 211, 252, 0.52);
}

html[data-theme='light'] .card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .card--primary {
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.88), rgba(59, 130, 246, 0.82));
  color: #ffffff;
}

html[data-theme='light'] .card--primary .card__title {
  color: rgba(255, 255, 255, 0.85);
}

html[data-theme='light'] .card--primary .card__value {
  color: #ffffff;
}

html[data-theme='light'] .pill {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.2);
}

html[data-theme='light'] .pill--muted {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-soft);
}

html[data-theme='light'] .footer {
  background: rgba(241, 245, 249, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
}

html[data-theme='light'] .footer__links a,
html[data-theme='light'] .footer__meta {
  color: var(--text-muted);
}

html[data-theme='light'] .cta {
  background: linear-gradient(135deg, rgba(199, 210, 254, 0.92), rgba(191, 219, 254, 0.9));
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

html[data-theme='light'] .cta__form input,
html[data-theme='light'] .cta__form select {
  background: rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--text);
}

html[data-theme='light'] .cta__form input::placeholder {
  color: rgba(30, 41, 59, 0.55);
}

@media (max-width: 960px) {
  .nav__links {
    position: absolute;
    top: 70px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 220px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  html[data-theme='light'] .nav__links {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.25);
  }

  .nav__links--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .highlight {
    grid-template-columns: 1fr;
  }

  .cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 20px;
  }

  .nav {
    position: relative;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 80px 24px;
  }

  .hero__content {
    gap: 40px;
  }

  .plan--featured {
    transform: none;
  }

  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
