/* ═══════════════════════════════════════════════════════
   JR Civil Suite — Custom Styles
   Design system: #0A0A0F bg · #13131A surface · #2563EB accent
   ═══════════════════════════════════════════════════════ */

/* ── Reset / base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #0A0A0F;
  color: #F8FAFC;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── CSS custom properties ───────────────────────────── */
:root {
  --bg-primary:   #0A0A0F;
  --bg-surface:   #13131A;
  --accent-blue:  #2563EB;
  --accent-green: #10B981;
  --txt-primary:  #F8FAFC;
  --txt-muted:    #94A3B8;
  --border:       rgba(255, 255, 255, 0.07);
  --r-card:       12px;
  --r-btn:        8px;
}

/* ── Hero dot grid (pure CSS, no images) ─────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

/* ── Navbar ──────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--txt-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--txt-primary); }

.mobile-menu {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav-link {
  display: block;
  color: var(--txt-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--txt-primary); }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.375rem;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--txt-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Section surface background ─────────────────────── */
.section-surface {
  background: rgba(19, 19, 26, 0.6);
  position: relative;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD MOCKUP
   ══════════════════════════════════════════════════════ */
.dashboard-mockup {
  width: 560px;
  height: 400px;
  background: #080810;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(37, 99, 235, 0.08);
}

/* Sidebar */
.mockup-sidebar {
  width: 148px;
  flex-shrink: 0;
  background: #060610;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #F8FAFC;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.mockup-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.mockup-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 500;
  color: #64748b;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}
.mockup-nav-item:hover { color: #94a3b8; background: rgba(255,255,255,0.04); }
.mockup-nav-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
}

/* Main area */
.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-page-title {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.live-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.04em;
}

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-card {
  background: #0f0f1c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-label {
  font-size: 8.5px;
  color: var(--txt-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.2;
}

.kpi-trend {
  font-size: 8px;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 5px;
  width: fit-content;
  margin-top: 2px;
}
.kpi-trend.green { color: #34d399; background: rgba(16,185,129,0.12); }
.kpi-trend.blue  { color: #60a5fa; background: rgba(37,99,235,0.12); }

/* Bottom: chart + table */
.mockup-bottom {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.mockup-chart {
  flex: 1.5;
  background: #0f0f1c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-title {
  font-size: 8.5px;
  color: var(--txt-muted);
  font-weight: 500;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
  padding-top: 4px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.bar-fill {
  width: 100%;
  background: rgba(37, 99, 235, 0.35);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}
.bar-fill.bar-accent { background: var(--accent-blue); }
.bar-col:hover .bar-fill { background: rgba(37, 99, 235, 0.6); }

.bar-col span {
  font-size: 7px;
  color: #475569;
  font-weight: 500;
}

.mockup-table {
  flex: 1;
  background: #0f0f1c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mtable-title {
  font-size: 8.5px;
  color: var(--txt-muted);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mtable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mtable-name {
  font-size: 8px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-green {
  font-size: 7px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16,185,129,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-amber {
  font-size: 7px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245,158,11,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   PROBLEM CARDS
   ══════════════════════════════════════════════════════ */
.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.problem-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.problem-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.problem-icon-wrap.red    { background: rgba(239, 68, 68, 0.1);  color: #ef4444; }
.problem-icon-wrap.amber  { background: rgba(245,158, 11, 0.1);  color: #f59e0b; }
.problem-icon-wrap.purple { background: rgba(139, 92,246, 0.1);  color: #8b5cf6; }

/* ══════════════════════════════════════════════════════
   MODULE CARDS
   ══════════════════════════════════════════════════════ */
.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.module-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 8px 32px rgba(37, 99, 235, 0.08);
}

.module-card.module-featured {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(145deg, #13131a 0%, #111120 100%);
}
.module-card.module-featured:hover {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 12px 40px rgba(37, 99, 235, 0.12);
}

.module-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 99px;
  padding: 2px 10px;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.module-icon.blue   { background: rgba(37, 99, 235, 0.1); }
.module-icon.green  { background: rgba(16,185,129, 0.1); }
.module-icon.amber  { background: rgba(245,158, 11, 0.1); }

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.module-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--txt-muted);
  line-height: 1.5;
}
.module-list .check {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════════
   FEATURE CARDS
   ══════════════════════════════════════════════════════ */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1), 0 4px 20px rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s;
}
.feature-card:hover .feature-icon { background: rgba(37, 99, 235, 0.18); }

/* ══════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════ */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--txt-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-value.stat-text {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--txt-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════ */
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════
   DEMO FORM
   ══════════════════════════════════════════════════════ */
.demo-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--txt-primary);
  margin-bottom: 0.375rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-btn);
  color: var(--txt-primary);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input.is-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.25rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--txt-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--txt-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--txt-primary); }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--txt-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════════
   HERO WORD ANIMATION (set by GSAP)
   ══════════════════════════════════════════════════════ */
.hero-word {
  display: inline-block;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-mockup { width: 100%; max-width: 520px; }
}

@media (max-width: 768px) {
  .demo-form-wrap { padding: 1.5rem; }
  .module-card    { padding: 1.5rem; }
  .problem-card   { padding: 1.5rem; }
}

/* ── Scrollbar (Webkit) ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
