/* ============================================================
   TrackLedgr — Global Stylesheet
   Dark enterprise aesthetic · Syne + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --navy:       #0B0F1A;
  --navy-mid:   #111827;
  --navy-card:  #161D2E;
  --navy-light: #1E2A3A;
  --border:     #1F2D40;
  --border-mid: #243347;
  --indigo:     #4F7DFF;
  --indigo-dim: #3A5FCC;
  --sky:        #38BDF8;
  --sky-dim:    #0EA5E9;
  --teal:       #2DD4BF;
  --violet:     #818CF8;
  --green:      #34D399;
  --amber:      #FBBF24;
  --red:        #F87171;
  --white:      #FFFFFF;
  --text:       #E2E8F0;
  --text-mid:   #94A3B8;
  --text-dim:   #64748B;
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --glow:       0 0 40px rgba(79,125,255,0.15);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Noise texture overlay ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--sky); }
.nav-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--indigo), var(--sky));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--navy-light); }
.nav-links a.active { color: var(--sky); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--indigo), var(--sky-dim));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-demo:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
}

/* ── Layout ─────────────────────────────────────────────── */
main { padding-top: 64px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; color: var(--white); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; color: var(--white); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); }
h4 { font-size: 1rem; font-weight: 600; color: var(--white); }
.lead {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 600px;
}
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--sky-dim));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,125,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(79,125,255,0.45); }
.btn-secondary {
  background: var(--navy-card);
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover { background: var(--navy-light); border-color: var(--indigo); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--sky);
  border: 1.5px solid var(--sky);
}
.btn-outline:hover { background: rgba(56,189,248,0.1); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-mid), transparent);
  margin: 0;
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.badge-blue  { background: rgba(79,125,255,0.15); color: var(--indigo); border: 1px solid rgba(79,125,255,0.25); }
.badge-green { background: rgba(52,211,153,0.12); color: var(--green);  border: 1px solid rgba(52,211,153,0.25); }
.badge-amber { background: rgba(251,191,36,0.12); color: var(--amber);  border: 1px solid rgba(251,191,36,0.25); }
.badge-sky   { background: rgba(56,189,248,0.12); color: var(--sky);    border: 1px solid rgba(56,189,248,0.25); }
.badge-violet{ background: rgba(129,140,248,0.12);color: var(--violet); border: 1px solid rgba(129,140,248,0.25); }

/* ── Checkmark list ──────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 0.65rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: rgba(52,211,153,0.15);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Section heading block ───────────────────────────────── */
.section-heading { margin-bottom: 3.5rem; }
.section-heading.text-center { display: flex; flex-direction: column; align-items: center; }

/* ── Glow orb decoration ─────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Page hero (interior pages) ──────────────────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero .lead { font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(79,125,255,0.08) 100%);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner .lead { margin: 0 auto 2rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stat blocks ─────────────────────────────────────────── */
.stat-block { text-align: center; }
.stat-block .num {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-block .num span { color: var(--sky); }
.stat-block .lbl { font-size: 0.85rem; color: var(--text-mid); }

/* ── Comparison table ────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-card);
  border: 1px solid var(--border);
}
.compare-table th {
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  background: var(--navy-light);
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child { text-align: left; }
.compare-table th.highlight { color: var(--sky); background: rgba(56,189,248,0.06); }
.compare-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.compare-table td.highlight { background: rgba(56,189,248,0.04); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no  { color: var(--text-dim); }
.compare-table .partial { color: var(--amber); font-size: 0.8rem; }

/* ── Feature detail row ──────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-visual {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,125,255,0.05) 0%, transparent 60%);
}
.feature-content h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.feature-content p  { color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.75; }

/* ── Terminal / code block ───────────────────────────────── */
.terminal {
  background: #0A0E17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a8b8d0;
  overflow-x: auto;
}
.terminal .prompt { color: var(--sky); }
.terminal .cmd    { color: #e2e8f0; }
.terminal .comment{ color: var(--text-dim); }
.terminal .ok     { color: var(--green); }
.terminal .warn   { color: var(--amber); }

/* ── Security check list ─────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.security-item {
  background: var(--navy-card);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.security-item-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.security-item h4 { margin-bottom: 0.3rem; font-size: 0.95rem; }
.security-item p  { font-size: 0.82rem; color: var(--text-dim); line-height: 1.55; }

/* ── Roadmap ─────────────────────────────────────────────── */
.roadmap-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.roadmap-item:last-child { border-bottom: none; }
.roadmap-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .security-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.78rem; }
  .section { padding: 4rem 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
