/* =============================================================
   Creepysoft Technologies — Custom theme (Bootstrap override)
   Brand: #0071bc (blue) · #f15a24 (orange)
   ============================================================= */

/* ── Google Fonts loaded in HTML ── */

/* ── CSS VARIABLES ── */
:root {
  --cs-blue:         #0071bc;
  --cs-blue-light:   #1a8fd1;
  --cs-blue-dark:    #004f84;
  --cs-orange:       #f15a24;
  --cs-orange-dark:  #c44817;
  --cs-bg:           #04101a;
  --cs-bg2:          #061520;
  --cs-surface:      #0a1e2d;
  --cs-surface2:     #0e2639;
  --cs-border:       #0d2d46;
  --cs-border-blue:  rgba(0,113,188,0.25);
  --cs-text:         #c8dfe8;
  --cs-text-dim:     #4a7590;
  --cs-text-muted:   #2a4a5c;
  --cs-blue-glow:    rgba(0,113,188,0.20);
  --cs-orange-glow:  rgba(241,90,36,0.18);
  --cs-mono:         'Share Tech Mono', monospace;
  --cs-display:      'Barlow Condensed', sans-serif;
  --cs-body:         'Barlow', sans-serif;
}

/* ── Bootstrap overrides ── */
body {
  background-color: var(--cs-bg);
  color: var(--cs-text);
  font-family: var(--cs-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Scanline */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── TYPOGRAPHY HELPERS ── */
.font-mono    { font-family: var(--cs-mono); }
.font-display { font-family: var(--cs-display); }

.text-cs-blue   { color: var(--cs-blue-light) !important; }
.text-cs-orange { color: var(--cs-orange)      !important; }
.text-cs-dim    { color: var(--cs-text-dim)    !important; }
.text-cs-muted  { color: var(--cs-text-muted)  !important; }

/* ── NAVBAR ── */
.navbar {
  height: 64px;
  background: rgba(4,16,26,0.96) !important;
  border-bottom: 1px solid var(--cs-border);
  backdrop-filter: blur(10px);
}

.navbar-brand img { height: 32px; width: auto; }

.nav-link {
  font-family: var(--cs-mono);
  font-size: 0.68rem !important;
  color: var(--cs-text-dim) !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--cs-blue-light) !important; }

.navbar-toggler {
  border-color: var(--cs-border) !important;
}

.navbar-toggler-icon {
  filter: invert(60%) sepia(20%) saturate(400%) hue-rotate(170deg);
}

.navbar-collapse {
  background: rgba(4,16,26,0.98);
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem;
    border-top: 1px solid var(--cs-border);
  }
}

/* ── BUTTONS ── */
.btn-cs-primary {
  font-family: var(--cs-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cs-blue);
  border: none;
  padding: 0.85rem 2.2rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn-cs-primary:hover {
  background: var(--cs-blue-light);
  box-shadow: 0 0 30px var(--cs-blue-glow);
  color: #fff;
}

.btn-cs-orange {
  font-family: var(--cs-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cs-orange);
  border: none;
  padding: 0.85rem 2.2rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn-cs-orange:hover {
  background: var(--cs-orange-dark);
  box-shadow: 0 0 30px var(--cs-orange-glow);
  color: #fff;
}

.btn-cs-ghost {
  font-family: var(--cs-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
  background: transparent;
  border: 1px solid var(--cs-border);
  padding: 0.85rem 2.2rem;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-cs-ghost:hover {
  color: var(--cs-text);
  border-color: var(--cs-text-dim);
}

.btn-cs-nav {
  font-family: var(--cs-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--cs-blue);
  padding: 0.45rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: background 0.2s;
}
.btn-cs-nav:hover { background: var(--cs-blue-light); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--cs-mono);
  font-size: 0.66rem;
  color: var(--cs-orange);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cs-text);
  margin-bottom: 1.25rem;
}
.section-title em     { font-style: normal; color: var(--cs-blue-light); }
.section-title strong { font-style: normal; color: var(--cs-orange); }

.lead-text {
  color: var(--cs-text-dim);
  line-height: 1.75;
  font-size: 0.95rem;
  font-weight: 300;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--cs-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,113,188,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,113,188,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(18deg) scale(1.4);
  transform-origin: 50% 100%;
  animation: grid-drift 18s linear infinite;
  top: -20%;
}

@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 64px; }
}

