:root {
  --black: #07090d;
  --graphite: #121722;
  --soft-black: #0c111a;
  --deep-blue: #0f1f3d;
  --trust-blue: #3b82f6;
  --electric-blue: #60a5fa;
  --white: #f6f8fb;
  --gray: #94a3b8;
  --muted: rgba(246, 248, 251, 0.68);
  --border: rgba(246, 248, 251, 0.12);
  --radius: 26px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: var(--trust-blue);
  color: white;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.narrow {
  max-width: 880px;
}

.section {
  padding: 112px 0;
  position: relative;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo::after {
  content: "®";
  color: var(--trust-blue);
  font-size: 0.75rem;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-menu a {
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--electric-blue);
}

.nav-cta {
  border: 1px solid rgba(96, 165, 250, 0.5);
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white) !important;
  background: rgba(59, 130, 246, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 18%, rgba(59, 130, 246, 0.36), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(15, 31, 61, 0.9), transparent 36%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.98), rgba(7, 9, 13, 0.78), rgba(7, 9, 13, 0.36));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  padding-top: 82px;
}

.eyebrow {
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  line-height: 1.02;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 7.1rem);
  letter-spacing: -0.075em;
  max-width: 1080px;
}

h1 span {
  color: var(--electric-blue);
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.7vw, 5rem);
  letter-spacing: -0.06em;
  max-width: 980px;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.16rem;
  margin: 28px 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 800;
  font-family: inherit;
}

.btn.primary {
  background: var(--trust-blue);
  color: white;
  box-shadow: 0 18px 70px rgba(59, 130, 246, 0.26);
}

.btn.primary:hover {
  transform: translateY(-3px);
  background: var(--electric-blue);
}

.btn.secondary {
  border-color: var(--border);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn.secondary:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}

.manifesto {
  background: var(--white);
  color: var(--black);
}

.manifesto .eyebrow {
  color: var(--trust-blue);
}

.manifesto p {
  color: rgba(7, 9, 13, 0.72);
  font-size: 1.12rem;
  margin-top: 24px;
}

.section-head {
  margin-bottom: 48px;
}

.section-description {
  color: var(--muted);
  max-width: 720px;
  margin-top: 18px;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.plan,
.project {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before,
.plan::before,
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 42%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before,
.plan:hover::before,
.project:hover::before {
  opacity: 1;
}

.card:hover,
.plan:hover,
.project:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.45);
}

.card > *,
.plan > *,
.project > * {
  position: relative;
  z-index: 2;
}

.card span,
.featured span,
.method-step span,
.stage span {
  color: var(--electric-blue);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 800;
}

.card p,
.plan p,
.project span,
.method-step p,
.stage p,
.digital-list span {
  color: var(--muted);
}

.featured a {
  display: inline-block;
  margin-top: 22px;
  color: var(--electric-blue);
  font-weight: 800;
}

.work {
  background: var(--soft-black);
}

.carousel-shell {
  position: relative;
}

.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  scrollbar-width: none;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

.work-card {
  width: 360px;
  height: 520px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: #111;
  isolation: isolate;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.92)),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 36%);
  z-index: 1;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s ease;
  filter: saturate(0.92) contrast(1.08);
  pointer-events: none;
  user-select: none;
}

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

.work-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  z-index: 2;
}

.work-card p {
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.work-card h3 {
  max-width: 290px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--trust-blue);
  border-color: var(--trust-blue);
  transform: translateY(-3px);
}

.dark-panel {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
    var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-list span {
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(246, 248, 251, 0.84);
  background: rgba(255, 255, 255, 0.035);
  transition: var(--transition);
}

.service-list span:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.42);
  transform: translateY(-3px);
}

.company-stage {
  background: linear-gradient(135deg, #0d111a, #111827);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stage {
  padding: 42px;
  border-right: 1px solid var(--border);
}

.stage:last-child {
  border-right: none;
}

.method {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.method-step {
  padding: 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  grid-template-columns: repeat(4, 1fr);
}

.project p {
  color: var(--electric-blue);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  font-weight: 800;
}

.digital {
  background: var(--white);
  color: var(--black);
}

.digital .eyebrow {
  color: var(--trust-blue);
}

.digital-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.digital-list {
  display: grid;
  gap: 16px;
}

.digital-list div {
  background: white;
  border: 1px solid rgba(7, 9, 13, 0.1);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(7, 9, 13, 0.06);
}

.digital-list strong {
  display: block;
  margin-bottom: 8px;
}

.digital-list span {
  color: rgba(7, 9, 13, 0.64);
}

.plan ul {
  margin-top: 24px;
  list-style: none;
}

.plan li {
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.main-plan {
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-12px);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.035));
}

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

.contact .eyebrow {
  color: var(--trust-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(7, 9, 13, 0.7);
}

.contact-note {
  border-left: 3px solid var(--trust-blue);
  padding-left: 18px;
  font-weight: 600;
}

.contact-form {
  background: white;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(7, 9, 13, 0.14);
  display: grid;
  gap: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 9, 13, 0.14);
  padding: 16px;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  color: var(--black);
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--trust-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-message {
  font-weight: 800;
  color: var(--deep-blue);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: var(--trust-blue);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 90;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  transition: var(--transition);
}

.whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--electric-blue);
}

.footer {
  padding: 28px 0;
  background: #05070b;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(246, 248, 251, 0.58);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: 0.8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 1100px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method {
    grid-template-columns: repeat(3, 1fr);
  }

  .three,
  .stage-grid,
  .contact-grid,
  .digital-grid {
    grid-template-columns: 1fr;
  }

  .main-plan {
    transform: none;
  }

  .stage {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stage:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 82px 0;
  }

  .cursor-glow {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 82px);
    background: rgba(7, 9, 13, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 6%;
    transition: var(--transition);
    border-top: 1px solid var(--border);
  }

  .nav-menu.active {
    right: 0;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.26), transparent 38%),
      linear-gradient(180deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.78), rgba(7, 9, 13, 0.7));
  }

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

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

  .work-card {
    width: 82vw;
    height: 460px;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card,
  .plan,
  .project,
  .contact-form,
  .stage,
  .method-step {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .work-card {
    height: 420px;
  }
}