/* ------------------------------
   ROOT / RESET
------------------------------ */

:root {
  --bg: #07111a;
  --bg-soft: #0b1722;
  --card: #0e1d2a;
  --card-2: #102331;
  --line: rgba(255, 255, 255, 0.08);

  --text: #f5f9fc;
  --text-soft: #a9b8c4;

  --blue: #2e9cff;
  --blue-dark: #1766a3;
  --blue-light: #8fd0ff;

  --green: #143b32;
  --green-light: #2a6a59;

  --radius: 24px;
  --radius-sm: 16px;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 88% 4%, rgba(46, 156, 255, 0.09), transparent 25%),
    radial-gradient(circle at 8% 28%, rgba(28, 87, 72, 0.10), transparent 26%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 17, 26, 0.84);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), #14659f);
  color: white;
  font-size: 0.78rem;
  box-shadow: 0 8px 25px rgba(46, 156, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  color: #c8d5de;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-call {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-call:hover {
  border-color: var(--blue);
  background: rgba(46, 156, 255, 0.08);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: white;
  margin: 6px auto;
  transition: 0.2s ease;
}

.mobile-menu {
  display: none;
}

/* ------------------------------
   HERO
------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  background: rgba(46, 156, 255, 0.10);
  top: 12%;
  right: -80px;
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  background: rgba(30, 84, 70, 0.10);
  bottom: 4%;
  left: -80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--blue-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #bed9ec;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #53d49b;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(83, 212, 155, 0.09);
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.35rem, 6vw, 6.4rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--blue-light);
}

.hero-text {
  max-width: 670px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #03101a;
  box-shadow: 0 16px 35px rgba(46, 156, 255, 0.22);
}

.btn-primary:hover {
  background: #60b5ff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255,255,255,0.03);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-light {
  background: white;
  color: #07111a;
}

.trust-row {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 0.92rem;
}

.trust-row span {
  color: var(--text-soft);
  font-size: 0.76rem;
  margin-top: 2px;
}

/* Hero visual */

