/*-----------------------------------------------------
  Neodev — Editorial Engineering
  Brand layer: typography, accent palette, hero composition,
  contact section, sticky CTA, responsive polish.
-----------------------------------------------------*/

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Existing brand tokens kept; v2 additions below */
  --v2-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --v2-accent: #4ade80;          /* mint — status, accents, conversion CTAs */
  --v2-accent-soft: #86efac;
  --v2-ink: #051229;
  --v2-ink-soft: #1a2540;
  --v2-fog: rgba(255,255,255,0.06);
  --v2-fog-strong: rgba(255,255,255,0.12);
  --v2-line: rgba(255,255,255,0.08);
  --v2-radius: 14px;
  --v2-radius-lg: 22px;
  --v2-shadow-soft: 0 18px 60px -20px rgba(5, 18, 41, 0.6);
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v2-dur: 600ms;
}

/* =====================================================
   01. Scroll progress bar (top edge)
   ===================================================== */
.v2-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--v2-accent), var(--tj-color-theme-primary));
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}

/* =====================================================
   02. Hero — CTAs, bullets, status indicator
   ===================================================== */
.h8-hero-cta {
  position: absolute;
  right: 0;
  bottom: 9%;
  max-width: 360px;
  z-index: 3;
  text-align: left;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .h8-hero-cta { right: 35px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .h8-hero-cta { right: 25px; max-width: 320px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .h8-hero-cta { right: 15px; max-width: 320px; bottom: 5%; }
}
@media (max-width: 767px) {
  .h8-hero-cta {
    position: static;
    margin: 36px auto 0;
    max-width: 100%;
    text-align: center;
  }
}

.h8-hero-bullets {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-wrap: wrap;
  gap: 12px 24px;
}
.h8-hero-bullets li {
  font-family: var(--v2-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--tj-color-common-white);
  display: inline-flex; align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.h8-hero-bullets li i {
  color: var(--v2-accent);
  font-size: 11px;
}
@media (max-width: 575px) {
  .h8-hero-bullets {
    justify-content: center;
    gap: 10px 18px;
    margin-bottom: 22px;
  }
  .h8-hero-bullets li { font-size: 12px; }
}

.h8-hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 575px) {
  .h8-hero-cta-buttons {
    justify-content: center;
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .h8-hero-cta-buttons .tj-primary-btn { width: 100%; justify-content: center; }
  .h8-hero-cta-buttons .h8-hero-cta-secondary { text-align: center; }
}

.h8-hero-cta-secondary {
  font-family: var(--v2-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tj-color-common-white);
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.25s var(--v2-ease);
}
.h8-hero-cta-secondary::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.45s var(--v2-ease);
}
.h8-hero-cta-secondary:hover { color: var(--v2-accent); }
.h8-hero-cta-secondary:hover::after {
  transform-origin: left;
  transform: scaleX(1);
  background: var(--v2-accent);
}

/* Availability status pill — sits above hero subtitle */
.v2-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--v2-fog);
  border: 1px solid var(--v2-line);
  border-radius: 100px;
  font-family: var(--v2-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tj-color-common-white);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.v2-status-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--v2-accent);
  box-shadow: 0 0 0 0 var(--v2-accent);
  animation: v2-pulse 2.4s ease-out infinite;
}
@keyframes v2-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* =====================================================
   03. Feature cards — monospace numbering
   ===================================================== */
.h8-feature-item.style-4 {
  position: relative;
}
.h8-feature-item.style-4::after {
  display: block;
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #16a34a;
  opacity: 0.85;
  z-index: 2;
}

/* =====================================================
   04. Contact section — Editorial Engineering
   ===================================================== */
