:root {
  --bg: #080B14;
  --surface: #101626;
  --surface-2: #161F35;
  --surface-3: #1E2A47;
  --text: #EEF2FF;
  --muted: #94A0B8;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(43, 140, 196, 0.55);
  --a1: #2B8CC4;
  --a2: #00D2FF;
  --a3: #FF6B1A;
  --a4: #FFB830;
  --ok: #10B981;
  --nav-bg: rgba(8, 11, 20, 0.84);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --grid-line: rgba(255, 255, 255, 0.028);
  --code-bg: #0A0E1A;
}

:root[data-theme="light"] {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #EBF1FA;
  --surface-3: #DCE6F5;
  --text: #0F172A;
  --muted: #52607A;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(33, 118, 174, 0.45);
  --a1: #1B6CA8;
  --a2: #0088CC;
  --a3: #E8500E;
  --a4: #F59E0B;
  --ok: #059669;
  --nav-bg: rgba(244, 247, 252, 0.88);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --grid-line: rgba(15, 23, 42, 0.035);
  --code-bg: #0D1324;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-cta-item {
  display: none;
}

h1, h2, h3, h4, .logo {
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

section {
  padding: 96px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* Signature Blue-to-Flame Gradient matching the Okenxo Logo */
.grad {
  background: linear-gradient(90deg, var(--a2), #4FB3E8 35%, var(--a3) 72%, var(--a4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll Progress Indicator */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3), var(--a4));
  z-index: 150;
  transition: width 0.08s linear;
}

/* Reusable Okenxo Flame-Ring "O" Brand Mark Styling */
.okx-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38), 0 0 14px rgba(255, 107, 26, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.okx-logo-mark img,
.okx-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.okx-logo-mark.lg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.okx-logo-mark.md {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.okx-logo-mark.sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo:hover .okx-logo-mark {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.35), 0 0 18px rgba(0, 210, 255, 0.3);
}

.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-txt strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-txt small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--text);
}

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

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

.icon-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.burger {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn.pri {
  background: linear-gradient(135deg, var(--a1), #1E78B4 45%, var(--a3));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(255, 107, 26, 0.28);
}

.btn.pri:hover {
  box-shadow: 0 14px 32px rgba(255, 107, 26, 0.42);
}

.btn.sm {
  padding: 9px 16px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* Row-by-Row Sequential Scroll Reveal Engine */
.rv-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.rv-item.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding: 146px 0 96px;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(43, 140, 196, 0.15), transparent 42%),
    radial-gradient(circle at 86% 26%, rgba(255, 107, 26, 0.12), transparent 40%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 550px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.81rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-pill:hover {
  border-color: var(--a2);
  color: var(--text);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-trust b {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
}

.hero-trust span {
  font-size: 0.83rem;
  color: var(--muted);
}

/* Interactive Live Product & Architecture Preview Window */
.preview-win {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}

.win-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
}

.win-tabs {
  display: flex;
  gap: 6px;
}

.win-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.win-tab.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.win-body {
  padding: 22px;
}

.win-pane {
  display: none;
}

.win-pane.active {
  display: block;
}

.ui-preview-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.ui-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.ui-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--ok);
  font-weight: 600;
  white-space: nowrap;
}

.ui-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ui-metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.ui-metric-tile small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.ui-metric-tile strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.94rem;
  color: var(--text);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 68px;
  margin-top: 14px;
  padding: 10px 12px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.chart-bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--a3), var(--a1));
  border-radius: 4px 4px 0 0;
  display: block;
}

.code-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--code-bg);
  color: #CFD3FF;
  font: 0.8rem/1.7 "JetBrains Mono", ui-monospace, monospace;
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre;
}

.code-card .k { color: #FF7AB6; }
.code-card .s { color: #6EE7FF; }
.code-card .c { color: #6B6F93; }
.code-card .fn { color: #FFB830; }

.win-foot {
  padding: 11px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  color: var(--muted);
}

/* Section Headings */
.head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}

.head small {
  color: var(--a2);
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  display: block;
  margin-bottom: 8px;
}

.head h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.head p {
  color: var(--muted);
  font-size: 1rem;
}

/* About Section & Stats Row */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.about-highlights div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-highlights i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.14);
  color: var(--a2);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.78rem;
}

.about-code-shell {
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: #94A0B8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card b {
  font: 800 2.5rem "Outfit", sans-serif;
  display: block;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Cards & Multi-Row Grids */
.services-grid,
.work-grid,
.products-grid,
.pricing-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.card {
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  box-shadow: 0 10px 22px rgba(43, 140, 196, 0.28);
}

.card h3 {
  font-size: 1.24rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.pills span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
}

/* Filter Bar & Case Studies */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.f-tab {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.f-tab:hover, .f-tab.active {
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  border-color: transparent;
}

.work-card {
  padding: 0;
}

.work-head {
  padding: 22px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.work-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--a2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.work-kpi {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--ok);
  font-weight: 600;
}

.work-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--a2);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Technology Stack Cards */
.tech-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.tech-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--a2);
  flex-shrink: 0;
}

