/* ==========================================================================
   Allahdeen — Design System
   Signature motif: the "connection map" — nodes + lines, standing in for
   systems integration. Used sparingly: hero, section dividers, loaders.
   ========================================================================== */

:root{
  /* Color */
  --bg:            #F7F8FA;
  --surface:       #FFFFFF;
  --surface-alt:   #EFF2F7;
  --ink:           #0F1729;
  --muted:         #5B6472;
  --muted-2:       #88909C;
  --primary:       #1B3A6B;
  --primary-dark:  #12294D;
  --primary-tint:  #E9EEF6;
  --accent:        #E8A33D;
  --accent-dark:   #C7822088;
  --accent-ink:    #6B4A12;
  --border:        #E2E5EB;
  --border-strong: #CBD1DC;
  --success:       #1F9D6B;
  --warning:       #E8A33D;
  --error:         #D64545;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,23,41,.06);
  --shadow-md: 0 8px 24px rgba(15,23,41,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,41,.12);
  --header-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0 0 .5em; line-height:1.15; letter-spacing:-0.01em; color:var(--ink); }
p{ margin:0 0 1em; color:var(--muted); }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.section-alt{ background:var(--surface-alt); }
.eyebrow{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-ink); background:#FBF1DD; display:inline-block; padding:5px 12px;
  border-radius:100px; margin-bottom:16px; font-weight:600;
}
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); }
.section-head p{ font-size:17px; margin-bottom:0; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  padding:13px 24px; border-radius:8px; border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--primary); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--primary-dark); box-shadow:var(--shadow-md); }
.btn-accent{ background:var(--accent); color:#241804; }
.btn-accent:hover{ background:#D9922F; box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:var(--border-strong); color:var(--ink); }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-ghost-light{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.35); color:#fff; }
.btn-ghost-light:hover{ background:rgba(255,255,255,.16); }
.btn-lg{ padding:16px 30px; font-size:16px; }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 16px; font-size:13.5px; border-radius:6px; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:1000; background:rgba(247,248,250,.9);
  backdrop-filter:blur(10px); border-bottom:1px solid transparent;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled{ border-color:var(--border); box-shadow:0 2px 16px rgba(15,23,41,.06); background:rgba(247,248,250,.97); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:var(--header-h); }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--ink); }
.brand-mark{ width:34px; height:34px; flex:none; }
.nav-desktop{ display:flex; align-items:center; gap:2px; }
.nav-desktop > li{ position:relative; }
.nav-desktop > li > a{ display:flex; align-items:center; gap:5px; padding:10px 14px; font-size:14.5px; font-weight:600; color:var(--ink); border-radius:7px; }
.nav-desktop > li > a:hover{ background:var(--primary-tint); color:var(--primary); }
.nav-desktop .caret{ width:9px; height:9px; opacity:.6; transition:transform .15s ease; }
.nav-desktop > li:hover .caret{ transform:rotate(180deg); }
.dropdown{
  position:absolute; top:100%; left:0; min-width:280px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-lg);
  padding:10px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-desktop > li:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(4px); }
.dropdown a{ display:block; padding:10px 12px; border-radius:7px; font-size:14px; font-weight:500; }
.dropdown a:hover{ background:var(--primary-tint); color:var(--primary); }
.dropdown a small{ display:block; color:var(--muted-2); font-weight:400; font-size:12.5px; margin-top:1px; }
.header-cta{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; background:none; border:1px solid var(--border-strong); border-radius:7px; padding:8px; cursor:pointer; }
.nav-toggle svg{ width:22px; height:22px; }

/* Mobile nav */
.mobile-nav{ display:none; position:fixed; inset:0; z-index:1100; background:var(--surface); overflow-y:auto; }
.mobile-nav.open{ display:block; }
.mobile-nav-head{ display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid var(--border); }
.mobile-nav-body{ padding:16px 24px 40px; }
.mobile-nav-body details{ border-bottom:1px solid var(--border); padding:14px 0; }
.mobile-nav-body summary{ font-weight:700; font-size:16px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; }
.mobile-nav-body summary::-webkit-details-marker{ display:none; }
.mobile-nav-body a{ display:block; padding:10px 0; font-size:15px; color:var(--muted); }
.mobile-nav-body > a{ display:block; padding:14px 0; border-bottom:1px solid var(--border); font-weight:700; font-size:16px; color:var(--ink); }
.mobile-cta{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }

