:root {
  --bg:        #080e1a;
  --surface:   #0d1b2a;
  --border:    #1a2d45;
  --accent:    #00d4ff;
  --accent-dim:#00d4ff22;
  --text:      #e8f4f8;
  --muted:     #6b8fa8;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 8vw;
}

.hero-orb {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, #00d4ff18 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid #00d4ff44;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-verticals {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-verticals span { white-space: nowrap; }
.hero-verticals .dot { color: var(--accent); }

/* ── SECTION SHARED ───────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 60px;
}

/* ── SERVICES ─────────────────────────────── */
.services {
  padding: 100px 8vw;
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: #00d4ff55; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.service-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── PRICING ──────────────────────────────── */
.pricing {
  padding: 100px 8vw;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.pricing-card--primary {
  border-color: #00d4ff44;
  background: linear-gradient(135deg, #0d1b2a 0%, #0a1a28 100%);
}

.pricing-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-price {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.pricing-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.pricing-cta {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ── PROCESS ──────────────────────────────── */
.process {
  padding: 100px 8vw;
  background: var(--surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
}

.process-step {
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CLOSING ──────────────────────────────── */
.closing {
  padding: 120px 8vw;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.closing p {
  font-size: 18px;
  color: var(--muted);
}

/* ── FOOTER ───────────────────────────────── */
footer {
  padding: 60px 8vw 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

footer p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
}

/* ── CHATBOT WIDGET ───────────────────────── */
#chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px #00d4ff44;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}
#chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 32px #00d4ff66; }
#chat-toggle svg { width: 28px; height: 28px; }

#chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 400px;
  max-width: calc(100vw - 40px);
  max-height: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 16px 60px #00000088;
  overflow: hidden;
}

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

#chat-header {
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

#chat-header h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

#chat-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

#chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
}
#chat-close:hover { color: var(--text); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg.user { align-items: flex-end; }
.msg.assistant { align-items: flex-start; }

.msg-bubble {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.msg.user .msg-bubble {
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 4px;
}

.msg.assistant .msg-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-typing .msg-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-bottom-left-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

#chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  resize: none;
  max-height: 100px;
  outline: none;
  line-height: 1.5;
}
#chat-input:focus { border-color: var(--accent); }
#chat-input::placeholder { color: var(--muted); }

#chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000;
  transition: transform 0.15s;
}
#chat-send:hover { transform: scale(1.08); }
#chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── CASE STUDY ───────────────────────────── */
.casestudy {
  padding: 100px 8vw;
  background: var(--bg);
}

.cs-inner { max-width: 880px; margin: 0 auto; }

.cs-badge {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid #00d4ff44; border-radius: 100px; padding: 5px 14px; margin-bottom: 28px;
}

.cs-industry {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.cs-headline {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 48px;
}

.cs-results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 48px;
}

.cs-stat {
  padding: 36px 28px; background: var(--surface);
  border-right: 1px solid var(--border); text-align: center;
}
.cs-stat:last-child { border-right: none; }

.cs-number {
  font-family: var(--font-head); font-size: 40px; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}

.cs-metric {
  font-size: 13px; color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.cs-narrative {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px;
}

.cs-narrative p { font-size: 15px; color: var(--muted); line-height: 1.7; }

.cs-quote {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 16px;
  padding: 36px 40px; margin-bottom: 40px; position: relative;
}

.cs-quote-mark {
  font-family: var(--font-head); font-size: 72px; color: var(--accent);
  line-height: 0.6; margin-bottom: 16px; display: block; opacity: 0.4;
}

.cs-quote blockquote {
  font-size: 17px; color: var(--text); line-height: 1.65;
  font-style: italic; margin-bottom: 16px; border: none; padding: 0;
}

.cs-attribution { font-size: 13px; color: var(--muted); font-weight: 500; }

.cs-cta {
  display: inline-block; font-size: 15px; font-weight: 600; color: var(--accent);
  text-decoration: none; border: 1px solid #00d4ff44;
  border-radius: 100px; padding: 12px 28px; transition: background 0.2s, border-color 0.2s;
}
.cs-cta:hover { background: var(--accent-dim); border-color: #00d4ff77; }

/* ── CONTACT ───────────────────────────────── */
.contact-section { padding: 100px 8vw; background: var(--surface); }
.contact-inner { max-width: 720px; margin: 0 auto; }

.contact-heading {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 16px;
}
.contact-sub { font-size: 16px; color: var(--muted); margin-bottom: 48px; line-height: 1.6; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-field label .optional { color: var(--muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-size: 15px; color: var(--text);
  font-family: var(--font-body); transition: border-color 0.2s; outline: none; width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b8fa8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-field select option { background: var(--surface); color: var(--text); }
.form-field textarea { resize: vertical; min-height: 100px; }

.form-submit { padding-top: 8px; }

.cf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #000; border: none; border-radius: 100px;
  padding: 14px 32px; font-size: 16px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; min-width: 200px;
}
.cf-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px #00d4ff44; }
.cf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cf-btn-loading { display: none; }
.cf-btn.loading .cf-btn-text { display: none; }
.cf-btn.loading .cf-btn-loading { display: flex; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

.cf-success {
  display: flex; align-items: center; gap: 10px;
  background: #22c55e18; border: 1px solid #22c55e44; border-radius: 10px;
  padding: 14px 20px; font-size: 15px; color: #22c55e;
}
.cf-success[hidden] { display: none; }
.cf-error {
  background: #ef444418; border: 1px solid #ef444444; border-radius: 10px;
  padding: 14px 20px; font-size: 14px; color: #ef4444;
}
.cf-error[hidden] { display: none; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 60px 6vw; }
  .services, .pricing, .process, .casestudy, .contact-section { padding: 70px 6vw; }
  .closing { padding: 80px 6vw; }
  .hero-headline { font-size: 38px; }
  .pricing-price { font-size: 36px; }
  .step-num { font-size: 42px; }
  .cs-results { grid-template-columns: 1fr; }
  .cs-narrative { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}