:root {
  --logano-dark: #0b1020;
  --logano-dark-2: #131a33;
  --logano-accent: #6c5ce7;
  --logano-accent-2: #00cec9;
  --logano-text: #1f2937;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--logano-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Navbar */
.logano-navbar {
  background: var(--logano-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.logano-navbar .nav-link { color: #cbd5e1; }
.logano-navbar .nav-link:hover { color: #fff; }

.brand-word { letter-spacing: .015em; }
.brand-accent { color: var(--logano-accent-2); }
.navbar-brand img { filter: drop-shadow(0 2px 8px rgba(108, 92, 231, .45)); }

/* Buttons */
.btn-accent {
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover { filter: brightness(1.1); color: #fff; }

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(108, 92, 231, .35), transparent),
              radial-gradient(900px 500px at 10% 110%, rgba(0, 206, 201, .25), transparent),
              var(--logano-dark);
  color: #fff;
}
.hero-sub { color: #b6c0d4; max-width: 38rem; }
.hero-badge {
  background: rgba(108, 92, 231, .25);
  border: 1px solid rgba(108, 92, 231, .6);
  color: #cfc8ff;
  font-weight: 500;
}
.gradient-text {
  background: linear-gradient(90deg, var(--logano-accent), var(--logano-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
  box-shadow: 0 0 80px rgba(108, 92, 231, .55);
}
.stats-row .stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stats-row .stat-label { color: #93a1bd; font-size: .9rem; }

/* Page headers */
.page-head {
  background: linear-gradient(135deg, var(--logano-dark), var(--logano-dark-2));
}

/* Cards */
.service-card {
  border: 1px solid #e8eaf1;
  border-radius: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(13, 18, 38, .12);
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
}
.service-icon-lg { width: 4rem; height: 4rem; font-size: 2rem; }

.category-title {
  border-left: 4px solid var(--logano-accent);
  padding-left: .75rem;
}
.category-title .bi { color: var(--logano-accent); }

.feature-list li { padding: .3rem 0; }
.feature-list .bi-check-circle-fill { color: var(--logano-accent-2); }

.cta-card { border: 1px solid #e8eaf1; border-radius: 1rem; position: sticky; top: 90px; }
.value-card { border: 1px solid #e8eaf1; border-radius: 1rem; }

.popular-badge {
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
}

/* Platform band (AIInsights365) */
.platform-band {
  background: radial-gradient(900px 500px at 50% 0%, rgba(108, 92, 231, .3), transparent),
              var(--logano-dark-2);
}
.platform-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
}

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--logano-dark), #241b4d); }

/* Demo page */
.demo-dark { background: var(--logano-dark-2); }

.demo-chat {
  border: 1px solid #e8eaf1;
  border-radius: 1rem;
  overflow: hidden;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  padding: .8rem 1rem;
  background: var(--logano-dark);
  color: #fff;
  font-weight: 600;
}
.demo-chat-body {
  height: 320px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: #f7f8fc;
}
.chat-bubble {
  max-width: 85%;
  padding: .6rem .9rem;
  border-radius: 1rem;
  font-size: .9rem;
  line-height: 1.45;
}
.chat-bubble.bot {
  background: #fff;
  border: 1px solid #e8eaf1;
  border-bottom-left-radius: .25rem;
  align-self: flex-start;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
  color: #fff;
  border-bottom-right-radius: .25rem;
  align-self: flex-end;
}
.demo-chat-input {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  background: #fff;
  border-top: 1px solid #e8eaf1;
}
.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #9aa7c2;
  animation: blink 1s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.kpi-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .9rem;
  padding: 1rem;
  color: #fff;
}
.kpi-label { font-size: .75rem; color: #93a1bd; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.6rem; font-weight: 800; }
.kpi-delta { font-size: .78rem; }
.kpi-delta.up { color: #34d399; }
.kpi-delta.down { color: #f87171; }

.chart-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .9rem;
  padding: 1rem;
}
.chart-card h6 { color: #cbd5e1; font-size: .82rem; margin-bottom: .75rem; }

.report-card { border: 1px solid #e8eaf1; border-radius: 1rem; }
.report-text { line-height: 1.7; color: #475569; transition: opacity .25s ease; }

/* Per-service demo widgets */
.demo-card { position: relative; }
.demo-play { font-size: .8rem; font-weight: 600; color: var(--logano-accent); }

.kpi-card.kpi-light {
  background: #fff;
  border: 1px solid #e8eaf1;
  color: var(--logano-text);
}
.kpi-card.kpi-light .kpi-label { color: #94a3b8; }
.chart-card.chart-light {
  background: #fff;
  border: 1px solid #e8eaf1;
}
.chart-card.chart-light h6 { color: #475569; }

.step-list li {
  padding: .55rem .75rem;
  border-radius: .6rem;
  margin-bottom: .35rem;
  border: 1px solid #eef0f6;
  color: #475569;
  transition: all .2s ease;
}
.step-list li i { margin-right: .5rem; color: #94a3b8; }
.step-list li.active { border-color: var(--logano-accent); background: rgba(108, 92, 231, .06); }
.step-list li.done { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }
.step-list li.done i { color: #16a34a; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-console {
  background: var(--logano-dark);
  color: #a5f3fc;
  border-radius: .6rem;
  font-family: Consolas, monospace;
  font-size: .8rem;
  padding: .75rem 1rem;
  height: 130px;
  overflow-y: auto;
}
.sec-console { height: 190px; }
.sec-grade {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--logano-accent), var(--logano-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-table td { transition: background .3s ease; }
.demo-table td.cleaned { background: #f0fdf4; color: #166534; font-weight: 500; }
.demo-table tr.dup-row td { text-decoration: line-through; opacity: .45; }

.nlp-doc { line-height: 1.9; color: #475569; }
.nlp-doc span[data-ent] { padding: .05rem .15rem; border-radius: .3rem; }
.nlp-doc.analyzed span[data-ent="org"] { background: rgba(108, 92, 231, .15); outline: 1px solid rgba(108, 92, 231, .4); }
.nlp-doc.analyzed span[data-ent="person"] { background: rgba(0, 206, 201, .15); outline: 1px solid rgba(0, 206, 201, .5); }
.nlp-doc.analyzed span[data-ent="money"] { background: rgba(52, 211, 153, .18); outline: 1px solid rgba(52, 211, 153, .5); }
.nlp-doc.analyzed span[data-ent="date"] { background: rgba(245, 158, 11, .15); outline: 1px solid rgba(245, 158, 11, .45); }
.badge.ent-org { background: rgba(108, 92, 231, .15); color: #5b4bd5; }
.badge.ent-person { background: rgba(0, 206, 201, .18); color: #0d9488; }
.badge.ent-money { background: rgba(52, 211, 153, .18); color: #15803d; }
.badge.ent-date { background: rgba(245, 158, 11, .16); color: #b45309; }

.cv-scene { width: 100%; max-width: 460px; background: #f1f5f9; border-radius: .6rem; }
.int-scene { width: 100%; max-width: 480px; }

.browser-frame { border: 1px solid #e8eaf1; border-radius: .9rem; overflow: hidden; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eef1f7;
  padding: .55rem .8rem;
}
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar > span:nth-child(1) { background: #f87171; }
.browser-bar > span:nth-child(2) { background: #fbbf24; }
.browser-bar > span:nth-child(3) { background: #34d399; }
.browser-url {
  flex: 1;
  background: #fff;
  border-radius: .4rem;
  font-size: .75rem;
  color: #64748b;
  padding: .15rem .6rem;
  margin-left: .5rem;
}
.browser-body { padding: 1.25rem; }
.ph-box { height: 64px; border-radius: .5rem; background: linear-gradient(135deg, #eef0fb, #e0f7f6); }

.score-dial {
  --p: 0deg;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--logano-accent-2) var(--p), #e8eaf1 0deg);
}
.score-dial span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--logano-text);
}

.phone-frame {
  width: 230px;
  border: 10px solid var(--logano-dark);
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(13, 18, 38, .25);
}
.phone-screen { height: 330px; padding: 1rem; background: #f7f8fc; text-align: left; }
.phone-title { font-weight: 700; margin-bottom: .7rem; }
.phone-row {
  background: #fff;
  border: 1px solid #e8eaf1;
  border-radius: .5rem;
  padding: .5rem .6rem;
  font-size: .78rem;
  margin-bottom: .4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-tabs { display: flex; background: var(--logano-dark); }
.phone-tabs button {
  flex: 1;
  background: none;
  border: none;
  color: #93a1bd;
  padding: .55rem 0;
  font-size: 1rem;
}
.phone-tabs button.active { color: var(--logano-accent-2); }

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
}
.swatch.active { border-color: var(--logano-dark); }
.sw-a { background: linear-gradient(135deg, #6c5ce7, #00cec9); }
.sw-b { background: linear-gradient(135deg, #f97316, #ec4899); }
.sw-c { background: linear-gradient(135deg, #16a34a, #84cc16); }

.ui-mock { border-radius: 1rem; overflow: hidden; border: 1px solid #e8eaf1; transition: all .25s ease; }
.ui-mock-head { height: 110px; transition: background .25s ease; }
.theme-a .ui-mock-head { background: linear-gradient(135deg, #6c5ce7, #00cec9); }
.theme-a .ui-mock-btn { background: #6c5ce7; color: #fff; }
.theme-a .ui-mock-price { color: #6c5ce7; }
.theme-b .ui-mock-head { background: linear-gradient(135deg, #f97316, #ec4899); }
.theme-b .ui-mock-btn { background: #ec4899; color: #fff; }
.theme-b .ui-mock-price { color: #ec4899; }
.theme-c .ui-mock-head { background: linear-gradient(135deg, #16a34a, #84cc16); }
.theme-c .ui-mock-btn { background: #16a34a; color: #fff; }
.theme-c .ui-mock-price { color: #16a34a; }

/* Delivery badge */
.delivery-badge {
  background: rgba(0, 206, 201, .15);
  border: 1px solid rgba(0, 206, 201, .5);
  color: #0d9488;
  font-weight: 600;
  font-size: .72rem;
}

/* Google SERP preview */
.serp-card {
  border: 1px solid #e8eaf1;
  border-radius: .7rem;
  padding: .9rem 1rem;
  background: #fff;
  font-family: arial, sans-serif;
}
.serp-url { font-size: .78rem; color: #202124; margin-bottom: .15rem; }
.serp-title {
  color: #1a0dab;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: .15rem;
  overflow-wrap: break-word;
}
.serp-desc { font-size: .82rem; color: #4d5156; line-height: 1.5; overflow-wrap: break-word; }

/* Tech chips */
.tech-chip {
  background: #eef0fb;
  border: 1px solid rgba(108, 92, 231, .25);
  color: #5b4bd5;
  border-radius: 2rem;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 600;
}

/* Power BI demo */
.pbi-frame { border: 1px solid #e8eaf1; border-radius: .9rem; overflow: hidden; }
.pbi-header {
  display: flex;
  align-items: center;
  background: #f3c814;
  background: linear-gradient(90deg, #f2c811, #e6b800);
  color: #252423;
  font-weight: 700;
  padding: .6rem 1rem;
}
.pbi-chip {
  border: 1px solid #cdd5e1;
  background: #fff;
  color: #475569;
  border-radius: 2rem;
  padding: .25rem .8rem;
  font-size: .8rem;
  font-weight: 600;
}
.pbi-chip.active {
  background: linear-gradient(135deg, var(--logano-accent), var(--logano-accent-2));
  border-color: transparent;
  color: #fff;
}

/* Azure demo */
.az-rg { border: 1.5px dashed #94a3b8; border-radius: .9rem; padding: 1rem; }
.az-rg-title { font-size: .8rem; font-weight: 700; color: #475569; margin-bottom: .75rem; }
.az-node {
  border: 1px solid #e2e8f0;
  border-radius: .7rem;
  padding: .7rem .3rem;
  color: #94a3b8;
  background: #f8fafc;
  transition: all .3s ease;
}
.az-node i { font-size: 1.3rem; display: block; margin-bottom: .25rem; }
.az-node span { font-size: .68rem; font-weight: 600; display: block; }
.az-node.up {
  color: #0b556a;
  background: #e0f2fe;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, .25);
}

/* Microsoft 365 demo */
.m365-doc {
  display: flex;
  align-items: center;
  border: 1px solid #e8eaf1;
  border-radius: .7rem;
  padding: .8rem 1rem;
}
.m365-stages { position: relative; }
.m365-stage {
  text-align: center;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
  flex: 1;
}
.m365-stage i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  margin: 0 auto .3rem;
  font-size: 1rem;
  transition: all .3s ease;
}
.m365-stage span { display: block; }
.m365-stage.active i { border-color: var(--logano-accent); color: var(--logano-accent); background: #eef0fb; }
.m365-stage.done { color: #16a34a; }
.m365-stage.done i { background: #dcfce7; border-color: #16a34a; color: #16a34a; }
.m365-toast {
  display: flex;
  align-items: center;
  background: #4b53bc;
  color: #fff;
  border-radius: .6rem;
  padding: .6rem .9rem;
  font-size: .82rem;
}

/* DR demo */
.dr-region {
  border: 1px solid #e8eaf1;
  border-radius: .8rem;
  padding: 1rem;
  color: #475569;
  transition: all .3s ease;
}
.dr-region.down { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.dr-region.up { border-color: #86efac; background: #f0fdf4; color: #166534; }

/* Footer */
.logano-footer { background: var(--logano-dark); color: #cbd5e1; }
.logano-footer a { color: #9aa7c2; text-decoration: none; }
.logano-footer a:hover { color: #fff; }

/* RTL (Arabic) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, system-ui, sans-serif; }
[dir="rtl"] .category-title { border-left: none; border-right: 4px solid var(--logano-accent); padding-left: 0; padding-right: .75rem; }
[dir="rtl"] .text-lg-start { text-align: right !important; }
[dir="rtl"] .hero-sub { margin-right: 0; }
[dir="rtl"] .chat-bubble.bot { border-bottom-left-radius: 1rem; border-bottom-right-radius: .25rem; }
[dir="rtl"] .chat-bubble.user { border-bottom-right-radius: 1rem; border-bottom-left-radius: .25rem; }
.lang-switch { font-weight: 600; }

.form-control:focus {
  border-color: var(--logano-accent);
  box-shadow: 0 0 0 .2rem rgba(108, 92, 231, .2);
}