/* Hero */
.hero{ position:relative; padding:76px 0 40px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(34px,4.6vw,56px); }
.hero .lede{ font-size:18.5px; max-width:520px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin:28px 0 30px; }
.trust-strip{ display:flex; flex-wrap:wrap; gap:10px; }
.trust-chip{
  display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--muted);
  background:var(--surface); border:1px solid var(--border); padding:8px 13px; border-radius:100px;
}
.trust-chip svg{ width:14px; height:14px; color:var(--accent); flex:none; }
.hero-visual{ position:relative; }
.node-dot{ animation:pulse 3s ease-in-out infinite; }
.node-dot.d2{ animation-delay:.6s; }
.node-dot.d3{ animation-delay:1.2s; }
.node-dot.d4{ animation-delay:1.8s; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.45; } }
.node-line{ stroke-dasharray:6 6; animation:dash 22s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset:-240; } }

/* Cards */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:30px; transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:var(--border-strong); }
.card-icon{
  width:46px; height:46px; border-radius:12px; background:var(--primary-tint); color:var(--primary);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ font-size:19px; }
.card p{ font-size:14.8px; margin-bottom:14px; }
.card .learn-more{ font-size:14px; font-weight:700; color:var(--primary); display:inline-flex; align-items:center; gap:6px; }
.card .learn-more svg{ width:14px; height:14px; transition:transform .15s ease; }
.card:hover .learn-more svg{ transform:translateX(3px); }

.grid{ display:grid; gap:22px; }
.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); }

.problem-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; display:flex; gap:14px; }
.problem-card svg{ width:20px; height:20px; color:var(--error); flex:none; margin-top:2px; }
.problem-card p{ margin:0; font-size:14.8px; color:var(--ink); font-weight:500; }

