/* ==========================================================================
   RevX Solutions — Design tokens
   Palette: Ink (near-black), Paper (off-white), Signal (electric indigo)
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (utility)
   ========================================================================== */

:root {
    --ink: #090b12;
    --ink-soft: #12151f;
    --paper: #f7f7f5;
    --paper-dim: #eeeeea;
    --signal: #5b5ff5;
    --signal-bright: #6f7bff;
    --signal-glow: #63d9ff;
    --signal-dim: #e9e9ff;
    --signal-deep: #4342c9;
    --slate: #5b6472;
    --line: #dededa;
    --line-dark: #262c3a;
    --success: #1c8a5a;

    --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

    --max-width: 1160px;
    --radius: 10px;

    /* Bright multi-color accent palette */
    --cat-blue: #3b82f6;
    --cat-blue-tint: rgba(59, 130, 246, 0.06);
    --cat-blue-tag: rgba(59, 130, 246, 0.13);

    --cat-green: #10b981;
    --cat-green-tint: rgba(16, 185, 129, 0.06);
    --cat-green-tag: rgba(16, 185, 129, 0.13);

    --cat-cyan: #06b6d4;
    --cat-cyan-tint: rgba(6, 182, 212, 0.06);
    --cat-cyan-tag: rgba(6, 182, 212, 0.13);

    --cat-purple: #8b5cf6;
    --cat-purple-tint: rgba(139, 92, 246, 0.06);
    --cat-purple-tag: rgba(139, 92, 246, 0.13);

    --cat-teal: #14b8a6;
    --cat-teal-tint: rgba(20, 184, 166, 0.06);
    --cat-teal-tag: rgba(20, 184, 166, 0.13);

    --cat-orange: #f97316;
    --cat-orange-tint: rgba(249, 115, 22, 0.06);
    --cat-orange-tag: rgba(249, 115, 22, 0.13);

}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4fb 35%, #f1f6fb 70%, #f7f7f5 100%);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #ece7fa 30%, #e2f3fa 65%, #f4f3ef 100%);
    background-attachment: fixed;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.main-nav .btn-nav:hover {
    background: var(--signal-deep) !important;
    border-color: var(--signal-deep) !important;
    color: white !important;
}
.btn-primary:hover { background: var(--signal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { border-color: #fff; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,247,245,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.logo .x { color: var(--signal); }
.logo small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  /*color: var(--ink);*/
  position: relative;
  padding-bottom: 7px;
}
.main-nav a.active { color: var(--signal); }
.main-nav a:hover { color: var(--signal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background: linear-gradient(160deg, #eceeff 0%, #f4eefa 40%, #e8f6fa 100%);
    color: var(--ink);
    padding: 90px 0 70px;
    overflow: hidden;
    position: relative;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 4.4vw, 54px);
    color: var(--ink);
    max-width: 560px;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #4f46e5, #8b5cf6 50%, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    color: var(--slate);
    font-size: 17px;
    max-width: 460px;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
}
.trust-row span svg { color: var(--signal); flex-shrink: 0; }
.trust-row span:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 14px;
    background: var(--line);
    margin-left: 18px;
}

.hero-underline {
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    margin: 6px 0 22px;
    position: relative;
}
.hero-underline::after {
    content: '';
    position: absolute;
    right: -14px;
    top: -2.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
}

.btn-primary svg, .btn-ghost svg { flex-shrink: 0; }

.hero-diagram { width: 100%; height: auto; }
.hero-diagram .node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
}
.hero-diagram .link-line {
  stroke: rgba(76,79,255,0.55);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 1.4s ease forwards;
}
.hero-diagram .node-dot { fill: var(--signal); }
.hero-diagram .node-core { fill: #fff; }

/* Hero floating service cards -------------------------------------------*/

.hero-float-wrap {
    position: relative;
    height: 460px;
    width: 100%;
    transform: scale(0.85);
    transform-origin: top left;
}

.float-tile {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #ffffff;
    border-radius: 13px;
    border-left: 3px solid var(--tile-accent, var(--signal));
    padding: 13px 36px 13px 14px;
    box-shadow: 0 3px 10px rgba(20, 20, 60, 0.05), 0 12px 24px rgba(20, 20, 60, 0.08);
    min-width: 230px;
    max-width: 246px;
    animation: floatBob 6s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-tile:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 14px rgba(20, 20, 60, 0.07), 0 18px 34px rgba(20, 20, 60, 0.13);
    z-index: 10;
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.float-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.25;
    filter: blur(7px);
    z-index: -1;
}
.float-icon svg { width: 17px; height: 17px; }

.float-text h5 { margin: 1px 0 3px; font-size: 13px; font-weight: 700; color: var(--ink); }
.float-text p { margin: 0; font-size: 11px; color: var(--slate); line-height: 1.35; }

.float-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    flex-shrink: 0;
}
.float-chevron svg { width: 11px; height: 11px; }

.tile-1 { top: 14px;  left: 20px;  --rot: -1deg; animation-delay: 0s; }
.tile-2 { top: 2px;   left: 290px; --rot: 1.5deg; animation-delay: .6s; }
.tile-3 { top: 140px; left: 180px; --rot: -1deg; animation-delay: 1.2s; }
.tile-4 { top: 232px; left: 6px;   --rot: 1deg; animation-delay: 1.8s; }
.tile-5 { top: 272px; left: 272px; --rot: -1.5deg; animation-delay: 2.4s; }
.tile-6 { top: 372px; left: 116px; --rot: 1deg; animation-delay: 3s; }

.float-tile {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 16px;
    border-left: 4px solid var(--tile-accent, var(--signal));
    padding: 18px 46px 18px 18px;
    box-shadow: 0 4px 12px rgba(20, 20, 60, 0.05), 0 16px 30px rgba(20, 20, 60, 0.09);
    min-width: 300px;
    max-width: 320px;
    animation: floatBob 6s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-tile:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 18px rgba(20, 20, 60, 0.08), 0 24px 44px rgba(20, 20, 60, 0.15);
    z-index: 10;
}

.float-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.float-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.25;
    filter: blur(9px);
    z-index: -1;
}
.float-icon svg { width: 22px; height: 22px; }

