:root {
  --bg: #0b0f14;
  --surface: #0f1620;
  --fg: #e8eef7;
  --muted: rgba(232, 238, 247, 0.08);
  --muted-fg: rgba(232, 238, 247, 0.65);
  --accent: rgba(232, 238, 247, 0.1);
  --border: rgba(232, 238, 247, 0.14);

  --primary: #8fad31; /* adjust to your real primary */
  --primary-fg: #0b0f14;

  --success: #22c55e;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-medium: 0 18px 55px rgba(0, 0, 0, 0.45);

  --radius-xl: 18px;
  --radius-2xl: 22px;
  --radius-pill: 999px;

  --container: 1280px;

  /* helps on mobile browsers with dynamic address bar */
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}

.min-h-screen {
  min-height: 100vh;
}

.section-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar--top {
  background: transparent;
  padding: 18px 0;
}

.navbar--scrolled {
  padding: 12px 0;
  background: rgba(15, 22, 32, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 238, 247, 0.1);
  box-shadow: var(--shadow-soft);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  display: grid;
  place-items: center;
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-fg);
}

.logo-text {
  display: none;
}

.logo-title {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
}

.logo-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted-fg);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  color: var(--fg);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:not(.is-active):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-fg);
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--fg);
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.btn-primary-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-btn:hover {
  background: var(--accent);
}