.industry-card{ position:relative; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); background:var(--surface); }
.industry-card .ic-top{ padding:28px 26px 22px; background:linear-gradient(150deg,var(--primary) 0%, var(--primary-dark) 100%); color:#fff; }
.industry-card .ic-top svg{ width:30px; height:30px; color:var(--accent); margin-bottom:14px; }
.industry-card .ic-top h3{ color:#fff; margin-bottom:4px; font-size:19px; }
.industry-card .ic-top span{ font-size:13px; color:rgba(255,255,255,.72); }
.industry-card .ic-body{ padding:20px 26px 26px; }
.industry-card .ic-body p{ font-size:14px; margin-bottom:14px; }

/* Process */
.process-list{ counter-reset:step; display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.process-step{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px 20px; position:relative; }
.process-step .num{ font-family:var(--font-mono); color:var(--accent-ink); background:#FBF1DD; display:inline-block; padding:3px 9px; border-radius:6px; font-size:12.5px; font-weight:700; margin-bottom:14px; }
.process-step h4{ font-size:16px; margin-bottom:6px; }
.process-step p{ font-size:13.5px; margin:0; }

/* Case studies */
.case-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.case-card .cc-head{ padding:26px 26px 16px; }
.case-tag{ font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); }
.case-card h3{ font-size:20px; margin:8px 0 10px; }
.case-illustrative{ display:inline-block; font-size:11px; font-weight:700; background:#FDEFE0; color:var(--accent-ink); padding:3px 9px; border-radius:5px; margin-bottom:10px; }
.case-body{ padding:0 26px 26px; }
.case-stats{ display:flex; gap:22px; padding:18px 26px; border-top:1px solid var(--border); background:var(--surface-alt); }
.case-stats .stat b{ display:block; font-family:var(--font-display); font-size:20px; color:var(--primary); }
.case-stats .stat span{ font-size:12px; color:var(--muted); }

/* Stats band */
.stats-band{ background:var(--primary-dark); color:#fff; padding:56px 0; }
.stats-band .grid-4{ text-align:center; }
.stats-band b{ display:block; font-family:var(--font-display); font-size:34px; color:var(--accent); }
.stats-band span{ font-size:13.5px; color:rgba(255,255,255,.72); }

/* Forms */
.lead-form{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow-md); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:6px; color:var(--ink); }
.field .req{ color:var(--error); }
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border:1px solid var(--border-strong); border-radius:8px;
  font-family:var(--font-body); font-size:14.5px; background:#fff; color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-tint); outline:none; }
.field textarea{ resize:vertical; min-height:96px; }
.form-msg{ padding:12px 16px; border-radius:8px; font-size:14px; margin-bottom:16px; display:none; }
.form-msg.success{ display:block; background:#E7F6EF; color:var(--success); border:1px solid #BEE9D6; }
.form-msg.error{ display:block; background:#FBEAEA; color:var(--error); border:1px solid #F3C6C6; }

/* CTA band */
.cta-band{ background:linear-gradient(135deg,var(--primary) 0%, var(--primary-dark) 100%); border-radius:var(--radius-lg); padding:52px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; position:relative; overflow:hidden; }
.cta-band h3{ color:#fff; font-size:26px; margin-bottom:6px; }
.cta-band p{ color:rgba(255,255,255,.78); margin:0; }

/* Footer */
.site-footer{ background:var(--primary-dark); color:rgba(255,255,255,.75); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:48px; }
.site-footer h5{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; font-family:var(--font-body); font-weight:700; }
.site-footer a{ display:block; padding:6px 0; font-size:14px; color:rgba(255,255,255,.68); }
.site-footer a:hover{ color:#fff; }
.footer-brand{ font-family:var(--font-display); font-weight:700; font-size:20px; color:#fff; margin-bottom:10px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; }

/* Breadcrumbs */
.breadcrumb{ display:flex; gap:8px; align-items:center; font-size:13px; color:var(--muted-2); margin-bottom:18px; flex-wrap:wrap; }
.breadcrumb a{ color:var(--muted-2); }
.breadcrumb a:hover{ color:var(--primary); }

/* Page hero (inner pages) */
.page-hero{ padding:52px 0 60px; background:var(--surface-alt); border-bottom:1px solid var(--border); }
.page-hero h1{ font-size:clamp(30px,4vw,44px); max-width:760px; }
.page-hero .lede{ max-width:620px; font-size:17px; }

/* FAQ */
.faq-item{ border-bottom:1px solid var(--border); padding:18px 0; }
.faq-item summary{ font-weight:700; font-size:15.5px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item p{ margin:12px 0 0; font-size:14.5px; }

/* Badges / tags */
.tag{ display:inline-block; font-size:12px; font-weight:600; padding:4px 10px; border-radius:100px; background:var(--primary-tint); color:var(--primary); margin:2px 4px 2px 0; }

/* Table */
.data-table{ width:100%; border-collapse:collapse; font-size:14px; }
.data-table th{ text-align:left; padding:12px 14px; background:var(--surface-alt); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); border-bottom:1px solid var(--border); }
.data-table td{ padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tr:hover td{ background:var(--surface-alt); }

/* Status pills */
.pill{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:100px; }
.pill-new{ background:#E9EEF6; color:var(--primary); }
.pill-contacted{ background:#FDEFE0; color:var(--accent-ink); }
.pill-qualified{ background:#EAF3FF; color:#1D5FBF; }
.pill-proposal{ background:#F3E8FE; color:#7B2FD8; }
.pill-won{ background:#E7F6EF; color:var(--success); }
.pill-lost{ background:#FBEAEA; color:var(--error); }
.pill-hot{ background:#FBEAEA; color:var(--error); }
.pill-warm{ background:#FDEFE0; color:var(--accent-ink); }
.pill-potential{ background:#E9EEF6; color:var(--primary); }
.pill-low{ background:var(--surface-alt); color:var(--muted); }

/* Utilities */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }
.flex{ display:flex; }
.items-center{ align-items:center; }
.gap-8{ gap:8px; }
.gap-12{ gap:12px; }
.muted{ color:var(--muted); }
.divider{ height:1px; background:var(--border); border:none; margin:40px 0; }

/* Admin shell */
.admin-shell{ display:flex; min-height:100vh; background:var(--bg); }
.admin-sidebar{ width:240px; background:var(--primary-dark); color:#fff; flex:none; padding:24px 16px; }
.admin-sidebar .brand{ color:#fff; padding:0 8px 24px; }
.admin-sidebar a{ display:block; padding:10px 12px; border-radius:7px; font-size:14px; font-weight:600; color:rgba(255,255,255,.72); margin-bottom:2px; }
.admin-sidebar a:hover, .admin-sidebar a.active{ background:rgba(255,255,255,.1); color:#fff; }
.admin-main{ flex:1; padding:32px 36px; max-width:calc(100% - 240px); }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.kpi-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.kpi-card .kpi-val{ font-family:var(--font-display); font-size:28px; }
.kpi-card .kpi-label{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--primary-dark); }
.login-card{ background:#fff; border-radius:var(--radius-lg); padding:40px; width:100%; max-width:400px; box-shadow:var(--shadow-lg); }

/* Responsive */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .process-list{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px){
  .grid-3, .grid-4, .grid-5{ grid-template-columns:repeat(2,1fr); }
  .nav-desktop, .header-cta .btn-outline{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .admin-main{ max-width:100%; }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .process-list{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:32px; flex-direction:column; align-items:flex-start; }
  .section{ padding:56px 0; }
  .admin-sidebar{ display:none; }
  .admin-main{ max-width:100%; padding:20px; }
  .case-stats{ flex-wrap:wrap; }
}
