/* ============================================================
   iWerk Infosolutions LLP – Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #3B82F6;
  --accent:        #06B6D4;
  --accent-dark:   #0891B2;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;

  --bg:            #FFFFFF;
  --bg-2:          #F8FAFC;
  --bg-3:          #F1F5F9;
  --card:          #FFFFFF;
  --border:        #E2E8F0;
  --border-2:      #CBD5E1;

  --text:          #0F172A;
  --text-2:        #334155;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;

  --navy:          #0F172A;
  --navy-2:        #1E293B;
  --navy-3:        #334155;

  --radius:        0.75rem;
  --radius-sm:     0.5rem;
  --radius-lg:     1.25rem;
  --radius-xl:     2rem;

  --shadow-sm:     0 1px 3px rgb(0 0 0/.08), 0 1px 2px rgb(0 0 0/.06);
  --shadow:        0 4px 6px -1px rgb(0 0 0/.1), 0 2px 4px -2px rgb(0 0 0/.1);
  --shadow-md:     0 10px 15px -3px rgb(0 0 0/.1), 0 4px 6px -4px rgb(0 0 0/.1);
  --shadow-lg:     0 20px 25px -5px rgb(0 0 0/.1), 0 8px 10px -6px rgb(0 0 0/.1);
  --shadow-xl:     0 25px 50px -12px rgb(0 0 0/.25);

  --nav-h:         72px;
  --container:     1280px;

  --transition:    0.2s ease;
  --transition-md: 0.35s ease;
}

[data-theme="dark"] {
  --bg:         #0F172A;
  --bg-2:       #1E293B;
  --bg-3:       #334155;
  --card:       #1E293B;
  --border:     #334155;
  --border-2:   #475569;
  --text:       #F1F5F9;
  --text-2:     #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --shadow-sm:  0 1px 3px rgb(0 0 0/.3);
  --shadow:     0 4px 6px -1px rgb(0 0 0/.4);
  --shadow-md:  0 10px 15px -3px rgb(0 0 0/.4);
  --shadow-lg:  0 20px 25px -5px rgb(0 0 0/.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.25rem,5vw,4rem); }
h2 { font-size: clamp(1.75rem,3.5vw,3rem); }
h3 { font-size: clamp(1.25rem,2.5vw,2rem); }
h4 { font-size: clamp(1.1rem,2vw,1.5rem); }
p  { color: var(--text-2); }

/* ── Layout Utilities ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.grid-2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Section Headers ── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  background: rgb(37 99 235/.1); padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub   { color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 0 rgb(37 99 235/.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-ghost  { background: rgb(255 255 255/.1); color: #fff; border-color: rgb(255 255 255/.3); }
.btn-ghost:hover { background: rgb(255 255 255/.2); transform: translateY(-2px); }
.btn-sm     { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg     { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full   { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: all var(--transition-md);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-flat  { box-shadow: none; }
.card-flat:hover { box-shadow: var(--shadow-md); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: rgb(37 99 235/.12); color: var(--primary); }
.badge-accent  { background: rgb(6 182 212/.12); color: var(--accent-dark); }
.badge-success { background: rgb(16 185 129/.12); color: var(--success); }
.badge-warning { background: rgb(245 158 11/.12); color: var(--warning); }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgb(255 255 255/.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="dark"] .navbar { background: rgb(15 23 42/.92); }
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
}
.nav-logo span.accent { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); font-weight: 500;
  font-size: 0.9rem; color: var(--text-2); transition: all var(--transition);
  white-space: nowrap; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgb(37 99 235/.08); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  min-width: 240px; padding: 0.75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-2); transition: all var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg-2); color: var(--primary); }
.nav-dropdown-item .icon { font-size: 1.1rem; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-theme-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition); color: var(--text);
}
.nav-theme-btn:hover { background: var(--bg-3); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); overflow-y: auto; padding: 1.5rem;
  transform: translateX(100%); transition: transform var(--transition-md);
  z-index: 999; display: none;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-link {
  display: block; padding: 0.85rem 1rem; border-radius: var(--radius);
  font-weight: 500; color: var(--text-2); transition: all var(--transition);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link:hover { color: var(--primary); background: var(--bg-2); }
.nav-mobile-section { margin-top: 1rem; margin-bottom: 0.5rem; }
.nav-mobile-section-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); padding: 0.5rem 1rem;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
  position: relative; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; opacity: 0.5; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgb(37 99 235/.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgb(6 182 212/.15) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 4rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgb(255 255 255/.08); border: 1px solid rgb(255 255 255/.15);
  backdrop-filter: blur(8px); color: #93C5FD;
  padding: 0.5rem 1.25rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.5rem,6vw,5rem); color: #fff; margin-bottom: 1.5rem; font-weight: 800;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #60A5FA, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: rgb(255 255 255/.7); font-size: 1.2rem; max-width: 680px; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgb(255 255 255/.1);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.hero-stat .label { font-size: 0.85rem; color: rgb(255 255 255/.6); margin-top: 0.15rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--navy); color: rgb(255 255 255/.7); }
.footer-main { padding: 5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-brand .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
}
.footer-brand .logo-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  font-size: 1.25rem; color: #fff;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgb(255 255 255/.08); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: rgb(255 255 255/.7); transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.9rem; color: rgb(255 255 255/.6); padding: 0.3rem 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgb(255 255 255/.08); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.85rem; color: rgb(255 255 255/.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 8rem 0 4rem; text-align: center; color: #fff;
}
.page-header .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgb(255 255 255/.5); margin-bottom: 1.5rem;
}
.page-header .breadcrumb a { color: rgb(255 255 255/.7); transition: color var(--transition); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header h1 { color: #fff; margin-bottom: 1rem; }
.page-header p  { color: rgb(255 255 255/.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ══════════════════════════════════════════
   SERVICES / FEATURES GRID
══════════════════════════════════════════ */
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition-md); cursor: pointer;
  text-decoration: none; display: block; color: var(--text);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.service-card .icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem; color: #fff;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.9rem; color: var(--text-muted); }
