:root {
  --bg: #131922;
  --bg-alt: #171f2b;
  --panel: #121a26;
  --panel-2: #161f2d;
  --border: #232e3f;
  --text: #eaf0f7;
  --text-muted: #97a5ba;
  --text-dim: #6b7889;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --gradient: linear-gradient(90deg, #3b82f6, #22d3ee);
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  height: 30px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-links a.active {
  color: var(--accent);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex !important;
  }
  .nav-toggle {
    display: none !important;
  }
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.active {
  color: var(--accent);
}

@media (min-width: 860px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #05131a;
}

.btn-primary:hover {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

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

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.16), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.14), transparent 45%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 4px;
}

.eyebrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 640px;
}

/* Sections */
section {
  padding: 72px 0;
}

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

.section-heading {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
}

/* Grid of pillars/cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  color: #05131a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

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

/* Value prop / comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}

.compare-card.old {
  background: var(--panel);
  opacity: 0.85;
}

.compare-card.new {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.06));
  border-color: rgba(34, 211, 238, 0.3);
}

.compare-card h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.compare-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Flagship badge */
.badge-flagship {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #05131a;
  background: var(--gradient);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Featured hero offering (home page) */
.featured-offering {
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.05));
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .featured-offering {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 52px;
  }
}

.featured-offering h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.featured-offering p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.featured-offering-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.featured-offering-panel h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services page detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block.flagship {
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.05));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 12px;
}

@media (min-width: 860px) {
  .service-block {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.service-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.service-block h3 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.service-block-body p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* About page */
.about-lead {
  max-width: 760px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.pillar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (min-width: 760px) {
  .pillar-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  font-size: 0.92rem;
}

.form-success.visible {
  display: flex;
}

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

.contact-callout {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-callout h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.contact-callout p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.contact-detail {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-detail dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.contact-detail dd {
  margin: 0 0 16px;
  color: var(--text);
}

.contact-detail dd:last-child {
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 64px 0;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cta-band-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.cta-band-inner p {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 6px 0;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #05131a;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.35);
}

.chat-panel {
  display: none;
  flex-direction: column;
  width: min(340px, calc(100vw - 40px));
  height: min(460px, calc(100vh - 120px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gradient);
  color: #05131a;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-close {
  background: none;
  border: none;
  color: #05131a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-message.assistant {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #05131a;
}

.chat-message.error {
  align-self: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-style: italic;
}

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

.chat-input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #05131a;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}
