:root {
  --primary: #0b5f78;
  --primary-dark: #083a4e;
  --secondary: #0a324a;
  --accent: #1fb87a;
  --bg: #dfeaf1;
  --surface: #f6fbff;
  --text: #0f2733;
  --muted: #4f6b7c;
  --border: #c6d8e2;
  --shadow: 0 18px 40px rgba(8, 48, 74, 0.14);
}

body.dark-mode {
  --bg: #08141d;
  --surface: #0f1f2a;
  --text: #e3eaf0;
  --muted: #9ab1c0;
  --border: #1f2f3b;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

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

main {
  overflow: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.navbar .logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 12px;
}

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

.nav-links a {
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(27, 75, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
  background: rgba(27, 75, 255, 0.08);
  color: var(--primary);
}

.btn.ghost:hover {
  background: rgba(27, 75, 255, 0.12);
}

.btn.small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(27, 75, 255, 0.08);
  color: var(--primary);
}

.theme-toggle i {
  pointer-events: none;
}

section {
  padding: 110px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  padding-top: 140px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 12px 0;
}

.hero-content .subhead {
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(27, 75, 255, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-card {
  background: transparent;
  border-radius: 20px;
  padding: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  justify-self: end;
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  transform: none;
}

@media (max-width: 900px) {
  .hero-card {
    width: 100%;
    margin-left: 0;
    justify-self: center;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.status.success {
  background: rgba(45, 212, 191, 0.15);
  color: #0f766e;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
}

.kpi small {
  color: var(--muted);
}

.mini-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
}

.table-head {
  background: var(--bg);
  font-weight: 700;
}

.table-row:not(.table-head) {
  border-top: 1px solid var(--border);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

.feature-card {
  background: var(--surface);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-card i {
  color: var(--secondary);
  font-size: 1.4rem;
}

.modules-section {
  background: #dbeaf1;
  border-radius: 24px;
  padding: 110px 24px 90px;
}

.plan-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 999;
}

.plan-modal.show {
  display: flex;
}

.plan-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 37, 58, 0.55);
}

.plan-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  width: min(480px, 92vw);
  box-shadow: 0 28px 70px rgba(8, 48, 74, 0.2);
  z-index: 1;
}

.plan-modal__dialog h3 {
  margin: 4px 0 10px;
}

.plan-modal__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.plan-modal__benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.plan-modal__benefits li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
}

.plan-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
}

.plan-modal__cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

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

.module-card {
  background: var(--surface);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(11, 95, 120, 0.12);
  color: var(--primary);
  font-size: 1.3rem;
}

.module-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  color: var(--muted);
}

.module-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.schedule {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.schedule-row:last-child {
  border-bottom: none;
}

.pill {
  background: rgba(11, 95, 120, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.pill.alert {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.integrations-section {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.integration-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.integration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.integration-card i {
  color: var(--accent);
  font-size: 1.6rem;
}

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

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.chart-lines {
  position: relative;
  height: 140px;
  background: linear-gradient(180deg, rgba(27, 75, 255, 0.06), transparent);
  border-radius: 12px;
  overflow: hidden;
}

.line {
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 999px;
}

.line-1 {
  background: var(--primary);
  top: 50%;
}

.line-2 {
  background: var(--secondary);
  top: 70%;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding: 12px;
  background: rgba(27, 75, 255, 0.05);
  border-radius: 12px;
}

.bar {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.chart-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.chart-heatmap span {
  display: block;
  height: 18px;
  border-radius: 6px;
  background: rgba(27, 75, 255, 0.08);
}

.chart-heatmap .active {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.chart-legend {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.dot-1 {
  background: var(--primary);
}

.dot-2 {
  background: var(--secondary);
}

.dot-3 {
  background: var(--accent);
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.pricing-card h3 {
  font-size: 2rem;
  margin: 6px 0 12px;
}

.pricing-card h3 span {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  color: var(--muted);
  text-align: left;
  margin: 12px 0 18px;
}

.pricing-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card.highlight {
  border: 2px solid var(--border);
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.badge.light {
  background: rgba(27, 75, 255, 0.08);
  color: var(--primary);
}

.testimonials-section {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.testimonial-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.testimonial-card p {
  font-style: italic;
}

.faq-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  margin-bottom: 18px;
}

.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.faq-answer {
  padding: 0 16px;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 12px 16px 16px;
  overflow: visible;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.cta-section {
  padding: 80px 24px;
}

.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(8, 48, 74, 0.3);
  flex-wrap: wrap;
}

.cta-card .eyebrow {
  color: #fff;
}

.cta-card .btn {
  background: #fff;
  color: var(--primary);
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-top: 8px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(27, 75, 255, 0.25);
}

.form-alert {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.14);
  color: #0f766e;
  display: none;
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f3750, #0b2235);
  padding: 24px;
}

.admin-auth__card {
  width: min(440px, 100%);
  background: #fff;
  padding: 26px 24px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(12, 53, 83, 0.25);
}

.admin-auth__form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-page {
  background: #f5f7fb;
  min-height: 100vh;
}

.admin-header {
  max-width: 2000px;
  margin: 0 auto;
  padding: 20px 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 12px 60px 32px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats h3 {
  margin: 4px 0 0;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.admin-table th {
  background: #f1f5f9;
  font-weight: 700;
}

.admin-table select {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 28px 24px 16px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer a {
  color: #cbd5e1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 12px auto 0;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  padding-top: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
}

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

.badge {
  background: rgba(27, 75, 255, 0.12);
}

.badge.light {
  background: rgba(108, 92, 231, 0.12);
}

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
}

body.dark-mode .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dark-mode .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .modules-section {
  background: #0d1525;
}

body.dark-mode .integration-card {
  background: var(--surface);
}

body.dark-mode .chart-lines {
  background: linear-gradient(180deg, rgba(27, 75, 255, 0.18), transparent);
}

body.dark-mode .chart-bars {
  background: rgba(27, 75, 255, 0.12);
}

body.dark-mode .chart-heatmap span {
  background: rgba(27, 75, 255, 0.18);
}

body.dark-mode .hero-card,
body.dark-mode .feature-card,
body.dark-mode .module-card,
body.dark-mode .integration-card,
body.dark-mode .chart-card,
body.dark-mode .pricing-card,
body.dark-mode .testimonial-card,
body.dark-mode .faq-item,
body.dark-mode .contact-form {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .faq-item {
  background: #111a2d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

body.dark-mode .faq-question {
  color: #e5e7eb;
}

body.dark-mode .faq-answer {
  color: #cbd5e1;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #0f172a;
  color: var(--text);
  border-color: #1f2937;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--muted);
}

body.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: #1f2937;
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 24px;
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    width: 220px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: inline-flex;
  }

  .navbar {
    padding: 14px 20px;
  }

  section {
    padding: 100px 18px 70px;
  }

  .hero {
    padding-top: 120px;
  }

  .card-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .table-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "method today"
      "method week";
  }

  .table-row span:nth-child(1) {
    grid-area: method;
  }

  .table-row span:nth-child(2) {
    grid-area: today;
  }

  .table-row span:nth-child(3) {
    grid-area: week;
  }

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

  .cta-card {
    align-items: flex-start;
  }
}