.visual-card {
  position: relative;
  min-height: 545px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(155deg, rgba(46,156,255,0.12), transparent 38%),
    linear-gradient(330deg, rgba(31,83,69,0.19), transparent 42%),
    #0d1b27;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card::before {
  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: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.visual-top,
.house {
  position: absolute;
  left: 35px;
  bottom: 35px;
  width: 230px;
  height: 160px;
  border: 2px solid rgba(143, 208, 255, 0.85);
  border-top: none;
  background: rgba(46, 156, 255, 0.035);
}

.door {
  position: absolute;
  width: 46px;
  height: 92px;
  bottom: 0;
  left: 92px;
  border: 2px solid rgba(143, 208, 255, 0.55);
}

.visual-bottom small,
.visual-bottom strong {
  display: block;
}

.visual-bottom small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.visual-bottom strong {
  margin-top: 2px;
  font-size: 0.9rem;
}

/* ------------------------------
   GENERAL SECTIONS
------------------------------ */

.section {
  padding: 110px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.building-copy h2,
.cta-copy h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p {
  width: min(430px, 100%);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ------------------------------
   SERVICES
------------------------------ */

.services {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.026);
  border: 1px solid var(--line);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(46, 156, 255, 0.055);
  border-color: rgba(46, 156, 255, 0.28);
}

.service-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #617787;
  font-size: 0.72rem;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(46,156,255,0.09);
  font-size: 1.3rem;
  margin-bottom: 62px;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.86rem;
}

/* ------------------------------
   BUILDING
------------------------------ */

.building {
  background:
    radial-gradient(circle at 80% 40%, rgba(28, 87, 72, 0.13), transparent 34%),
    rgba(255,255,255,0.012);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.building-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 90px;
  align-items: center;
}

.building-copy > p {
  margin-top: 24px;
  color: var(--text-soft);
  max-width: 620px;
}

.building-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.building-list div {
  color: #cfdae2;
  font-size: 0.9rem;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(42, 106, 89, 0.22);
  color: #78cdb3;
  font-size: 0.7rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 32px;
  font-weight: 800;
  color: var(--blue-light);
}

.project-card {
  min-height: 470px;
  padding: 1px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(46,156,255,0.5), rgba(42,106,89,0.24), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
}

.project-card-inner {
  min-height: 468px;
  padding: 38px;
  border-radius: 29px;
  background:
    linear-gradient(160deg, rgba(24,57,75,0.72), rgba(7,17,26,0.97)),
    #07111a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-tag {
  margin-bottom: auto;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(42,106,89,0.18);
  color: #95d8c3;
  border: 1px solid rgba(119, 206, 179, 0.16);
  font-size: 0.72rem;
}

.project-card h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-card p {
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 430px;
}

.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-stats strong,
.project-stats span {
  display: block;
}

.project-stats strong {
  color: var(--blue-light);
}

.project-stats span {
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ------------------------------
   WHY US
------------------------------ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.why-item > span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.why-item h3 {
  margin-top: 26px;
  font-size: 1rem;
}

.why-item p {
  color: var(--text-soft);
  font-size: 0.83rem;
  margin-top: 8px;
}

/* ------------------------------
   CTA / FOOTER
------------------------------ */

.cta-section {
  padding: 40px 0 100px;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  padding: 58px;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(46,156,255,0.20), rgba(21,72,59,0.18)),
    #0d1c29;
  border: 1px solid rgba(255,255,255,0.10);
}

.cta-copy {
  max-width: 620px;
}

.cta-copy p {
  color: var(--text-soft);
  margin-top: 16px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

footer {
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.84rem;
}

.footer-inner p {
  color: #70828f;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* ------------------------------
   REVEAL
------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 980px) {
  .nav-links,
  .nav-call {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    padding: 18px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8,20,31,0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 12px;
    border-radius: 10px;
    color: #d6e0e7;
    font-size: 0.9rem;
  }

  .mobile-menu-cta {
    background: var(--blue);
    color: #06111a !important;
    font-weight: 800;
    text-align: center;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .visual-card {
    min-height: 460px;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .building-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-card {
    max-width: 700px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 72px;
  }

  .mobile-menu {
    top: 72px;
    left: 14px;
    right: 14px;
  }

  .brand-name {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 400px;
  }

  
.section {
    padding: 80px 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 34px;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 250px;
  }

  .service-icon {
    margin-bottom: 42px;
  }

  .building-list {
    grid-template-columns: 1fr;
  }

  .project-card-inner {
    padding: 28px;
  }

  .cta-card {
    padding: 34px 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* AllScope branding */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}



.footer-logo {
  width: 205px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 8px;
}

.brand-mark,
.brand-name {
  display: none;
}

@media (max-width: 680px) {
  
  .footer-logo {
    width: 175px;
    height: 62px;
  }
}


/* Blueprint house graphic */
.visual-card {
  position: relative;
  min-height: 545px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at 50% 43%, rgba(46, 156, 255, 0.07), transparent 35%),
    linear-gradient(155deg, rgba(46, 156, 255, 0.075), transparent 45%),
    #0d1b27;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black 8%, rgba(0,0,0,0.92) 77%, transparent);
  pointer-events: none;
}

.house-graphic {
  position: relative;
  z-index: 1;
  width: min(100%, 450px);
  min-height: 485px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.house-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.house-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.main-line {
  stroke: rgba(126, 199, 248, 0.96);
  stroke-width: 2.2;
  filter: url(#houseGlow);
}

.soft-line {
  stroke: rgba(126, 199, 248, 0.62);
  stroke-width: 1.8;
}

.detail-line {
  stroke: rgba(143, 208, 255, 0.32);
  stroke-width: 1.2;
}

.door-dot {
  fill: #83ccfb;
  filter: drop-shadow(0 0 5px rgba(131, 204, 251, 0.55));
}

.mini-badge {
  position: relative;
  margin-top: -8px;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border: 1px solid rgba(126, 199, 248, 0.24);
  border-radius: 18px;
  background: rgba(7, 17, 26, 0.90);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.24);
}

.mini-badge-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(92, 174, 148, 0.62);
  background: rgba(42, 106, 89, 0.16);
  color: #78d0b5;
  font-size: 1rem;
}

.mini-badge small,
.mini-badge strong {
  display: block;
  line-height: 1.25;
}

.mini-badge small {
  color: #77a9c6;
  font-size: 0.67rem;
}

.mini-badge strong {
  margin-top: 2px;
  color: #f0f7fb;
  font-size: 0.88rem;
}

@media (max-width: 680px) {
  .visual-card {
    min-height: 420px;
    padding: 18px;
  }

  .house-graphic {
    min-height: 385px;
  }

  .mini-badge {
    min-width: 230px;
    padding: 11px 14px;
  }
}


/* Refined AllScope header + hero branding */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand-wordmark {
  color: #f5f9fc;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.hero-main-logo {
  width: min(390px, 78%);
  margin: 0 0 22px;
}

.hero-main-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Keep the full logo crisp against the dark hero without making it look like a card. */
.hero-main-logo {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

@media (max-width: 680px) {
  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
  }

  .brand-wordmark {
    font-size: 0.76rem;
  }

  .hero-main-logo {
    width: min(320px, 88%);
    margin-bottom: 18px;
  }
}


/* Interactive Before / After house showcase */
.before-after-card { position: relative; }
.ba-controls {
  position: absolute; top: 22px; left: 50%; z-index: 8; transform: translateX(-50%);
  display: inline-flex; gap: 5px; padding: 5px; border: 1px solid rgba(126,199,248,.18);
  border-radius: 999px; background: rgba(7,17,26,.86); backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.ba-btn {
  appearance: none; border: 0; min-width: 88px; padding: 9px 16px; border-radius: 999px;
  background: transparent; color: #829bab; font: inherit; font-size: .78rem; font-weight: 800;
  cursor: pointer; transition: .2s ease;
}
.ba-btn:hover { color: #fff; }
.ba-btn.active {
  color: #e6f6ff; background: rgba(46,156,255,.16);
  box-shadow: inset 0 0 0 1px rgba(126,199,248,.20);
}
.house-state { display: none; }
.house-state.is-visible { display: flex; }
.before-glow { filter: url(#houseGlowBefore); }
.after-main { stroke: rgba(126,199,248,.98); stroke-width: 2.3; filter: url(#houseGlowAfter); }
.after-soft { stroke: rgba(126,199,248,.74); stroke-width: 1.8; }
.after-detail { stroke: rgba(143,208,255,.42); stroke-width: 1.2; }
.plumbing-line { stroke: rgba(99,197,255,.95); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.after-house-svg { width: 112%; max-width: none; }
.after-badge { border-color: rgba(92,174,148,.28); }
@media (max-width: 680px) {
  .ba-controls { top: 14px; }
  .ba-btn { min-width: 74px; padding: 8px 13px; }
  .after-house-svg { width: 116%; }
}