.h8-contact-section {
  position: relative;
  background: linear-gradient(180deg, var(--v2-ink) 0%, #020814 100%);
  color: var(--tj-color-common-white);
  padding: 120px 0 140px;
  overflow: hidden;
}
.h8-contact-section::before {
  /* Blueprint grid */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.h8-contact-section::after {
  /* Decorative orb top-right */
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, rgba(74,222,128,0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
@media (max-width: 991px) {
  .h8-contact-section { padding: 80px 0 100px; }
  .h8-contact-section::after { width: 320px; height: 320px; top: -100px; right: -100px; }
}
.h8-contact-section .container { position: relative; z-index: 2; }

.h8-contact-section .sec-heading .sub-title {
  font-family: var(--v2-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--v2-accent);
  text-transform: uppercase;
  display: inline-block;
  padding-left: 26px;
  position: relative;
  margin-bottom: 18px;
}
.h8-contact-section .sec-heading .sub-title::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--v2-accent);
  transform: translateY(-50%);
}
.h8-contact-section .sec-heading .sec-title {
  color: var(--tj-color-common-white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  font-weight: 600;
}
.h8-contact-section .sec-heading .desc p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
}

.h8-contact-section .contact-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.h8-contact-section .contact-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-family: var(--tj-ff-body);
  color: rgba(255,255,255,0.92);
}
.h8-contact-section .contact-features li i {
  color: var(--v2-accent);
  font-size: 12px;
  width: 22px; height: 22px;
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h8-contact-section .contact-alt {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--v2-line);
}
.h8-contact-section .contact-alt-label {
  display: block;
  font-family: var(--v2-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
@media (max-width: 991px) {
  .h8-contact-section .contact-alt { margin-bottom: 56px; }
}

/* Contact form — engineering panel */
.contact-form {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  padding: 44px;
  box-shadow: var(--v2-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contact-form::before {
  /* Top-left engineering tag */
  content: 'NEW REQUEST';
  position: absolute;
  top: 16px; left: 22px;
  font-family: var(--v2-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--v2-accent);
  opacity: 0.7;
}
.contact-form::after {
  /* Top-right corner mark */
  content: '';
  position: absolute;
  top: 18px; right: 22px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--v2-accent);
  border-right: 1px solid var(--v2-accent);
}
@media (max-width: 575px) {
  .contact-form { padding: 28px 22px; padding-top: 44px; }
}

#contact-form .form-group {
  display: block;
  position: relative;
  margin-bottom: 22px;
}
#contact-form label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--v2-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

#contact-form input:not([type=submit]):not([type=radio]):not([type=checkbox]),
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  border-radius: 0;
  color: var(--tj-color-common-white);
  font-family: var(--tj-ff-body);
  font-size: 16px;
  outline: none;
  height: auto;
  box-shadow: none;
  transition: border-color 0.3s var(--v2-ease);
  -webkit-appearance: none;
  appearance: none;
}
#contact-form input:not([type=submit]):not([type=radio]):not([type=checkbox]):focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--v2-line);
  border-bottom-color: var(--v2-accent);
  background: transparent;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
#contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%234ade80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
#contact-form select option {
  background: var(--v2-ink);
  color: var(--tj-color-common-white);
}
#contact-form textarea {
  resize: vertical;
  min-height: 110px;
  height: auto;
  padding: 14px 0;
  line-height: 1.6;
}

/* Animated focus underline */
#contact-form .form-group::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--v2-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--v2-ease);
  pointer-events: none;
}
#contact-form .form-group:focus-within::after {
  transform: scaleX(1);
}

#contact-form .contact-submit-btn { margin-top: 12px; }
#contact-form .contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Native select preserved (we don't use nice-select for our form) */
#contact-form .nice-select { display: none !important; }
#contact-form select { display: block !important; opacity: 1 !important; }

.form-status {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--v2-radius);
  font-family: var(--v2-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  display: none;
  border: 1px solid;
}
.form-status.success {
  display: block;
  background: rgba(74, 222, 128, 0.08);
  color: var(--v2-accent);
  border-color: rgba(74, 222, 128, 0.3);
}
.form-status.error {
  display: block;
  background: rgba(255, 99, 99, 0.08);
  color: #ff8080;
  border-color: rgba(255, 99, 99, 0.3);
}
.form-status.loading {
  display: block;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  border-color: var(--v2-line);
  position: relative;
  overflow: hidden;
}
.form-status.loading::after {
  content: '';
  position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.2), transparent);
  animation: v2-scan 1.4s ease-in-out infinite;
}
@keyframes v2-scan {
  to { left: 100%; }
}

