/* ==========================================================================
   appiPHI Business Solutions — High-Conversion Production Stylesheet
   ========================================================================== */

:root {
  --bg-main: #060913;
  --bg-alt: #0b1021;
  --bg-card: rgba(17, 25, 46, 0.78);
  --bg-card-hover: rgba(24, 36, 68, 0.95);
  --bg-glass: rgba(9, 14, 28, 0.86);
  --border: rgba(148, 163, 184, 0.15);
  --border-highlight: rgba(56, 189, 248, 0.48);
  --border-hi: rgba(56, 189, 248, 0.48);
  --text-main: #f8fafc;
  --txt: #f8fafc;
  --text-secondary: #cbd5e1;
  --txt-sec: #cbd5e1;
  --text-muted: #94a3b8;
  --txt-mut: #94a3b8;
  --accent-blue: #2563eb;
  --blue: #2563eb;
  --accent-cyan: #06b6d4;
  --cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-green: #10b981;
  --green: #10b981;
  --amber: #f59e0b;
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-text: linear-gradient(95deg, #ffffff 0%, #93c5fd 50%, #38bdf8 100%);
  --grad-txt: linear-gradient(95deg, #ffffff 0%, #93c5fd 50%, #38bdf8 100%);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
  --shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 10px 35px -5px rgba(37, 99, 235, 0.45);
  --glow: 0 10px 35px -5px rgba(37, 99, 235, 0.45);
  --radius-sm: 12px;
  --r-sm: 12px;
  --radius-md: 18px;
  --r-md: 18px;
  --radius-lg: 26px;
  --r-lg: 26px;
  --max-w: 1240px;
  --max: 1240px;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-alt: #eef2f9;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.9);
  --border: rgba(15, 23, 42, 0.11);
  --border-highlight: rgba(37, 99, 235, 0.45);
  --border-hi: rgba(37, 99, 235, 0.45);
  --text-main: #0f172a;
  --txt: #0f172a;
  --text-secondary: #334155;
  --txt-sec: #334155;
  --text-muted: #64748b;
  --txt-mut: #64748b;
  --grad-text: linear-gradient(95deg, #0f172a 0%, #1d4ed8 55%, #0284c7 100%);
  --grad-txt: linear-gradient(95deg, #0f172a 0%, #1d4ed8 55%, #0284c7 100%);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(226,232,240,0.92));
  display: grid;
  place-items: center;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.btn) {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.13);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.social-pill a {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.social-pill a:hover {
  transform: scale(1.14);
}

.social-pill img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.35rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 25px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 38px -5px rgba(6, 182, 212, 0.55);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.87rem;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp,
.btn-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.eyebrow img {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Hero Section (Uses assets/hero-bg.png + interactive showcase)
   ========================================================================== */

.hero {
  position: relative;
  padding: 66px 0 78px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.08);
  z-index: 0;
}

[data-theme="light"] .hero-bg {
  opacity: 0.1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(750px 420px at 18% 20%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(650px 420px at 85% 65%, rgba(6, 182, 212, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.35) 0%, var(--bg-main) 100%);
  z-index: 1;
}

[data-theme="light"] .hero-glow {
  background:
    radial-gradient(750px 420px at 18% 20%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(650px 420px at 85% 65%, rgba(6, 182, 212, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, var(--bg-main) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.55rem);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.grad-txt {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 605px;
  margin-bottom: 22px;
}

.hero-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 16px;
  margin-bottom: 26px;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.hero-checks li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 900;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.micro-trust,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.micro-trust strong,
.hero-meta strong {
  color: var(--text-main);
}

/* Interactive Hero Showcase Card */
.hero-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.showcase-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0f172a;
}

.showcase-stage .showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s ease;
}

.showcase-stage .showcase-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.showcase-stage:hover .showcase-slide.active {
  transform: scale(1.02);
}

.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 9, 19, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.showcase-nav:hover {
  background: rgba(37, 99, 235, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.showcase-nav.prev {
  left: 12px;
}

.showcase-nav.next {
  right: 12px;
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 4px 6px 0;
}

.showcase-caption {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.showcase-dots {
  display: flex;
  gap: 6px;
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.showcase-dot.active {
  width: 24px;
  background: var(--accent-cyan);
}

/* ==========================================================================
   Trust & Credentials Strip
   ========================================================================== */

.trust-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 22px;
  align-items: center;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.trust-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.trust-num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-badge-img {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  padding: 6px;
  max-height: 100px;
  width: auto;
  margin: 0 auto;
}

.trust-sa-flag {
  width: 72px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Pain-Point Solution Finder
   ========================================================================== */

.router-bar {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.router-head {
  text-align: center;
  margin-bottom: 20px;
}

.router-head span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.router-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.router-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
  color: var(--text-main);
  font-family: inherit;
}

.router-pill:hover,
.router-pill.active {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.18);
}

.router-pill small {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.router-pill strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.35;
}

.router-pill span {
  font-size: 0.81rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Layout & Decorative Divider
   ========================================================================== */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.ornament-divider {
  width: 210px;
  height: auto;
  margin: 16px auto 0;
  opacity: 0.45;
  filter: invert(1);
}

[data-theme="light"] .ornament-divider {
  filter: none;
  opacity: 0.35;
}

/* ==========================================================================
   Core Services & Comparison Table
   ========================================================================== */

.services-stack {
  display: grid;
  gap: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-row:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.service-row.reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.service-row.reverse .service-media {
  order: -1;
}

.service-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.service-body h3 {
  font-size: clamp(1.38rem, 2.2vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.pain-callout,
.service-question {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--amber);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.service-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.outcome-bullets {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 14px 0 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.outcome-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.outcome-bullets li::before {
  content: "→";
  color: var(--accent-cyan);
  font-weight: 800;
}

.service-cta-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9.5;
  background: #0f172a;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-row:hover .service-media img {
  transform: scale(1.04);
}

/* Comparison Table */
.comp-wrap {
  margin-top: 48px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comp-table th,
.comp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.comp-table th.hi-col,
.comp-table td.hi-col {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-main);
  font-weight: 700;
}

.comp-table th.hi-col {
  color: var(--accent-cyan);
  border-top: 2px solid var(--accent-cyan);
}

/* ==========================================================================
   Pre-Built Apps Portfolio
   ========================================================================== */

.apps-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card.highlighted {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--accent-cyan), var(--shadow-lg);
  transform: translateY(-4px);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.app-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.app-card:hover .app-thumb img {
  transform: scale(1.04);
}

.app-zoom-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-info h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.app-info p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: 12px;
  flex: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.app-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
}

[data-theme="light"] .app-tags span {
  color: #1d4ed8;
}

.app-quote-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-highlight);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
  font-family: inherit;
}

.app-quote-btn:hover {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   3D Icon Feature & Integration Grids
   ========================================================================== */

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.tab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

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

.icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.icon-3d-wrap {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: grid;
  place-items: center;
  padding: 7px;
  flex-shrink: 0;
}

.icon-3d-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.icon-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.icon-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-subheading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-subheading:first-of-type {
  margin-top: 0;
}

.category-subheading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   Our Vision Section
   ========================================================================== */

.vision-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  align-items: center;
}

.vision-logo-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.vision-logo-card img {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 8px;
}

.vision-logo-card span {
  display: block;
  font-weight: 800;
  color: #0f172a;
  font-size: 1.12rem;
}

.vision-content h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.vision-content p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Contact Section, Brief Builder & Embedded Form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-list small {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-list strong,
.contact-list a {
  font-size: 1rem;
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--accent-cyan);
}

.goal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.goal-chip {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}

.goal-chip:hover {
  border-color: var(--border-highlight);
}

.goal-chip.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.16);
  color: var(--text-main);
}

.form-embed-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.form-embed-wrap iframe {
  width: 100%;
  height: 660px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox-inner {
  max-width: 840px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.lightbox-inner img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(6, 9, 19, 0.8);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 34px;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

@media (max-width: 1040px) {
  .hero-inner,
  .trust-grid,
  .router-pills,
  .service-row,
  .service-row.reverse,
  .vision-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-media {
    order: 0;
  }
  .apps-grid,
  .icon-cards-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vision-logo-card {
    max-width: 200px;
  }
}

@media (max-width: 760px) {
  .burger {
    display: inline-grid;
    place-items: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    align-items: stretch;
  }
  body.nav-open .nav-links {
    display: flex;
  }
  .social-pill {
    display: none;
  }
  .apps-grid,
  .icon-cards-grid,
  .footer-grid,
  .hero-checks {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .service-row,
  .vision-box,
  .contact-card {
    padding: 24px;
  }
}