.hero-blob1 {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,113,188,0.09) 0%, transparent 65%);
  left: -200px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-blob2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(241,90,36,0.07) 0%, transparent 65%);
  right: 8%; top: 15%;
  pointer-events: none;
}

.hero-stripe {
  position: absolute;
  width: 3px;
  top: 0; bottom: 0; left: 43%;
  background: linear-gradient(to bottom, transparent, var(--cs-orange) 45%, transparent);
  opacity: 0.12;
  transform: skewX(-6deg);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--cs-mono);
  font-size: 0.68rem;
  color: var(--cs-orange);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--cs-orange);
  box-shadow: 0 0 8px var(--cs-orange);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--cs-display);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-title .t1 { color: var(--cs-text); display: block; }
.hero-title .t2 { color: var(--cs-blue-light); display: block; text-shadow: 0 0 60px rgba(0,113,188,0.4); }
.hero-title .t3 { color: var(--cs-orange);     display: block; text-shadow: 0 0 60px rgba(241,90,36,0.35); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--cs-text-dim);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-sub strong { color: var(--cs-text); font-weight: 400; }

/* ── TERMINAL ── */
.hero-terminal {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border-blue);
  font-family: var(--cs-mono);
  font-size: 0.68rem;
  box-shadow: 0 0 40px rgba(0,113,188,0.1);
  position: relative;
  z-index: 2;
}

.term-bar {
  background: var(--cs-surface2);
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cs-text-dim);
  font-size: 0.6rem;
  border-bottom: 1px solid var(--cs-border);
}

