/* ==========================================================================
   Mulik Cloud Infra — Design System
   Direction: enterprise infrastructure / monitoring-console aesthetic.
   Not a stock Bootstrap theme — tokens below drive every component.
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --ink:        #0B1420;   /* near-black navy — dark section bg */
  --slate:      #14202E;   /* card / panel bg on dark */
  --slate-2:    #1C2C3D;   /* elevated panel on dark */
  --paper:      #F6F7F9;   /* light section bg */
  --paper-2:    #FFFFFF;   /* card bg on light */
  --line:       #E3E7EC;   /* hairline border on light */
  --line-dark:  #263548;   /* hairline border on dark */
  --steel:      #4A5568;   /* body text on light */
  --steel-soft: #7C8896;   /* secondary text on light */
  --fog:        #A9B4C0;   /* secondary text on dark */
  --signal:     #17A6A0;   /* primary teal accent — "system healthy" */
  --signal-dim: #0F7A76;
  --amber:      #E8A33D;   /* status / alert accent, used sparingly */
  --white:      #FFFFFF;

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* --- Scale --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11,20,32,0.06);
  --shadow-md: 0 8px 24px rgba(11,20,32,0.08);
  --shadow-lg: 0 20px 48px rgba(11,20,32,0.14);
  --container-max: 1240px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--steel);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
a { color: var(--signal-dim); text-decoration: none; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.container-xl { max-width: var(--container-max); margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); display: inline-block; }

section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-dark { background: var(--ink); color: var(--fog); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Signature element: status strip ---
   A segmented "system health" bar used as a section divider / signature motif. */
.status-strip {
  display: flex;
  height: 4px;
  width: 100%;
  gap: 3px;
}
.status-strip span {
  flex: 1;
  background: var(--line-dark);
  border-radius: 2px;
}
.status-strip span.on { background: var(--signal); }
.section-dark .status-strip span { background: var(--line-dark); }
.section-dark .status-strip span.on { background: var(--signal); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* --- Buttons --- */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: var(--radius-sm); padding: 0.72rem 1.4rem; font-size: 0.95rem; transition: all .15s ease; border: 1px solid transparent; }
.btn-signal { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn-signal:hover { background: var(--signal-dim); border-color: var(--signal-dim); color: var(--white); }
.btn-outline-light2 { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline-light2:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-ink:hover { background: var(--paper); border-color: var(--steel-soft); }
.btn-whatsapp { background: #128C7E; color: var(--white); }
.btn-whatsapp:hover { background: #0E6E62; color: var(--white); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,20,32,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .navbar-brand { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.site-header .navbar-brand small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--fog); font-weight: 400; }
.site-header .nav-link { color: var(--fog) !important; font-weight: 500; font-size: 0.93rem; padding: 0.5rem 0.9rem !important; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--white) !important; }
.site-header .dropdown-menu { background: var(--slate); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.site-header .dropdown-item { color: var(--fog); font-size: 0.9rem; padding: 0.55rem 1rem; }
.site-header .dropdown-item:hover { background: var(--slate-2); color: var(--white); }
.header-cta { display: flex; gap: 0.6rem; align-items: center; }

/* --- Hero --- */
.hero {
  background: var(--ink);
  color: var(--fog);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 7rem);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(23,166,160,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,166,160,0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black, transparent);
}
.hero .container-xl { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero-lede { font-size: 1.15rem; color: var(--fog); max-width: 46ch; }
.hero-metrics { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-metrics .metric-value { font-family: var(--font-mono); font-size: 1.7rem; color: var(--signal); font-weight: 700; }
.hero-metrics .metric-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }

.hero-panel {
  background: var(--slate);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.hero-panel .panel-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed var(--line-dark); color: var(--fog); }
.hero-panel .panel-row:last-child { border-bottom: none; }
.hero-panel .panel-row .ok { color: var(--signal); }
.hero-panel .panel-head { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.hero-panel .panel-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }

/* --- Logos strip --- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 2.75rem; align-items: center; justify-content: center; opacity: 0.75; }
.logo-strip span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--steel-soft); letter-spacing: 0.03em; }

/* --- Cards --- */
.card-service {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--signal); }
.card-service .icon-wrap { width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(23,166,160,0.1); color: var(--signal-dim); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; }
.card-service h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-service p { font-size: 0.92rem; color: var(--steel-soft); margin-bottom: 0; }
.card-service .card-link { font-size: 0.85rem; font-weight: 600; margin-top: 0.9rem; display: inline-block; }

.card-flat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* --- Why choose us --- */
.reason-item { display: flex; gap: 1rem; align-items: flex-start; }
.reason-item .num { font-family: var(--font-mono); color: var(--signal); font-weight: 700; font-size: 0.95rem; }

/* --- Process steps (real sequence -> numbering justified) --- */
.process-track { position: relative; }
.process-step { position: relative; padding-left: 3.25rem; padding-bottom: 2.5rem; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: attr(data-step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--slate);
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--signal);
}
.process-step::after {
  content: '';
  position: absolute; left: 1.2rem; top: 2.4rem; bottom: -0.5rem;
  width: 1px;
  background: var(--line-dark);
}
.process-step:last-child::after { display: none; }

/* --- Testimonials --- */
.testimonial-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; }
.testimonial-card .quote { font-size: 0.98rem; color: var(--steel); margin-bottom: 1.25rem; }
.testimonial-card .person { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--slate); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.testimonial-card .person small { color: var(--steel-soft); }

/* --- FAQ accordion --- */
.accordion-item { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0 !important; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: transparent; box-shadow: none !important; padding: 1.1rem 0; }
.accordion-button:not(.collapsed) { color: var(--signal-dim); background: transparent; }
.accordion-button::after { filter: none; }
.accordion-body { padding: 0 0 1.25rem; color: var(--steel-soft); }

/* --- CTA band --- */
.cta-band { background: linear-gradient(135deg, var(--ink), #10202B); color: var(--white); border-radius: var(--radius-lg); padding: 2.75rem; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: var(--fog); padding-top: 3.5rem; }
.site-footer h6 { font-family: var(--font-display); color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--fog); font-size: 0.9rem; }
.site-footer a:hover { color: var(--signal); }
.site-footer .footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-block: 1.25rem; font-size: 0.82rem; color: var(--steel-soft); }
.social-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--fog); }
.social-icon:hover { border-color: var(--signal); color: var(--signal); }

/* --- Floating action buttons --- */
.floating-actions { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050; display: flex; flex-direction: column; gap: 0.6rem; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); color: var(--white); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--signal); }
.back-to-top { width: 42px; height: 42px; font-size: 1rem; background: var(--slate); }

/* --- Breadcrumb --- */
.breadcrumb-nav { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0; padding: 0.85rem 0; font-size: 0.85rem; }

/* --- Cookie banner --- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--ink); color: var(--fog); padding: 1rem 1.25rem; font-size: 0.88rem; display: none; }
.cookie-banner.show { display: flex; }

/* --- Utility --- */
.text-signal { color: var(--signal-dim); }
.bg-signal-soft { background: rgba(23,166,160,0.08); }
.font-mono { font-family: var(--font-mono); }
.industry-chip { border: 1px solid var(--line); border-radius: 100px; padding: 0.5rem 1.1rem; font-size: 0.88rem; color: var(--steel); background: var(--paper-2); }
