/* Wheat9 Premium Corporate Design System v2.0 */
:root {
  --w9-primary: #0b1120;
  --w9-primary-mid: #111827;
  --w9-primary-light: #1e293b;
  --w9-accent: #d97706;
  --w9-accent-bright: #f59e0b;
  --w9-accent-hover: #b45309;
  --w9-accent-soft: #fef3c7;
  --w9-surface: #ffffff;
  --w9-surface-alt: #f8fafc;
  --w9-border: #e2e8f0;
  --w9-text: #1e293b;
  --w9-text-muted: #64748b;
  --w9-radius: 12px;
  --w9-radius-lg: 18px;
  --w9-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --w9-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
  --w9-shadow-lg: 0 22px 45px -12px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--w9-text);
  background-color: var(--w9-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--w9-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--w9-accent-hover);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--w9-primary);
}

/* Header & Navigation */
.w9-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--w9-border);
  transition: box-shadow 0.25s ease;
  z-index: 1030;
}

.w9-header.scrolled {
  box-shadow: var(--w9-shadow-md);
}

.w9-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--w9-primary) !important;
}

.w9-brand img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.w9-brand span span {
  color: var(--w9-accent);
}

.w9-nav .nav-link {
  color: var(--w9-text) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
}

.w9-nav .nav-link:hover,
.w9-nav .nav-link.active {
  color: var(--w9-accent-hover) !important;
  background-color: rgba(217, 119, 6, 0.08);
}

.w9-nav .dropdown-menu {
  border: 1px solid var(--w9-border);
  border-radius: var(--w9-radius);
  box-shadow: var(--w9-shadow-lg);
  padding: 0.5rem;
  min-width: 290px;
}

.w9-nav .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--w9-text);
}

.w9-nav .dropdown-item:hover {
  background-color: var(--w9-surface-alt);
  color: var(--w9-accent-hover);
}

/* Buttons */
.btn-w9-primary {
  background-color: var(--w9-accent);
  border-color: var(--w9-accent);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-w9-primary:hover {
  background-color: var(--w9-accent-hover);
  border-color: var(--w9-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
}

.btn-w9-outline {
  border: 1.5px solid var(--w9-primary);
  color: var(--w9-primary) !important;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-w9-outline:hover {
  background-color: var(--w9-primary);
  color: #ffffff !important;
}

/* Sections & Surfaces */
.w9-section {
  padding: 4.75rem 0;
  position: relative;
}

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

.w9-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--w9-accent-hover);
  background: var(--w9-accent-soft);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.w9-section-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 0.85rem;
}

.w9-section-lead {
  color: var(--w9-text-muted);
  font-size: 1.06rem;
  max-width: 680px;
}

/* Premium Dark Hero */
.w9-hero {
  position: relative;
  padding: 5.5rem 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(217, 119, 6, 0.18), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(135deg, #0b1120 0%, #111827 55%, #0f172a 100%);
  color: #f8fafc;
  overflow: hidden;
}

.w9-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.w9-hero .container {
  position: relative;
  z-index: 2;
}

.w9-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.13;
  margin-bottom: 1.25rem;
}

.w9-hero .w9-hero-sub {
  color: #cbd5e1;
  font-size: 1.14rem;
  max-width: 540px;
}

.w9-hero-frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.w9-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.w9-hero-pill {
  font-size: 0.84rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.w9-typed {
  color: var(--w9-accent-bright);
}

.w9-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--w9-accent-bright);
  margin-left: 3px;
  animation: w9blink 0.9s infinite;
}

@keyframes w9blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Page Hero / Inner Banner */
.w9-page-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 25%, rgba(217, 119, 6, 0.16), transparent 45%),
    linear-gradient(135deg, #0b1120 0%, #111827 100%);
  color: #ffffff;
  padding: 3.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.w9-page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.2;
}

.w9-page-hero .lead {
  color: #cbd5e1;
}

.w9-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
}

.w9-breadcrumb .breadcrumb-item a {
  color: #cbd5e1;
}

.w9-breadcrumb .breadcrumb-item.active,
.w9-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
}

/* Cards (position: relative is REQUIRED for Bootstrap stretched-link) */
.w9-card {
  position: relative;
  overflow: hidden;
  background: var(--w9-surface);
  border: 1px solid var(--w9-border);
  border-radius: var(--w9-radius-lg);
  padding: 1.85rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--w9-shadow-sm);
}

.w9-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--w9-accent), var(--w9-accent-bright));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.w9-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--w9-shadow-lg);
  border-color: rgba(217, 119, 6, 0.4);
}

.w9-card:hover::before {
  opacity: 1;
}

.w9-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--w9-surface-alt);
  border: 1px solid var(--w9-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 1.25rem;
}

.w9-service-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Testimonials */
.w9-testimonial-card {
  position: relative;
  background: var(--w9-surface);
  border: 1px solid var(--w9-border);
  border-radius: var(--w9-radius-lg);
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--w9-shadow-sm);
}

.w9-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--w9-border);
}

/* CTA Band */
.w9-cta-band {
  background:
    radial-gradient(circle at 90% 20%, rgba(217, 119, 6, 0.2), transparent 45%),
    linear-gradient(135deg, #0b1120 0%, #111827 100%);
  color: #ffffff;
  border-radius: var(--w9-radius-lg);
  padding: 3.25rem 2.75rem;
  box-shadow: var(--w9-shadow-lg);
}

.w9-cta-band h2 {
  color: #ffffff;
}

.w9-cta-band p {
  color: #cbd5e1;
}

/* Blog Article & Editorial Layout */
.w9-article-shell {
  background: #ffffff;
  border: 1px solid var(--w9-border);
  border-radius: var(--w9-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--w9-shadow-sm);
}

@media (max-width: 767.98px) {
  .w9-article-shell {
    padding: 1.35rem;
  }
}

.w9-article-body {
  font-size: 1.07rem;
  line-height: 1.85;
  color: #334155;
}

.w9-article-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--w9-border);
}

.w9-article-body h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 1.24rem;
}

.w9-article-body ul,
.w9-article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.w9-article-body li {
  margin-bottom: 0.45rem;
}

.w9-article-body blockquote {
  border-left: 4px solid var(--w9-accent);
  background: var(--w9-surface-alt);
  padding: 1.1rem 1.35rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  margin: 1.65rem 0;
  color: var(--w9-primary);
}

.w9-article-body pre {
  background: #0b1120;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.w9-article-body code {
  background: #f1f5f9;
  color: #b45309;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.9em;
}

.w9-article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.w9-toc {
  background: var(--w9-surface);
  border: 1px solid var(--w9-border);
  border-left: 3px solid var(--w9-accent);
  border-radius: var(--w9-radius);
  padding: 1.35rem;
}

.w9-sidebar-sticky {
  position: sticky;
  top: 88px;
}

.w9-toc a:hover {
  color: var(--w9-accent-hover) !important;
}

/* Footer */
.w9-footer {
  background: #0b1120;
  color: #cbd5e1;
  padding: 4.25rem 0 2rem;
  position: relative;
  z-index: 2;
}

.w9-footer h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.w9-footer a {
  color: #cbd5e1;
  font-size: 0.93rem;
}

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

.w9-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* Floating WhatsApp Button */
.w9-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 1040;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.w9-whatsapp-float:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* Tech Badges */
.w9-badge-tech {
  display: inline-block;
  background: var(--w9-surface);
  border: 1px solid var(--w9-border);
  color: var(--w9-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  box-shadow: var(--w9-shadow-sm);
}