.term-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.td1 { background: #ff5f57; }
.td2 { background: #febc2e; }
.td3 { background: #28c840; }

.term-body { padding: 0.8rem; height: 190px; overflow: hidden; }
.term-line  { color: var(--cs-text-dim); line-height: 1.9; }
.term-line .p    { color: var(--cs-blue-light); }
.term-line .ok   { color: #28c840; }
.term-line .warn { color: #febc2e; }
.term-line .hi   { color: var(--cs-orange); }

.cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--cs-blue-light);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ── STATS BAND ── */
#stats {
  background: var(--cs-bg2);
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
}

.stat-item {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--cs-border);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child { border-right: none; }

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cs-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.stat-item:hover::after { transform: scaleX(1); }

.stat-num {
  font-family: var(--cs-display);
  font-weight: 900;
  font-size: 3.2rem;
  color: var(--cs-blue-light);
  line-height: 1;
  text-shadow: 0 0 40px rgba(0,113,188,0.3);
}

.stat-unit {
  font-family: var(--cs-display);
  font-size: 1.8rem;
  color: var(--cs-orange);
  font-weight: 700;
}

.stat-label {
  font-family: var(--cs-mono);
  font-size: 0.6rem;
  color: var(--cs-text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── MARQUEE ── */
.divider-banner {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
  padding: 1.1rem 0;
  background: var(--cs-surface);
}

.divider-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.divider-item {
  font-family: var(--cs-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0 2rem;
  color: var(--cs-text-muted);
}

.divider-item span      { color: var(--cs-orange); margin-right: 0.4rem; }
.divider-item.alt       { color: var(--cs-text-dim); }
.divider-item.alt span  { color: var(--cs-blue-light); }

/* ── SERVICES ── */
#services { background: var(--cs-bg2); }

.service-card {
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-top: 3px solid transparent;
  padding: 2.2rem;
  height: 100%;
  transition: background 0.3s, border-top-color 0.3s;
  position: relative;
}

.service-card:hover { background: var(--cs-surface); }
.service-card.sc-blue:hover   { border-top-color: var(--cs-blue); }
.service-card.sc-orange:hover { border-top-color: var(--cs-orange); }

.service-num {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-family: var(--cs-mono);
  font-size: 0.58rem;
  color: var(--cs-text-muted);
  letter-spacing: 0.1em;
}

.service-icon {
  font-family: var(--cs-mono);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.sc-blue .service-icon   { color: var(--cs-blue-light); text-shadow: 0 0 12px rgba(0,113,188,0.4); }
.sc-orange .service-icon { color: var(--cs-orange);     text-shadow: 0 0 12px rgba(241,90,36,0.4); }

.service-title {
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--cs-text);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.service-desc {
  font-size: 0.87rem;
  color: var(--cs-text-dim);
  line-height: 1.75;
}

.service-tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }

.cs-tag {
  font-family: var(--cs-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border: 1px solid;
}

.cs-tag-b { color: var(--cs-blue-light); border-color: rgba(0,113,188,0.28); background: rgba(0,113,188,0.05); }
.cs-tag-o { color: var(--cs-orange);     border-color: rgba(241,90,36,0.28);  background: rgba(241,90,36,0.05); }

/* ── F5 SECTION ── */
#f5-section { background: var(--cs-bg); }

.f5-visual {
  position: relative;
  height: 380px;
}

.f5-box-main {
  position: absolute;
  inset: 28px;
  background: var(--cs-surface);
  border: 1px solid var(--cs-blue);
  box-shadow: 0 0 60px rgba(0,113,188,0.1), inset 0 0 80px rgba(0,113,188,0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.f5-box-main::before, .f5-box-main::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--cs-orange);
  border-style: solid;
}

.f5-box-main::before { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.f5-box-main::after  { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }

.f5-logo-big {
  font-family: var(--cs-display);
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cs-blue-light), var(--cs-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  filter: drop-shadow(0 0 30px rgba(0,113,188,0.35));
}

.f5-sub {
  font-family: var(--cs-mono);
  font-size: 0.58rem;
  color: var(--cs-text-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.f5-pill {
  position: absolute;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  padding: 0.3rem 0.75rem;
  font-family: var(--cs-mono);
  font-size: 0.58rem;
  color: var(--cs-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.f5-list { list-style: none; padding: 0; margin-top: 1.8rem; }

.f5-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cs-border);
  font-size: 0.88rem;
  color: var(--cs-text-dim);
  line-height: 1.6;
}

.f5-list li::before { content: '▸'; flex-shrink: 0; margin-top: 0.1rem; }
.f5-list li:nth-child(odd)::before  { color: var(--cs-blue-light); }
.f5-list li:nth-child(even)::before { color: var(--cs-orange); }
.f5-list li strong { color: var(--cs-text); font-weight: 400; }

/* ── PROCESS ── */
#process { background: var(--cs-bg2); }

.process-connector {
  display: none;
}

@media (min-width: 992px) {
  .process-connector {
    display: block;
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--cs-blue), var(--cs-orange), var(--cs-border));
    z-index: 0;
    pointer-events: none;
  }
}

.process-row { position: relative; }

.step-card {
  position: relative;
  z-index: 1;
  padding-bottom: 1.5rem;
}

.step-num {
  width: 4rem; height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cs-display);
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  background: var(--cs-bg);
}

.step-num.blue-step   { border: 1px solid var(--cs-blue);   color: var(--cs-blue-light); box-shadow: 0 0 18px rgba(0,113,188,0.18); }
.step-num.orange-step { border: 1px solid var(--cs-orange); color: var(--cs-orange);     box-shadow: 0 0 18px rgba(241,90,36,0.18); }

.step-title {
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--cs-text);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.87rem;
  color: var(--cs-text-dim);
  line-height: 1.75;
}

/* ── CTA ── */
#cta {
  background: var(--cs-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: 'AUTOMATE';
  position: absolute;
  font-family: var(--cs-display);
  font-weight: 900;
  font-size: 18vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--cs-border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

#cta .section-title { font-size: clamp(2.8rem, 6vw, 5.5rem); position: relative; }
#cta .lead-text { max-width: 500px; margin: 0 auto 2.5rem; position: relative; }
#cta .btn-row { position: relative; }

/* ── FOOTER ── */
footer {
  background: var(--cs-bg2);
  border-top: 1px solid var(--cs-border);
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--cs-text-dim);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--cs-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cs-text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cs-border);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--cs-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cs-blue-light); }

.footer-bottom {
  border-top: 1px solid var(--cs-border);
  padding: 1.2rem 0;
  font-family: var(--cs-mono);
  font-size: 0.6rem;
  color: var(--cs-text-muted);
  letter-spacing: 0.1em;
}

.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px #28c840;
  margin-right: 0.45rem;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITY OVERRIDES ── */
.bg-cs-bg2    { background-color: var(--cs-bg2) !important; }
.bg-cs-surface { background-color: var(--cs-surface) !important; }
.border-cs    { border-color: var(--cs-border) !important; }