/* Mobile menu */
.mobile-menu-root {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu-root.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 238, 247, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu-root.is-open .mobile-panel {
  transform: translateX(0);
}

.mobile-panel-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-title {
  margin: 0;
  font-weight: 600;
}

.icon-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-link:hover {
  background: var(--accent);
}

.mobile-link.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

.mobile-footer {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted-fg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 2s ease-in-out,
    transform 2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ken-burns {
  animation: kenBurns 12s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1.5%, 0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay-r {
  background: linear-gradient(
    90deg,
    rgba(11, 15, 20, 1) 0%,
    rgba(11, 15, 20, 0.82) 45%,
    rgba(11, 15, 20, 0) 100%
  );
}

@media (min-width: 768px) {
  .hero-overlay-r {
    background: linear-gradient(
      90deg,
      rgba(11, 15, 20, 0.92) 0%,
      rgba(11, 15, 20, 0.6) 55%,
      rgba(11, 15, 20, 0) 100%
    );
  }
}

.hero-overlay-b {
  background: linear-gradient(
    180deg,
    rgba(11, 15, 20, 0) 0%,
    rgba(11, 15, 20, 0) 55%,
    rgba(11, 15, 20, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 128px;
  padding-bottom: 80px;
}

.hero-max {
  max-width: 48rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(232, 238, 247, 0.08);
  border: 1px solid rgba(232, 238, 247, 0.12);
  color: rgba(232, 238, 247, 0.88);
  font-size: 11px;
  font-weight: 500;
}

.hero-title {
  margin: 0 0 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: 44px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 58px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 68px;
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #c6ff5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(232, 238, 247, 0.85);
  max-width: 42rem;
}

.hero-lead strong {
  color: var(--fg);
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 22px;
  }
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-fg);
  max-width: 42rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.stat-value {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-value.primary {
  color: var(--primary);
}
.stat-value.success {
  color: var(--success);
}

.stat-label {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted-fg);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  display: none;
}

@media (min-width: 640px) {
  .stat-divider {
    display: block;
  }
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  box-shadow: 0 12px 30px rgba(143, 173, 49, 0.22);
}

.btn-hero:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-hero.full {
  width: 100%;
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 238, 247, 0.18);
  background: rgba(232, 238, 247, 0.04);
  color: var(--fg);
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.btn-outline-pill:hover {
  background: rgba(232, 238, 247, 0.08);
  border-color: rgba(232, 238, 247, 0.26);
  transform: translateY(-1px);
}

.pulse {
  animation: gentlePulse 2.2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted-fg);
  border-top: 1px solid rgba(232, 238, 247, 0.1);
  padding-top: 22px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust-item strong {
  color: var(--fg);
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--muted-fg);
}

.scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icons */
.icon {
  display: inline-flex;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.icon-24 {
  width: 24px;
  height: 24px;
}
.icon-20 {
  width: 20px;
  height: 20px;
}
.icon-16 {
  width: 16px;
  height: 16px;
}

.success {
  color: var(--success);
}

/* Responsive breakpoints mirroring Tailwind: sm md lg */
@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

@media (min-width: 768px) {
  .phone-link {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}

/* Global section helpers */
.section-padding {
  padding: 90px 0;
}

@media (max-width: 640px) {
  .section-padding {
    padding: 70px 0;
  }
}

.bg-muted {
  background: rgba(232, 238, 247, 0.04);
}

/* Card base (used by Projects + other sections) */
.project-card {
  background: rgba(232, 238, 247, 0.06);
  border: 1px solid rgba(232, 238, 247, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

/* Secondary button (used in projects) */
.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(232, 238, 247, 0.07);
  border: 1px solid rgba(232, 238, 247, 0.14);
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-secondary-pill:hover {
  transform: translateY(-1px);
  background: rgba(232, 238, 247, 0.1);
  border-color: rgba(232, 238, 247, 0.22);
}

/* Progress bar (used in Project Plans) */
.progress-container {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(232, 238, 247, 0.1);
  border: 1px solid rgba(232, 238, 247, 0.12);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 1.2s ease;
}

/* Badge variants */
.badge-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.18);
  color: rgba(34, 197, 94, 0.95);
}

/* Mockup label (used in Transparency image) */
.mockup-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 22, 32, 0.65);
  border: 1px solid rgba(232, 238, 247, 0.14);
  color: rgba(232, 238, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ------------------------------------------ */

/* Make navbar height predictable on mobile */
@media (max-width: 640px) {
  .navbar--top {
    padding: 12px 0;
  }
  .navbar--scrolled {
    padding: 10px 0;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .btn-primary-pill {
    padding: 10px 14px;
    font-size: 13px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
  }
}

/* Fix the "empty space" under navbar on mobile */
@media (max-width: 640px) {
  .hero-content {
    padding-top: calc(var(--nav-h) + 22px);
    padding-bottom: 70px;
  }

  .badge-row {
    margin-bottom: 18px;
    gap: 10px;
  }

  .trust-badge {
    font-size: 10.5px;
    padding: 6px 10px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.06;
    margin: 0 0 18px;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-sub {
    font-size: 12px;
    line-height: 1.7;
  }

  .stats {
    flex-wrap: nowrap; /* force single row */
    justify-content: center; /* center the whole group */
    align-items: flex-end;
    gap: 12px;
    width: 100%;
  }

  .stat {
    min-width: 0 !important; /* override your min-width:120px */
    flex: 1 1 0; /* equal width columns */
    text-align: center;
  }

  .stat-value {
    font-size: 26px; /* tweak if needed */
    line-height: 1;
    white-space: nowrap; /* keeps £0.00 on one line */
  }

  .stat-label {
    font-size: 12px;
    line-height: 1.2;
  }

  /* Show dividers on mobile too, but shorter + subtle */
  .stat-divider {
    display: block;
    height: 34px;
    opacity: 0.6;
  }

  .cta-row {
    margin-bottom: 26px;
  }

  .btn-hero {
    padding: 14px 16px;
    font-size: 14px;
  }

  .btn-outline-pill {
    padding: 13px 18px;
  }

  .trust-strip {
    gap: 14px;
    padding-top: 16px;
  }
}

/* Ultra small phones */
@media (max-width: 390px) {
  .hero-title {
    font-size: 34px;
  }

  .stat {
    min-width: 46%;
  }
}

/* Scroll indicator: true bottom-center on all screens (works with .reveal) */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: max-content;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

/* IMPORTANT: .reveal overwrites transform, so we re-apply centering + reveal offset */
.scroll-indicator.reveal {
  transform: translate(-50%, 20px); /* center X + reveal Y */
}

.scroll-indicator.reveal.is-visible {
  transform: translate(-50%, 0);
}

.scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Smaller on mobile */
@media (max-width: 640px) {
  .scroll-indicator {
    bottom: 12px;
  }
  .scroll-inner {
    gap: 6px;
  }
  .scroll-text {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
  .scroll-indicator .icon-16 {
    width: 14px;
    height: 14px;
  }
}

/* Extra small phones */
@media (max-width: 390px) {
  .scroll-indicator {
    bottom: 10px;
  }
  .scroll-text {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .scroll-indicator .icon-16 {
    width: 13px;
    height: 13px;
  }
}