.service-card .arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-top: 1rem;
  transition: gap var(--transition);
}
.service-card:hover .arrow { gap: 0.65rem; }

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip { background: var(--primary); color: #fff; padding: 3rem 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.stat-item { padding: 1rem; border-right: 1px solid rgb(255 255 255/.15); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 2.5rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-item .label { font-size: 0.9rem; color: rgb(255 255 255/.75); margin-top: 0.25rem; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  background: var(--bg-2); padding: 0.5rem; border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}
.tab-btn {
  flex: 1; min-width: 120px; padding: 0.65rem 1rem; border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem; cursor: pointer; border: none;
  background: transparent; color: var(--text-muted); transition: all var(--transition);
}
.tab-btn.active {
  background: var(--card); color: var(--primary); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════ */
.accordion-item {
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem;
  overflow: hidden; transition: all var(--transition);
}
.accordion-item.open { border-color: var(--primary); }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600;
  background: var(--card); transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg-2); }
.accordion-icon { font-size: 1.25rem; transition: transform var(--transition); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem; background: var(--bg-2);
}
.accordion-item.open .accordion-body { max-height: 600px; padding: 1.25rem 1.5rem; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgb(0 0 0/.6);
  backdrop-filter: blur(4px); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius-xl);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(20px); } }
.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-close {
  background: var(--bg-2); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 1.5rem 2rem 2rem; }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.95rem; transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ══════════════════════════════════════════
   RANGE SLIDER
══════════════════════════════════════════ */
input[type="range"] {
  width: 100%; accent-color: var(--primary); cursor: pointer; height: 6px;
}

/* ══════════════════════════════════════════
   PROGRESS / STEPS
══════════════════════════════════════════ */
.progress-bar { background: var(--bg-3); border-radius: 100px; height: 8px; }
.progress-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s ease;
}
.steps { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.step {
  flex: 1; min-width: 80px; padding: 0.75rem; border-radius: var(--radius);
  text-align: center; background: var(--bg-2); border: 2px solid var(--border);
  transition: all var(--transition);
}
.step.active { border-color: var(--primary); background: rgb(37 99 235/.08); }
.step.done   { border-color: var(--success); background: rgb(16 185 129/.08); }
.step .step-num { font-weight: 700; font-size: 1.1rem; color: var(--text-muted); }
.step.active .step-num { color: var(--primary); }
.step.done   .step-num { color: var(--success); }
.step .step-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ══════════════════════════════════════════
   INDUSTRY / SERVICE CARDS
══════════════════════════════════════════ */
.industry-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-decoration: none; color: var(--text);
  transition: all var(--transition-md);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.industry-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.industry-card .icon { font-size: 2.5rem; }
.industry-card h3 { font-size: 1.1rem; }
.industry-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   TECH STACK BADGES
══════════════════════════════════════════ */
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.tech-badge {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600; transition: all var(--transition);
}
.tech-badge:hover { border-color: var(--primary); background: rgb(37 99 235/.06); transform: scale(1.04); }
.tech-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ══════════════════════════════════════════
   SUCCESS STORIES
══════════════════════════════════════════ */
.story-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-md);
}
.story-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.story-header { padding: 1.5rem 2rem; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.story-body { padding: 2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.25rem 0; }
.metric { text-align: center; padding: 1rem; background: var(--bg-2); border-radius: var(--radius); }
.metric .value { font-size: 1.75rem; font-weight: 800; color: var(--primary); font-family: 'Space Grotesk', sans-serif; }
.metric .key   { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ══════════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════════ */
.chat-widget {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1500;
}
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; box-shadow: var(--shadow-xl);
  transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-toggle .pulse-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--primary); animation: pulseRing 2s infinite;
}
@keyframes pulseRing { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(1.4)} }
.chat-panel {
  position: absolute; bottom: calc(100% + 1rem); right: 0;
  width: 360px; background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  overflow: hidden; display: none;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } }
.chat-panel.open { display: flex; flex-direction: column; }
.chat-head {
  padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.chat-head-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgb(255 255 255/.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  position: relative;
}
.chat-avatar::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--primary);
}
.chat-head h4 { font-size: 0.95rem; font-weight: 700; }
.chat-head p  { font-size: 0.75rem; opacity: .8; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.25rem; padding: 0.25rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; max-height: 300px; }
.chat-msg { display: flex; gap: 0.5rem; align-items: flex-end; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 80%; padding: 0.75rem 1rem; border-radius: var(--radius-lg);
  font-size: 0.875rem; line-height: 1.5;
}
.chat-msg.bot .chat-bubble  { background: var(--bg-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-input-row {
  display: flex; gap: 0.5rem; padding: 1rem;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; padding: 0.65rem 1rem; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.875rem; outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--primary-dark); }

/* ══════════════════════════════════════════
   ROI CALCULATOR
══════════════════════════════════════════ */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.roi-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; }
.roi-output { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: var(--radius-xl); padding: 2.5rem; color: #fff; }
.roi-result { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgb(255 255 255/.1); }
.roi-result:last-child { border-bottom: none; margin-bottom: 0; }
.roi-result .label { font-size: 0.85rem; color: rgb(255 255 255/.6); margin-bottom: 0.35rem; }
.roi-result .value { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: #60A5FA; }

/* ══════════════════════════════════════════
   TOOL PAGES
══════════════════════════════════════════ */
.tool-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
}
.tool-output {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin-top: 2rem;
  display: none;
}
.tool-output.visible { display: block; }

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.trust-strip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.trust-item .icon { color: var(--primary); font-size: 1.1rem; }

/* ══════════════════════════════════════════
   AGENT CARDS (Marketplace)
══════════════════════════════════════════ */
.agent-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-md);
}
.agent-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.agent-header { padding: 2rem 2rem 1rem; }
.agent-avatar {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1rem; color: #fff;
}
.agent-body { padding: 0 2rem 2rem; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.agent-tag { font-size: 0.75rem; padding: 0.25rem 0.65rem; background: var(--bg-2); border-radius: 100px; color: var(--text-muted); }
.agent-footer {
  padding: 1rem 2rem; background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes fadeUp     { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes fadeIn     { from{opacity:0} to{opacity:1} }
@keyframes spin       { to{transform:rotate(360deg)} }
@keyframes float      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.animate-fade-up    { animation: fadeUp 0.6s ease both; }
.animate-fade-in    { animation: fadeIn 0.5s ease both; }
.animate-float      { animation: float 4s ease-in-out infinite; }

/* Intersection Observer driven */
.reveal { opacity:0; transform:translateY(30px); transition:all 0.7s ease; }
.reveal.visible { 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; }

/* Loading spinner */
.spinner {
  width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; display: inline-block;
}

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.fw-bold      { font-weight: 700; }
.fw-600       { font-weight: 600; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem;   } .mt-2 { margin-top: 1rem;    }
.mt-3 { margin-top: 1.5rem;   } .mt-4 { margin-top: 2rem;    }
.d-none  { display: none; }
.w-full  { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2);
}
.highlight-box {
  background: linear-gradient(135deg, rgb(37 99 235/.08), rgb(6 182 212/.08));
  border: 1px solid rgb(37 99 235/.2); border-radius: var(--radius-lg); padding: 1.5rem;
}
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl); padding: 3rem; color: #fff; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgb(255 255 255/.8); margin-bottom: 2rem; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }

  .grid-2, .grid-3, .roi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .metrics-grid { grid-template-columns: 1fr; }

  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 5rem 0; }
  .page-header { padding: 6rem 0 3rem; }

  .chat-panel { width: 320px; }

  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid rgb(255 255 255/.15); }
  .tabs-nav   { flex-direction: column; }
  .tab-btn    { flex: none; }
  .trust-items { gap: 1rem; }
}
