:root {
  --navy: #002b5b;
  --cyan: #00e5ff;
  --charcoal: #1a1a1a;
  --white: #ffffff;
  --light: #f3f7fb;
  --border: rgba(0, 43, 91, 0.12);
  --shadow: 0 18px 48px rgba(0, 43, 91, 0.1);
  --radius: 22px;
  --container: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 1rem;
  z-index: 500;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section--hero {
  padding-top: 8rem;
  background: linear-gradient(135deg, var(--navy), #00457f 55%, #01294a);
  color: var(--white);
}

.section--alt {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.section--light {
  background: var(--white);
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section--cta {
  background: linear-gradient(120deg, var(--navy), #004a78);
  color: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1rem 0;
  background: rgba(0, 43, 91, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand__logo {
  height: 42px;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.25);
}

.button--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.button--ghost-dark {
  color: var(--navy);
  border-color: rgba(0, 43, 91, 0.18);
}

.header-cta {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  padding: 0.2rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero h1,
.section-heading h2,
.about-text h2,
.contact-copy h2,
.cta-card h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text,
.section-heading p,
.about-text p,
.contact-copy p,
.cta-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 650px;
}

.hero-actions,
.cta-actions,
.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-badges span {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.network-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 229, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.network-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

.network-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(0, 229, 255, 0.15);
}

.node-a { top: 24%; left: 22%; }
.node-b { top: 30%; right: 20%; }
.node-c { bottom: 20%; left: 30%; }
.node-d { bottom: 24%; right: 26%; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 0.35rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p,
.about-card p,
.service-card p,
.differential-card p,
.project-card p,
.timeline-step p,
.contact-copy li,
.contact-form label,
.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(26, 26, 26, 0.8);
}

.section--dark .section-heading p,
.section--dark .timeline-step p,
.section--dark .differential-card p,
.section--dark .section-heading h2 {
  color: rgba(255, 255, 255, 0.82);
}

.about-card {
  background: linear-gradient(145deg, var(--light), #ffffff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 43, 91, 0.1));
  margin-bottom: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.chip {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 43, 91, 0.06);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.section-heading--light .eyebrow {
  color: var(--cyan);
}

.services-grid,
.differentials-grid,
.project-grid {
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.differential-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.service-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 43, 91, 0.14);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.16);
  color: var(--navy);
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.differential-card h3,
.project-card h3,
.timeline-step h3,
.contact-form h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-button {
  border-radius: 999px;
  border: 1px solid rgba(0, 43, 91, 0.14);
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.filter-button.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-card__highlight {
  color: var(--navy) !important;
  font-weight: 700;
  line-height: 1.5;
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.project-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.project-card__actions .button {
  padding: 0.7rem 0.85rem;
  min-height: 42px;
}

.project-card__actions .button--ghost-dark {
  color: var(--navy);
  border-color: rgba(0, 43, 91, 0.18);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.2rem;
}

.timeline-step__number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.18);
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
}

.differentials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.differential-card {
  background: linear-gradient(145deg, rgba(0, 43, 91, 0.06), rgba(0, 229, 255, 0.05));
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-list {
  padding-left: 1rem;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row--checkbox {
  flex-direction: row;
  align-items: start;
  gap: 0.7rem;
}

.form-row--checkbox input {
  margin-top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.form-row--checkbox a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 43, 91, 0.16);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: var(--light);
  color: var(--charcoal);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 229, 255, 0.4);
  border-color: var(--cyan);
}

.form-error {
  min-height: 1rem;
  font-size: 0.85rem;
  color: #b42318;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-logo {
  height: 42px;
  margin-bottom: 1rem;
}

.site-footer h3 {
  font-size: 1rem;
  color: var(--white);
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

.back-to-top,
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.25);
  z-index: 180;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible,
.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top {
  bottom: 1.2rem;
}

.whatsapp-float {
  bottom: 5rem;
  background: #25d366;
  color: #062d18;
  font-size: 0.78rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 250;
  padding: 1rem;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.modal__content {
  width: min(680px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: var(--navy);
}

.modal__category {
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.modal__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 240;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .about-grid,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(0, 43, 91, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 220px;
    display: none;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .section {
    padding: 4.4rem 0;
  }

  .section--hero {
    padding-top: 7rem;
  }

  .stats-grid,
  .services-grid,
  .project-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero h1,
  .section-heading h2,
  .about-text h2,
  .contact-copy h2,
  .cta-card h2 {
    font-size: 1.8rem;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .project-card__actions {
    flex-direction: column;
  }

  .project-card > p:not(.project-card__highlight) {
    display: none;
  }

  .project-card {
    gap: 0.5rem;
  }

  .contact-form {
    padding: 1.1rem;
  }
}

.legal-page {
  min-height: calc(100vh - 140px);
  padding: 9rem 0 5rem;
  background: var(--light);
}

.legal-content {
  max-width: 820px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin-top: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content h2 {
  margin-top: 2rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.legal-content a:not(.button) {
  color: var(--navy);
  text-decoration: underline;
}

.legal-updated {
  color: rgba(26, 26, 26, 0.65);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy), #00457f);
}

.error-card {
  width: min(620px, 100%);
  padding: 2.5rem;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.error-card img {
  margin: 0 auto 1rem;
  border-radius: 20px;
}

.error-card h1 {
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