/* =====================================================
   05. Sticky CTA bar (appears after 50% scroll)
   ===================================================== */
.v2-sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--v2-ink);
  border: 1px solid var(--v2-line);
  border-radius: 100px;
  padding: 8px 8px 8px 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: transform 0.5s var(--v2-ease), opacity 0.5s var(--v2-ease);
  font-family: var(--v2-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--tj-color-common-white);
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.v2-sticky-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.v2-sticky-cta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--v2-accent);
  flex-shrink: 0;
  animation: v2-pulse 2.4s ease-out infinite;
}
.v2-sticky-cta-btn {
  background: var(--v2-accent);
  color: var(--v2-ink);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--v2-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s var(--v2-ease), transform 0.25s var(--v2-ease);
}
.v2-sticky-cta-btn:hover {
  background: var(--v2-accent-soft);
  color: var(--v2-ink);
  transform: translateY(-1px);
}
@media (max-width: 575px) {
  .v2-sticky-cta {
    bottom: 16px;
    left: 16px; right: 16px;
    transform: translateY(120px);
    padding: 8px 8px 8px 16px;
    justify-content: space-between;
  }
  .v2-sticky-cta.is-visible { transform: translateY(0); }
  .v2-sticky-cta-text { display: none; }
}

/* =====================================================
   07. Buttons — tighter, more confident
   ===================================================== */
.tj-primary-btn .btn_text span { letter-spacing: 0.04em; }

/* Hero primary button accent variant */
.h8-hero-cta .tj-primary-btn { box-shadow: 0 14px 40px -16px rgba(16, 56, 223, 0.65); }

/* ---------------------------------------------------
   Conversion CTA variant (Calendly + form submit)
   Mint icon circle, mint glow, mint hover sweep.
   --------------------------------------------------- */
.tj-primary-btn.tj-primary-btn--mint .btn_inner::before {
  background-color: var(--v2-accent);
}
.tj-primary-btn.tj-primary-btn--mint:hover .btn_inner::before {
  background-color: #16a34a; /* darker mint for white-text contrast */
}
.tj-primary-btn.tj-primary-btn--mint {
  box-shadow: 0 14px 40px -18px rgba(74, 222, 128, 0.55);
}
/* Override hero shadow if a mint button lives in the hero */
.h8-hero-cta .tj-primary-btn.tj-primary-btn--mint {
  box-shadow: 0 14px 40px -18px rgba(74, 222, 128, 0.55);
}
/* Header mint variant: keep white outer, mint icon circle */
.tj-primary-btn.header_btn.tj-primary-btn--mint {
  box-shadow: 0 8px 24px -10px rgba(74, 222, 128, 0.45);
}

/* =====================================================
   08. Marquee — refine
   ===================================================== */
.h8-marquee-section {
  border-top: 1px solid var(--tj-color-border-2);
  border-bottom: 1px solid var(--tj-color-border-2);
}

/* =====================================================
   09. Service cards — hover refinement
   ===================================================== */
.h8-services-section .service-item {
  transition: transform 0.4s var(--v2-ease), border-color 0.4s var(--v2-ease);
}
.h8-services-section .service-item:hover {
  transform: translateY(-4px);
}

/* =====================================================
   10. Footer — accent on tagline
   ===================================================== */
.h8-footer .copyright-text p i.fa-shield-check { color: var(--v2-accent); }

/* =====================================================
   11. Responsive — global polish
   ===================================================== */
@media (max-width: 575px) {
  .section-space { padding-top: 64px; padding-bottom: 64px; }
  .h8-hero-wrapper .h8-hero-content { padding-bottom: 80px !important; }
  .h8-hero-title { letter-spacing: -0.02em; }
}

/* Reduce-motion users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   12. Selection
   ===================================================== */
::selection {
  background: var(--v2-accent);
  color: var(--v2-ink);
}
