:root {
  --ink: #101623;
  --muted: #647084;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: rgba(16, 22, 35, 0.12);
  --blue: #1b6cff;
  --cyan: #22c5d8;
  --green: #16a36a;
  --rose: #ef4f6f;
  --shadow: 0 24px 70px rgba(16, 22, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 197, 216, 0.18), rgba(27, 108, 255, 0));
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.scrolled,
.site-header.nav-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(16, 22, 35, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 24px rgba(27, 108, 255, 0.26);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  color: var(--white);
  background: var(--blue);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 38px rgba(27, 108, 255, 0.28);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(18px, 5vw, 70px) 48px;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 11, 20, 0.92), rgba(6, 11, 20, 0.48), rgba(6, 11, 20, 0.18)),
    linear-gradient(0deg, rgba(6, 11, 20, 0.82), rgba(6, 11, 20, 0.08) 48%);
}

.hero-content {
  max-width: 960px;
}

.eyebrow,
.project-type {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.6rem, 16vw, 13rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 52px;
}

.hero-stats article {
  min-height: 112px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
}

.intro-band {
  background: var(--ink);
  color: var(--white);
  padding: 28px clamp(18px, 5vw, 70px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.intro-grid p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 70px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 1.25fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.estimator-grid h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.estimator-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16, 22, 35, 0.06);
}

.service-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.service-card h3,
.project-body h3,
.process-panel h3 {
  margin: 24px 0 12px;
  font-size: 1.35rem;
}

.service-card p,
.project-body p,
.process-panel p,
.estimator-grid p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.projects-section {
  background: var(--white);
}

.project-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.chip.active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 22, 35, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 0.8rem;
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  margin-top: 0;
}

.project-body a,
.text-button {
  color: var(--blue);
  font-weight: 800;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.process-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.process-tabs {
  display: grid;
  gap: 10px;
}

.process-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.process-tab.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.process-panel {
  min-height: 300px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 22, 35, 0.95), rgba(20, 68, 84, 0.92)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1300&q=85") center/cover;
}

.process-kicker {
  color: var(--cyan);
  font-weight: 800;
}

.process-panel h3 {
  margin: 10px 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.process-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.estimator-section {
  background: #eaf5f2;
}

.estimator-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.estimator-card,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.estimator-card label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 108, 255, 0.12);
}

.estimate-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  line-height: 1.65;
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  display: grid;
  gap: 16px;
  color: var(--ink);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.72);
  background: #090d15;
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.feature-modal {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.feature-modal::backdrop {
  background: rgba(16, 22, 35, 0.62);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.6rem;
}

.feature-modal h2 {
  margin: 0 0 18px;
}

.feature-modal li {
  margin: 10px 0;
  color: var(--muted);
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav-links {
    display: grid;
  }

  .section-heading,
  .intro-grid,
  .estimator-grid,
  .contact-grid,
  .process-shell {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 100vh;
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .hero-stats,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats article {
    min-height: auto;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

  .cursor-glow {
    display: none;
  }
}
