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


:root {
  --green: #5ec97a;
  --green-dim: #3e7a4a;
  --green-dark: #1a281c;
  --graphite: #191d20; 
  --graphite-2: #1e2220;
  --graphite-3: #212423;
  --border: #2a2e2a;
  --border-2: #2e332e;
  --text: #e8ede8;
  --text-muted: #7a8a7a;
  --text-dim: #5a6a5a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--sans);
  background: var(--graphite);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(26,28,30,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.nav-links a:hover { 
  color: var(--green); 
}

.nav-cta {
  background: var(--green);
  color: #0e1a10;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { 
  opacity: 0.85; 
}

/* ─── HERO ─── */

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  height: 445px;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 48px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  color: #f0f4f0;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-btns { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0e1a10;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { 
  opacity: 0.88; 
  transform: translateY(-1px); 
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { 
  border-color: var(--green-dim); 
  color: var(--green); 
}

/* ─── HERO RIGHT ─── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181a1a;
  overflow: hidden;
}

.rag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── SECTION SHARED ─── */
section { 
  border-bottom: 1px solid var(--border); 
}

.section-inner {
  padding: 24px 36px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header .section-tag { 
  margin-bottom: 10px; 
}

.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #f0f4f0;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.svc-card {
  background: var(--graphite-3);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}

.svc-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}

.svc-icon {
  width: 38px; height: 38px;
  background: var(--green-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.svc-title {
  font-size: 14px;
  font-weight: 600;
  color: #d4e8d4;
  margin-bottom: 6px;
}

.svc-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

.svc-dot {
  position: absolute;
  top: 16px; right: 16px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3a6e42;
}

/* ─── STACK ─── */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #2e3a2e;
  color: #7aaa80;
  background: #1a221a;
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover { 
  border-color: var(--green-dim); 
  color: var(--green); 

}
.pill.hi {
  border-color: #4a8a52;
  color: #8ed498;
  background: #1a281c;
}

/* ─── CASES ─── */
.cases-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ftag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: transparent;
}

.ftag:hover, .ftag.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dark);
}

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

.case-card {
  background: var(--graphite-3);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}

.case-card:hover { 
  border-color: var(--green-dim); 
}

.case-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #262b26;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.case-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green { 
  border: 1px solid #3a6e42; 
  color: var(--green); 
  background: var(--green-dark); 
}

.badge-amber { 
  border: 1px solid #6e5a3a; 
  color: #c99a5e; 
  background: #221c14; 

}
.badge-blue  { 
  border: 1px solid #3a4e6e; 
  color: #5e8ec9; 
  background: #14182a; 
}

.case-title {
  font-size: 14px;
  font-weight: 600;
  color: #d4e8d4;
  line-height: 1.45;
  flex: 1;
}

.case-body {
  padding: 16px 22px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

.case-body strong { 
  color: #8a9a8a; 
  font-weight: 500; 
}

.case-metrics {
  display: flex;
  border-top: 1px solid #262b26;
}

.metric {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid #262b26;
  text-align: center;
}

.metric:last-child { 
  border-right: none; 
}

.metric-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 10px;
  color: #4a5a4a;
  line-height: 1.35;
}

.case-footer {
  padding: 12px 22px;
  border-top: 1px solid #262b26;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ctag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #1a1e1a;
  color: #4a6a50;
  border: 1px solid #252b25;
}

/* ─── CONTACT ─── */
.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--graphite-3);
  border: 1px solid var(--border-2);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.contact-item:hover { 
  border-color: var(--green-dim); 
  color: var(--green); 
}

.contact-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.contact-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 480px;
}

/* ─── FOOTER ─── */
footer {
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 12px;
  color: #3a4a3a;
  font-family: var(--mono);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 40px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero h1 { font-size: 28px; }
  .section-inner { padding: 40px 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── CHAT WIDGET ─── */
#chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

#chat-toggle:hover { 
  opacity: 0.88; 
  transform: scale(1.06); 
}

#chat-toggle svg { 
  width: 22px; 
  height: 22px; 
}

#chat-window {
  width: 320px;
  background: #1e2220;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

#chat-window.open { 
  display: flex; 
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.chat-header-title {
  font-size: 13px;
  font-weight: 600;
  color: #d4e8d4;
}

.chat-header-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  font-family: var(--mono);
}

#chat-messages {
  padding: 16px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 13px;
  border-radius: 10px;
  word-break: break-word;
}

.chat-msg--user {
  background: var(--green-dark);
  color: #c0e8c8;
  border: 1px solid #2e5e38;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg--bot {
  background: #252a25;
  color: var(--text-muted);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-input-row {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

#chat-input {
  flex: 1;
  background: #161a16;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--sans);
  outline: none;
  resize: none;
}

#chat-input:focus { 
  border-color: var(--green-dim); 
}

#chat-input::placeholder { 
  color: var(--text-dim); 
}

#chat-send {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

#chat-send:hover { 
  opacity: 0.85; 
}

#chat-send:disabled { 
  opacity: 0.4; 
  cursor: default; 
}

#chat-send svg { 
  width: 15px; 
  height: 15px; 
}