.tech-card b {
  display: block;
  font-size: 0.94rem;
}

.tech-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Feature Checklists */
.feat-list {
  list-style: none;
  margin: 14px 0 20px;
  display: grid;
  gap: 8px;
}

.feat-list li {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feat-list li::before {
  content: "✓";
  color: var(--a3);
  font-weight: 700;
}

.card-acts {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Process Cards */
.process-grid .card::before {
  counter-increment: step;
  content: "0" counter(step);
  font: 800 2.6rem "Outfit", sans-serif;
  position: absolute;
  right: 18px;
  top: 10px;
  opacity: 0.12;
}

/* Interactive Project Scope & Cost Estimator */
.est-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 36px;
  align-items: center;
}

.est-row {
  margin-bottom: 20px;
}

.est-row:last-child {
  margin-bottom: 0;
}

.est-lbl {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-opt {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-opt.sel {
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  border-color: transparent;
}

.est-result {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.est-val {
  font: 800 2.2rem "Outfit", sans-serif;
  margin: 8px 0 4px;
}

.est-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.83rem;
  color: var(--a2);
  display: block;
  margin-bottom: 16px;
}

/* Pricing Cards */
.tier.pop {
  border-color: var(--a3);
}

.pop-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.price-num {
  font: 800 2rem "Outfit", sans-serif;
  margin: 10px 0 4px;
}

.price-sub {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Testimonials & FAQ */
.quote-txt {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.faq-list {
  max-width: 820px;
  margin: 56px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 14px;
}

.faq-q i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  color: var(--a3);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 40px;
  align-items: start;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--a2);
}

/* Footer */
footer {
  padding: 64px 0 38px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 42px;
}

.foot-col h4 {
  color: var(--text);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.foot-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-bot {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--a2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 300;
  display: none;
}

.toast.show {
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  header {
    height: 64px;
  }
  .nav {
    height: 64px;
  }
  html {
    scroll-padding-top: 64px;
  }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .est-panel {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .est-panel > div {
    min-width: 0;
    width: 100%;
  }
  .services-grid,
  .work-grid,
  .products-grid,
  .pricing-grid,
  .testimonials-grid,
  .process-grid,
  .stack-grid,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools .btn {
    display: none !important;
  }
  .tools {
    gap: 8px;
  }
  .burger {
    display: grid;
  }
  .nav-cta-item {
    display: block;
    width: 100%;
  }
  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
  }
  nav ul {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--surface);
    border-bottom: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 6% max(36px, env(safe-area-inset-bottom));
    gap: 8px;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  nav ul.open {
    display: flex;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s ease;
  }
  nav ul li a:hover,
  nav ul li a:active,
  nav ul li a.active {
    border-color: var(--a1);
    background: var(--surface-3);
    color: var(--a2);
    transform: translateX(4px);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .services-grid,
  .work-grid,
  .products-grid,
  .pricing-grid,
  .testimonials-grid,
  .process-grid,
  .stack-grid,
  .stats-row,
  .form-row,
  .about-highlights {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 98px 0 54px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .logo-txt strong {
    font-size: 1.1rem;
  }
  .logo-txt small {
    font-size: 0.58rem;
  }
  .okx-logo-mark.lg {
    width: 34px;
    height: 34px;
  }
  /* Estimator Mobile Layout */
  .est-panel {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .chip-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .chip-opt {
    width: 100%;
    padding: 11px 8px;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    min-width: 0;
    display: inline-flex;
    align-items: center;
  }
  .est-result {
    padding: 20px 14px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .est-val {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
  }
  .est-time {
    font-size: 0.78rem;
  }
  .win-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .win-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .win-tabs::-webkit-scrollbar {
    display: none;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 26px 18px max(24px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .chip-group {
    grid-template-columns: 1fr;
  }
  .chip-opt {
    text-align: left;
    justify-content: flex-start;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   OKENXO LOCAL AI ASSISTANT & BUDGET ESTIMATOR STYLES
   ========================================================================== */
.ai-widget-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.ai-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid rgba(43, 140, 196, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 20px rgba(43, 140, 196, 0.25);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ai-launcher-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--a2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 26, 0.35);
}

.ai-launcher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--a1);
}

.ai-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-launcher-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.ai-launcher-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.ai-launcher-text small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a2);
  font-weight: 600;
}

.ai-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  margin-left: 2px;
  animation: aiPulseRing 2s infinite ease-out;
}

@keyframes aiPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Chat Panel Window */
.ai-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 110px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.58), 0 0 40px rgba(43, 140, 196, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ai-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}

.ai-panel-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-panel-branding strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.ai-online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.ai-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.ai-panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.ai-ctrl-btn:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--border-hover);
}

/* Quick Prompts Ribbon */
.ai-quick-ribbon {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 9px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  flex-shrink: 0;
}

.ai-quick-ribbon::-webkit-scrollbar {
  display: none;
}

.ai-ribbon-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-ribbon-chip:hover {
  background: var(--surface-3);
  border-color: var(--a1);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Chat Messages Flow */
.ai-messages-flow {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-messages-flow::-webkit-scrollbar {
  width: 5px;
}

.ai-messages-flow::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.ai-msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ai-msg-row.user {
  align-items: flex-end;
}

.ai-msg-row.ai {
  align-items: flex-start;
}

.ai-bubble-user {
  background: linear-gradient(135deg, var(--a1), #165688);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 16px 16px 3px 16px;
  max-width: 86%;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(43, 140, 196, 0.28);
}

.ai-bubble-ai {
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 15px;
  border-radius: 16px 16px 16px 3px;
  max-width: 92%;
  font-size: 0.88rem;
  line-height: 1.54;
  border: 1px solid var(--border);
  word-break: break-word;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.ai-bubble-ai p {
  margin: 0 0 8px 0;
}

.ai-bubble-ai p:last-child {
  margin-bottom: 0;
}

.ai-bubble-ai ul {
  margin: 6px 0 8px 18px;
  padding: 0;
}

.ai-bubble-ai li {
  margin-bottom: 4px;
}

.ai-bubble-ai strong {
  color: var(--text);
  font-weight: 700;
}

/* AI Estimate Card Inside Chat */
.ai-est-box {
  background: var(--surface-3);
  border: 1px solid rgba(255, 107, 26, 0.35);
  border-left: 4px solid var(--a3);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 6px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ai-est-head {
  font-size: 0.74rem;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  color: var(--a2);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ai-est-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FF931E;
  margin-bottom: 2px;
}

.ai-est-time {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.ai-est-meta {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.ai-est-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ai-act-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-act-btn:hover {
  background: var(--surface);
  border-color: var(--a1);
  transform: translateY(-1px);
}

.ai-act-btn.primary {
  background: linear-gradient(135deg, var(--a3), #e84a15);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
}

.ai-act-btn.primary:hover {
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.35);
  transform: translateY(-1px);
}

/* Typing Indicator */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-radius: 14px 14px 14px 3px;
  border: 1px solid var(--border);
  width: fit-content;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a2);
  animation: aiTypingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* AI Input Form */
.ai-input-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  align-items: center;
  flex-shrink: 0;
}

#aiUserInput {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

#aiUserInput:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(43, 140, 196, 0.2);
}

.ai-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--a1), #1f77b4);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.ai-submit-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--a2), var(--a1));
}

.ai-hero-btn {
  background: linear-gradient(135deg, rgba(43, 140, 196, 0.18), rgba(255, 107, 26, 0.18));
  border: 1.5px solid var(--a1);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(43, 140, 196, 0.2);
  transition: all 0.25s ease;
}

.ai-hero-btn:hover {
  border-color: var(--a3);
  box-shadow: 0 0 24px rgba(255, 107, 26, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  body.ai-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.ai-open .ai-launcher-btn {
    display: none !important;
  }

  .ai-widget-wrapper {
    position: static;
  }

  .ai-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    z-index: 99999;
    box-shadow: none;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    display: flex;
    flex-direction: column;
  }

  .ai-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ai-panel-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
  }

  .ai-quick-ribbon {
    padding: 10px 14px;
  }

  .ai-messages-flow {
    padding: 14px;
    flex: 1;
  }

  .ai-bubble-ai {
    max-width: 95%;
  }

  .ai-bubble-user {
    max-width: 90%;
  }

  .ai-input-form {
    padding: 12px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: var(--surface-2);
  }

  .ai-launcher-btn {
    bottom: 20px;
    right: 18px;
    padding: 8px 16px 8px 8px;
  }
}
