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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-50: #f5f5f0;
  --gray-100: #ebebeb;
  --gray-200: #d9d9d9;
  --gray-300: #b5b5b5;
  --gray-400: #8a8a8a;
  --gray-500: #6a6a6a;
  --gray-600: #484848;
  --gray-800: #1f1f1f;
  --gray-900: #141414;
  --green: #1a7a4a;
  --blue: #1444a4;
  --blue-bg: #e8eefa;
  --accent: #d4a017;
  --red: #c1121f;
  --radius: 2px;
  --font-main: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --sidebar-width: 240px;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-800);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-400);
}

.btn-outline:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.btn-lg {
  height: 52px;
  padding: 0 32px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ── NAVBAR ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 300;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--black);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-link.active {
  color: var(--black);
  font-weight: 600;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a.nav-link {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a.nav-link:hover {
  color: var(--black);
}

/* Hamburger button - always visible on mobile */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.15s;
}

.hamburger-btn:hover {
  background: var(--gray-100);
  color: var(--black);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links .hide-mobile {
    display: none;
  }
}

/* ── MOBILE SIDEBAR ── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 399;
}

#sidebar-overlay.open {
  display: block;
}

#mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--black);
  color: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

#mobile-sidebar.open {
  transform: translateX(0);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  display: flex;
}

.sidebar-close-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  padding: 12px 10px 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.15s;
  margin-bottom: 2px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav-item.active {
  background: var(--white);
  color: var(--black);
  font-weight: 600;
}

.sidebar-nav-item svg {
  min-width: 18px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ── HERO ── */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: var(--gray-50);
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* DASHBOARD SCREENSHOT in hero */
.hero-mockup {
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  overflow: hidden;
}

.mockup-header {
  height: 36px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.hero-mockup img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── OVERVIEW ── */
.overview {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.overview-grid:nth-child(even) {
  direction: rtl;
}

.overview-grid:nth-child(even) > * {
  direction: ltr;
}

.overview-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.overview-text p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.overview-image {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .overview-grid:nth-child(even) {
    direction: ltr;
  }
}

/* ── STEPS ── */
.steps {
  padding: 80px 0;
  background: var(--gray-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step-card {
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-200);
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── FEATURES ── */
.features {
  padding: 100px 0;
  background: var(--black);
  color: var(--white);
}

.features .section-header h2 {
  color: var(--white);
}

.features .text-muted {
  color: var(--gray-400);
}

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

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--gray-400);
}

/* ── PRICING ── */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.plan-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.2s;
  position: relative;
}

.plan-card:hover {
  border-color: var(--black);
}

.plan-card.popular {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  padding: 4px 0;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}

/* ── CONTACT ── */
.contact {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.contact-info p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
  color: var(--black);
}

.form-input {
  height: 40px;
}

.form-textarea {
  padding: 12px;
  height: 120px;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.06);
}

.form-input.invalid,
.form-textarea.invalid {
  border-color: var(--red);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  max-width: 300px;
  animation: toastIn 0.25s ease;
}

.toast.toast-success {
  background: var(--green);
}

.toast.toast-error {
  background: var(--red);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 48px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}

/* Utilities */
.mb-20 {
  margin-bottom: 20px;
}

/* ── TERMS & CONDITIONS MODAL ── */
#tc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#tc-modal-overlay.open {
  display: flex;
}

#tc-modal {
  background: var(--white);
  border-radius: 4px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gray-200);
}

.tc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.tc-modal-header h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.tc-modal-close {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.15s;
}

.tc-modal-close:hover {
  background: var(--gray-100);
  color: var(--black);
}

.tc-modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

.tc-modal-body h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-top: 24px;
  margin-bottom: 8px;
}

.tc-modal-body h4:first-child {
  margin-top: 0;
}

.tc-modal-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 8px;
}

.tc-modal-body ul {
  margin: 0 0 8px 16px;
}

.tc-modal-body ul li {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 4px;
}

.tc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}

/* ── PRIVACY POLICY MODAL ── */
#privacy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#privacy-modal-overlay.open {
  display: flex;
}

#privacy-modal {
  background: var(--white);
  border-radius: 4px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gray-200);
}

/* ── FAQ MODAL ── */
#faq-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#faq-modal-overlay.open {
  display: flex;
}

#faq-modal {
  background: var(--white);
  border-radius: 4px;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gray-200);
}

.faq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.faq-modal-header h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.faq-modal-body {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--black);
  user-select: none;
  transition: background 0.12s;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 16px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--black);
  font-weight: 600;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}

/* ── MOBILE RESPONSIVE IMPROVEMENTS ── */
@media (max-width: 480px) {
  .hero {
    padding: 96px 0 60px;
  }

  .hero p {
    font-size: 15px;
  }

  .overview {
    padding: 64px 0;
  }

  .steps {
    padding: 56px 0;
  }

  .features {
    padding: 64px 0;
  }

  .pricing {
    padding: 64px 0;
  }

  .contact {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .overview-image {
    padding: 24px 16px;
  }

  .plan-card {
    padding: 28px 20px;
  }

  .contact-form-card {
    padding: 20px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-inner > div:last-child {
    flex-wrap: wrap;
    gap: 16px;
  }

  .btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }
}

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-trust-bar {
    gap: 20px !important;
    padding-top: 24px !important;
  }
}