.float-text h5 { margin: 2px 0 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.float-text p { margin: 0; font-size: 12.5px; color: var(--slate); line-height: 1.4; }

.float-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    flex-shrink: 0;
}

.tile-1 { top: 20px;  left: 30px;  --rot: -1deg; animation-delay: 0s; }
.tile-2 { top: 4px;   left: 400px; --rot: 1.5deg; animation-delay: .6s; }
.tile-3 { top: 190px; left: 250px; --rot: -1deg; animation-delay: 1.2s; }
.tile-4 { top: 320px; left: 10px;  --rot: 1deg; animation-delay: 1.8s; }
.tile-5 { top: 380px; left: 380px; --rot: -1.5deg; animation-delay: 2.4s; }
.tile-6 { top: 520px; left: 160px; --rot: 1deg; animation-delay: 3s; }

@keyframes floatBob {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .float-tile { animation: none; }
}

@media (max-width: 960px) {
    .hero-float-wrap { display: none; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-diagram .link-line { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stat-strip {
    background: var(--paper);
}
.stat-strip .inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 24px;
    gap: 18px;
}
.stat-strip .stat {
    border-radius: 16px;
    padding: 26px 22px;
}
.stat-strip .stat b {
    font-family: var(--font-display);
    font-size: 30px;
    display: block;
    color: var(--ink);
}
.stat-strip .stat span {
    font-size: 13px;
    color: var(--slate);
}
.stat-strip .stat:nth-child(4n+1) { background: linear-gradient(135deg, var(--cat-blue-tint), transparent); }
.stat-strip .stat:nth-child(4n+2) { background: linear-gradient(135deg, var(--cat-purple-tint), transparent); }
.stat-strip .stat:nth-child(4n+3) { background: linear-gradient(135deg, var(--cat-orange-tint), transparent); }
.stat-strip .stat:nth-child(4n+4) { background: linear-gradient(135deg, var(--cat-green-tint), transparent); }

/* ==========================================================================
   Sections / generic
   ========================================================================== */

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

.bg-dim { background: linear-gradient(120deg, #e2e5ff 0%, #ecdff6 35%, #ddf1f8 70%, #f5f6f4 100%);
}
/* Services grid ---------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border-color: var(--card-accent, var(--line));
}

.service-card:nth-child(6n+1) { --card-accent: var(--cat-blue); --card-tag: var(--cat-blue-tag); }
.service-card:nth-child(6n+2) { --card-accent: var(--cat-green); --card-tag: var(--cat-green-tag); }
.service-card:nth-child(6n+3) { --card-accent: var(--cat-cyan); --card-tag: var(--cat-cyan-tag); }
.service-card:nth-child(6n+4) { --card-accent: var(--cat-purple); --card-tag: var(--cat-purple-tag); }
.service-card:nth-child(6n+5) { --card-accent: var(--cat-teal); --card-tag: var(--cat-teal-tag); }
.service-card:nth-child(6n+6) { --card-accent: var(--cat-orange); --card-tag: var(--cat-orange-tag); }

.service-card .card-content { position: relative; z-index: 1; }

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-accent, var(--signal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.icon-badge svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
}

.service-card .tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--card-accent, var(--signal));
    background: var(--card-tag, var(--signal-dim));
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; margin-bottom: 16px; }
.service-card .link { font-size: 13.5px; font-weight: 600; color: var(--card-accent, var(--ink)); }
.service-card .link:hover { opacity: 0.75; }

/* Process ------------------------------------------------------------- */

.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.process-item .idx { font-family: var(--font-mono); color: var(--signal); font-size: 13px; }
.process-item h4 { margin-bottom: 4px; font-size: 17px; }
.process-item p { margin: 0; font-size: 14.5px; }

/* Cards / why us -------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.why-card h4 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; }

/* CTA banner -------------------------------------------------------------*/

.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: 28px; }
.cta-banner p { color: rgba(255,255,255,0.65); margin: 0; }

/* Footer ------------------------------------------------------------------*/

.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--signal); }
.footer-logo { font-family: var(--font-display); font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-logo .x { color: var(--signal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 13px;
}

/* ==========================================================================
   Inner pages: about, services list/detail, contact
   ========================================================================== */

.page-hero {
    background: linear-gradient(120deg, #e2e5ff 0%, #ecdff6 35%, #ddf1f8 70%, #f5f6f4 100%);
    color: var(--ink);
    padding: 64px 0;
}
.page-hero h1 { color: var(--ink); font-size: clamp(30px, 4vw, 44px); max-width: 640px; }
.page-hero p { color: var(--slate); max-width: 560px; font-size: 16px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.value-card h4 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 14px; margin: 0; }

.feature-list { list-style: none; margin: 0 0 28px; padding: 0; }
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  gap: 12px;
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-top: 8px;
  flex-shrink: 0;
}

.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Forms ------------------------------------------------------------------*/

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--signal);
}
.form-error { color: #c0392b; font-size: 12.5px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}
.alert-success { background: #e6f4ec; color: var(--success); border: 1px solid #b8e3c9; }
.alert-error { background: #fbeaea; color: #c0392b; border: 1px solid #f2c2c2; }

.contact-info-card {
    background: linear-gradient(160deg, #c7ccfb 0%, #dcc4f2 50%, #b8e9f2 100%);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-info-card h4 { color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.contact-info-card p { color: rgba(14,17,22,0.6); font-size: 14px; }
.contact-info-card .row { padding: 16px 0; border-bottom: 1px solid rgba(14,17,22,0.1); }
.contact-info-card .row:last-child { border-bottom: none; }

/* ==========================================================================
   Admin panel
   ========================================================================== */

.admin-shell { display: flex; min-height: 100vh; background: var(--paper-dim); }
.admin-sidebar {
  width: 230px;
  background: var(--ink);
  color: #fff;
  padding: 28px 20px;
  flex-shrink: 0;
}
.admin-sidebar .logo { color: #fff; margin-bottom: 40px; }
.admin-sidebar nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 36px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 24px; margin: 0; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 24px;
}
.admin-login-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.admin-login-card .logo { justify-content: center; margin-bottom: 24px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat-card b { font-family: var(--font-display); font-size: 26px; display: block; }
.stat-card span { font-size: 13px; color: var(--slate); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--paper-dim);
}
.data-table tr:last-child td { border-bottom: none; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-block; }
.badge-new { background: var(--signal-dim); color: var(--signal-deep); }
.badge-contacted { background: #fff3d6; color: #92650b; }
.badge-closed { background: #e6f4ec; color: var(--success); }
.badge-draft { background: var(--paper-dim); color: var(--slate); }
.badge-sent { background: var(--signal-dim); color: var(--signal-deep); }
.badge-paid { background: #e6f4ec; color: var(--success); }
.badge-overdue { background: #fbeaea; color: #c0392b; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--slate); }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 24px;
}

/* ==========================================================================
   Statement banner (single bold claim, split emphasis)
   ========================================================================== */

.statement {
  padding: 96px 0;
  text-align: center;
}
.statement .container { max-width: 820px; }
.statement .eyebrow { justify-content: center; }
.statement h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.25;
}
.statement h2 .muted { color: var(--slate); }
.statement h2 .accent { color: var(--signal); }

/* ==========================================================================
   Process — big ghost numerals
   ========================================================================== */

.process-list-big { display: flex; flex-direction: column; }
.process-row {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.process-row:first-child { border-top: 1px solid var(--line); }
.process-row .ghost-num {
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  line-height: 1;
}
.process-row .step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.process-row h4 { font-size: 20px; margin-bottom: 8px; }
.process-row p { font-size: 15px; max-width: 480px; margin: 0; }
.process-row:hover .ghost-num { -webkit-text-stroke-color: var(--signal); }

/* ==========================================================================
   Industries
   ========================================================================== */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.industry-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    border-color: var(--card-accent, var(--line));
}

.industry-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.industry-card-body { padding: 20px; }
.industry-card-body span {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}
.industry-card-body p {
    font-size: 13px;
    color: var(--slate);
    margin: 0;
}

.industry-card:nth-child(6n+1) { --card-accent: var(--cat-blue); }
.industry-card:nth-child(6n+2) { --card-accent: var(--cat-purple); }
.industry-card:nth-child(6n+3) { --card-accent: var(--cat-orange); }
.industry-card:nth-child(6n+4) { --card-accent: var(--cat-teal); }
.industry-card:nth-child(6n+5) { --card-accent: var(--cat-cyan); }
.industry-card:nth-child(6n+6) { --card-accent: var(--cat-green); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--signal-dim);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card p.quote { font-size: 14.5px; color: var(--ink); flex: 1; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--signal-dim);
  color: var(--signal-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-card .person b { display: block; font-size: 13.5px; }
.testimonial-card .person span { font-size: 12.5px; color: var(--slate); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stat-strip .inner { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 90px 1fr; }
  .process-row .ghost-num { font-size: 44px; }
}

@media (max-width: 680px) {
  .main-nav ul, .main-nav .btn { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .main-nav.open .btn {
    display: inline-flex;
    margin: 0 24px 20px;
  }
  .services-grid, .why-grid, .value-grid, .related-services { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-banner { padding: 36px 28px; text-align: center; justify-content: center; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}


/* Pagination -------------------------------------------------------------*/

.pagination-nav { margin-top: 8px; }
.pagination-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}
.page-item .page-link:hover { border-color: var(--signal); color: var(--signal); }
.page-item.active .page-link {
    background: var(--signal);
    border-color: var(--signal);
    color: #fff;
}
.page-item.disabled .page-link {
    color: var(--slate);
    background: var(--paper-dim);
    cursor: default;
}

/* Invoice payment details ------------------------------------------------*/

.payment-block {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

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

.payment-card {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.payment-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal);
    margin: 0 0 16px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.payment-row:last-child { border-bottom: none; padding-bottom: 0; }

.payment-key {
    font-size: 12.5px;
    color: var(--slate);
    flex-shrink: 0;
}

.payment-val {
    font-family: var(--font-mono);
    font-size: 13.5px;
    /*font-weight: 600;*/
    color: var(--ink);
    text-align: right;
}

.payment-row-address {
    /*flex-direction: column;*/
    align-items: flex-start;
    gap: 4px;
}
.payment-address {
    font-family: var(--font-body);
    font-weight: 500;
    text-align: left;
    line-height: 1.5;
}

.payment-ref {
    font-size: 13px;
    color: var(--slate);
    margin: 18px 0 0;
}
.payment-ref strong { color: var(--ink); }

@media (max-width: 680px) {
    .payment-grid { grid-template-columns: 1fr; }
}

/* Process timeline (zigzag) --------------------------------------------- */

.process-timeline {
    position: relative;
    padding: 30px 0 10px;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    width: 50%;
    padding-bottom: 56px;
}
.process-step-left { left: 0; padding-right: 48px; text-align: right; }
.process-step-right { left: 50%; padding-left: 48px; text-align: left; }

.process-dot {
    position: absolute;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--step-accent, var(--signal));
    z-index: 2;
}
.process-step-left .process-dot { right: -9px; }
.process-step-right .process-dot { left: -9px; }

.process-card {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    text-align: left;
    max-width: 420px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.process-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
    border-color: var(--step-accent, var(--line));
}

.process-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--step-accent, var(--signal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.process-icon-badge svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

.process-step-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--step-accent, var(--signal));
    display: block;
    margin-bottom: 8px;
}
.process-card h4 { font-size: 16.5px; margin-bottom: 6px; }
.process-card p { font-size: 13.5px; margin: 0; }

.process-step:nth-child(1) { --step-accent: var(--cat-blue); }
.process-step:nth-child(2) { --step-accent: var(--cat-purple); }
.process-step:nth-child(3) { --step-accent: var(--cat-green); }
.process-step:nth-child(4) { --step-accent: var(--cat-orange); }
.process-step:nth-child(5) { --step-accent: var(--cat-teal); }

@media (max-width: 760px) {
    .process-timeline::before { left: 16px; }
    .process-step, .process-step-left, .process-step-right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 42px;
        padding-right: 0;
    }
    .process-step-left .process-dot, .process-step-right .process-dot { left: 7px; right: auto; }
    .process-card { max-width: none; }
}
