/* ERPkit Marketing Site — Design System */

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

/* ── Tokens ── */
:root {
  /* Indigo (primary) */
  --indigo-50: #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-200: #C7D2FE;
  --indigo-300: #A5B4FC;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-800: #3730A3;
  --indigo-900: #312E81;

  /* Emerald (accent / CTA) */
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  /* Slate (neutral) */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;

  /* Spacing */
  --container: 1400px;
  --section-y: 5rem;
  --gap: 2rem;

  /* Radius */
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

/* ── Typography ── */
/* Fonts loaded via <link> in HTML <head> for performance — do NOT use @import here */

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-300);
  background: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: #fff; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--indigo-400); text-decoration: none; }
a:hover { color: var(--indigo-300); text-decoration: underline; }

code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.section {
  padding: var(--section-y) 0;
}
.section--alt { background: var(--slate-800); }
.section--slate { background: var(--slate-800); }
.section--indigo { background: var(--indigo-600); color: #fff; }
.section--indigo h2, .section--indigo h3, .section--indigo p { color: #fff; }

/* ── Grid ── */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid--5 .card { text-align: center; padding: 2rem 1.5rem; }
.grid--5 .card__icon { margin: 0 auto 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--emerald-600);
  color: #fff;
}
.btn--primary:hover { background: var(--emerald-700); color: #fff; }

.btn--secondary {
  background: var(--indigo-600);
  color: #fff;
}
.btn--secondary:hover { background: var(--indigo-700); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--indigo-600);
  border: 2px solid var(--indigo-600);
}
.btn--outline:hover { background: var(--indigo-50); color: var(--indigo-700); }

.btn--white {
  background: #fff;
  color: var(--indigo-600);
}
.btn--white:hover { background: var(--indigo-50); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ── Header (dark, matching app navbar) ── */
.header {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-700);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  height: 4.5rem;
}
.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
}
.header__logo:hover { text-decoration: none; }
.header__logo .logo-erp { color: #fff; }
.header__logo .logo-kit { color: var(--indigo-400); }

.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav a {
  color: var(--slate-300);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}
.header__nav a:hover { color: #fff; text-decoration: none; }
.header__nav a.active { color: #fff; border-bottom: 2px solid var(--indigo-400); padding-bottom: 2px; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--slate-400);
  font-weight: 500;
}
.lang-switch a { color: var(--slate-400); text-decoration: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch .active { color: var(--indigo-400); font-weight: 700; }

.btn--outline-light {
  background: transparent;
  color: var(--indigo-400);
  border: 2px solid var(--indigo-400);
}
.btn--outline-light:hover { background: rgba(99, 102, 241, 0.1); color: var(--indigo-300); }

/* Mobile nav toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.header__toggle svg { width: 24px; height: 24px; stroke: var(--slate-400); }

/* ── Footer ── */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3rem 0 2rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer__brand { max-width: 320px; }
.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer__links h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer__links a {
  display: block;
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--slate-700);
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Dark section ── */
.section--dark {
  background: var(--slate-900);
  color: var(--slate-300);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--slate-300); }
.section--dark .card {
  background: linear-gradient(135deg, var(--slate-800) 0%, rgba(99,102,241,0.08) 100%);
  border-color: var(--slate-600);
  border-width: 1px;
}
.section--dark .card:hover { box-shadow: 0 4px 24px rgba(99,102,241,0.15); border-color: var(--indigo-500); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: var(--slate-400); }
.section--dark .card__icon--indigo { background: rgba(99,102,241,0.2); }
.section--dark .card__icon--emerald { background: rgba(16,185,129,0.2); }
.section--dark .section__header p { color: var(--slate-400); }

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: #fff;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 800px; margin-left: auto; margin-right: auto; color: #fff; }
.hero__sub {
  font-size: 1.25rem;
  color: var(--slate-300);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero--light {
  background: linear-gradient(135deg, var(--indigo-50) 0%, #fff 50%, var(--emerald-50) 100%);
  color: var(--slate-800);
}
.hero--light h1 { color: var(--slate-900); }
.hero--light .hero__sub { color: var(--slate-600); }

/* ── Cards ── */
.card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover { box-shadow: 0 4px 24px rgba(99,102,241,0.12); border-color: var(--indigo-500); }
.card h3 { color: #fff; }
.card p { color: var(--slate-400); }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card__icon--indigo { background: rgba(99,102,241,0.2); color: var(--indigo-400); }
.card__icon--emerald { background: rgba(16,185,129,0.2); color: var(--emerald-400); }

/* ── Logos ── */
.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.logos__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 500;
}
.logos__item .logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logos__item svg, .logos__item img { height: 64px; width: auto; object-fit: contain; }

/* ── Trust badges ── */
.trust-bar {
  background: var(--slate-800);
  border-top: 1px solid var(--slate-700);
  border-bottom: 1px solid var(--slate-700);
  padding: 2rem 0;
}
.trust {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
}
.trust__item svg { width: 20px; height: 20px; color: var(--emerald-500); flex-shrink: 0; }

/* ── Pricing ── */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-top: 1rem;
}
.pricing-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--slate-600);
  background: var(--slate-800);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-300);
  cursor: pointer;
  transition: all 0.15s;
}
.pricing-tab:hover { border-color: var(--indigo-400); color: var(--indigo-400); }
.pricing-tab.active {
  background: var(--indigo-600);
  color: #fff;
  border-color: var(--indigo-600);
}

.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

.pricing-card {
  background: var(--slate-800);
  border: 2px solid var(--slate-600);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.pricing-card--featured { border-color: var(--indigo-400); }
.pricing-card--featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--indigo-600);
  margin-bottom: 0.25rem;
}
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--slate-400); }
.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}
.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-card__features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--slate-300);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pricing-card__features li::before {
  content: "✓";
  color: var(--emerald-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Feature page ── */
.phase {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: border-color 0.15s;
}
.phase:hover { border-color: var(--indigo-500); }
.phase:last-child { margin-bottom: 0; }
.phase:nth-child(even) { flex-direction: row-reverse; }
.phase__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99,102,241,0.2);
  color: var(--indigo-400);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase__content { flex: 1; }
.phase__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.phase__badge--core { background: rgba(99,102,241,0.2); color: var(--indigo-300); }
.phase__badge--addon { background: rgba(16,185,129,0.2); color: var(--emerald-400); }

/* ── Legal / prose ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h1 { margin-bottom: 0.5rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose hr { border: none; border-top: 1px solid var(--slate-700); margin: 2rem 0; }
.prose strong { color: #fff; }
.prose .meta { color: var(--slate-400); font-size: 0.9rem; margin-bottom: 2rem; }
.prose code { background: var(--slate-800); padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.85em; color: var(--indigo-300); }

/* ── Discount callout ── */
.callout {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-400);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0;
}
.callout__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Section headers ── */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section__header p {
  color: var(--slate-400);
  font-size: 1.1rem;
}

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 8rem 0;
}
.not-found h1 { font-size: 6rem; color: var(--indigo-400); margin-bottom: 0.5rem; }
.not-found p { font-size: 1.25rem; color: var(--slate-400); margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  :root { --section-y: 3rem; }

  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate-900);
    border-bottom: 1px solid var(--slate-700);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .header__toggle { display: block; }
  .header__actions .btn { display: none; }
  .header__actions .lang-switch { order: -1; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__sub { font-size: 1.1rem; }

  .phase, .phase:nth-child(even) { flex-direction: column; }

  .footer__inner { flex-direction: column; }

  .logos { gap: 1.5rem; }
  .trust { flex-direction: column; align-items: center; gap: 1rem; }

  .pricing-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
}
