:root {
  --bg: #06131a;
  --bg-2: #081e27;
  --ink: #ecfffb;
  --ink-soft: #a9d9d2;
  --line: rgba(112, 255, 218, 0.22);
  --blue: #1d7df2;
  --blue-2: #6cb8ff;
  --green: #00d597;
  --green-2: #7af8cc;
  --accent: #16e0b0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at -10% -5%, rgba(0, 213, 151, 0.2), transparent 70%),
    radial-gradient(900px 500px at 105% -10%, rgba(29, 125, 242, 0.22), transparent 70%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 45%, #071117 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(circle at 25% 35%, rgba(0, 213, 151, 0.14), transparent 30%),
    radial-gradient(circle at 75% 65%, rgba(29, 125, 242, 0.15), transparent 32%);
  filter: blur(26px);
  animation: aura 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.16;
  font-family: "Montserrat", sans-serif;
}

p {
  margin: 0;
}

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

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

.wrap {
  width: min(1220px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(6, 19, 26, 0.88) 0%,
    rgba(6, 19, 26, 0.65) 70%,
    rgba(6, 19, 26, 0.45) 100%
  );
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(122, 248, 204, 0.45);
  background: rgba(5, 27, 35, 0.85);
  color: #d9fff5;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.brand {
  width: fit-content;
}

.brand img {
  width: clamp(147px, 18.2vw, 231px);
  height: auto;
  aspect-ratio: 750 / 100;
  object-fit: contain;
}

.footer-grid > img {
  width: clamp(210px, 26vw, 330px);
  height: auto;
  aspect-ratio: 750 / 100;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  padding-left: 2rem;
  font-weight: 500;
}

.menu > a:not(.btn) {
  color: var(--ink-soft);
  position: relative;
}

.menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.25s ease;
}

.menu > a:not(.btn):hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 248, 204, 0.45);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  color: #052126;
  background: linear-gradient(130deg, var(--green-2), var(--blue-2));
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
}

.btn-small {
  padding: 0.58rem 1rem;
}

.hero {
  padding: 2rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  letter-spacing: -0.02em;
  animation: rise 0.8s ease both;
}

.hero-copy h1 span {
  color: #8bdfff;
}

.hero-copy p {
  margin: 1rem 0 1.4rem;
  color: var(--ink-soft);
  max-width: 58ch;
  animation: rise 1s ease both;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.35));
  animation: float 6s ease-in-out infinite;
}

.kpis {
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kpis article {
  text-align: center;
}

.num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(130deg, var(--green-2), var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kpis p:last-child {
  color: var(--ink-soft);
}

.section-head {
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.section-head p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.section-light,
.section-method,
.section-dark,
.section-contact {
  padding: 3rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.service-grid.reverse {
  direction: ltr;
}

.service-grid.reverse img {
  order: 1;
}

.service-grid.reverse > div {
  order: 2;
}

.service-grid h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  margin-bottom: 0.8rem;
}

.service-grid p {
  color: var(--ink-soft);
  margin: 0.4rem 0;
}

.service-grid ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.service-grid li {
  margin-bottom: 0.45rem;
  padding-left: 1.4rem;
  position: relative;
}

.service-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--green), var(--blue));
}

.service-grid img {
  width: min(100%, 420px);
  margin-inline: auto;
  height: auto;
  object-fit: contain;
}

.service-grid,
.method-grid article,
.section-head,
.case-filters,
.case-teaser,
.case-list-item,
.contact-grid > * {
  opacity: 1;
  transform: translateY(0);
}

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

.method-grid article {
  padding: 1rem 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--blue)) 1;
}

.method-grid h3 {
  margin-bottom: 0.6rem;
  color: #a8ffe5;
}

.method-grid p {
  color: var(--ink-soft);
}

.section-dark {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark .section-head p {
  color: #99ccc4;
}

.clients-teasers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.case-teaser {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 190px;
  border: 1px solid rgba(122, 248, 204, 0.25);
  background: rgba(6, 20, 28, 0.55);
  cursor: pointer;
}

.case-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.case-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(
    180deg,
    rgba(4, 16, 24, 0) 0%,
    rgba(4, 16, 24, 0.88) 40%,
    rgba(4, 16, 24, 0.96) 100%
  );
}

.case-overlay h3 {
  font-size: 1.2rem;
  margin: 0.16rem 0 0.25rem;
}

.case-kicker {
  margin: 0;
  color: #8fd7c9;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-overlay p:last-child {
  color: #b4ddd6;
  font-size: 0.9rem;
}

.case-teaser:hover img {
  transform: scale(1.07);
}

.case-teaser:focus-visible {
  outline: 2px solid rgba(122, 248, 204, 0.9);
  outline-offset: 2px;
}

.case-cta-row {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.btn-ghost {
  color: #a8fff0;
  background: transparent;
  border-color: rgba(29, 125, 242, 0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.contact-grid h2 {
  margin-bottom: 0.65rem;
}

.contact-grid p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.btn-accent {
  background: linear-gradient(120deg, #1de2a7, #18a7f4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-form h3 {
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: #e8ffff;
  background: rgba(5, 26, 34, 0.75);
  border: 1px solid rgba(122, 248, 204, 0.25);
  border-radius: 10px;
  padding: 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(108, 184, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(29, 125, 242, 0.15);
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  min-height: 1.2rem;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-status.success {
  color: #7af8cc;
}

.form-status.error {
  color: #ffb7b7;
}

.footer {
  padding: 2.3rem 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1.2rem;
}

.footer p {
  margin: 0.36rem 0;
  color: #9ecfc8;
}

.footer a {
  text-decoration: underline;
}

.cases-layout {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-chip {
  border: 1px solid rgba(108, 184, 255, 0.45);
  background: rgba(10, 33, 44, 0.68);
  color: #c0f2e7;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: linear-gradient(120deg, rgba(0, 213, 151, 0.22), rgba(29, 125, 242, 0.26));
  border-color: rgba(122, 248, 204, 0.8);
  color: #e9fffa;
}

.case-visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-list-item {
  width: 100%;
  text-align: left;
  background: rgba(8, 31, 41, 0.5);
  border: 1px solid rgba(122, 248, 204, 0.25);
  color: var(--ink);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.case-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 184, 255, 0.75);
  background: rgba(9, 37, 49, 0.7);
}

.case-list-item h3 {
  margin: 0.3rem 0;
}

.case-list-item p {
  color: var(--ink-soft);
}

.case-visual-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 260px;
}

.case-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.case-visual-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.95rem;
  background: linear-gradient(
    180deg,
    rgba(4, 16, 24, 0) 0%,
    rgba(4, 16, 24, 0.88) 42%,
    rgba(4, 16, 24, 0.97) 100%
  );
}

.case-visual-copy h3 {
  margin: 0.2rem 0 0.3rem;
}

.case-visual-copy p:last-child {
  color: #b4ddd6;
  margin: 0;
}

.case-visual-card:hover img {
  transform: scale(1.06);
}

.case-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 10, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(580px, 100vw);
  height: 100vh;
  background: linear-gradient(165deg, #09212c 0%, #07171f 100%);
  border-left: 1px solid rgba(122, 248, 204, 0.2);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
}

.drawer-open .case-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open .case-drawer {
  transform: translateX(0);
}

.case-drawer-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(122, 248, 204, 0.2);
}

.case-drawer-close {
  background: transparent;
  border: 1px solid rgba(122, 248, 204, 0.4);
  color: #cbfff0;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.case-drawer-content {
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.case-drawer-content img {
  width: 100%;
  border-radius: 14px;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.drawer-meta span {
  border: 1px solid rgba(108, 184, 255, 0.52);
  color: #b7e8ff;
  padding: 0.18rem 0.64rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.drawer-section h4 {
  margin-bottom: 0.35rem;
}

.drawer-section p {
  color: var(--ink-soft);
}

.legal-content {
  max-width: 920px;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 1rem;
}

.legal-block {
  border: 1px solid rgba(122, 248, 204, 0.22);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(8, 31, 41, 0.5);
}

.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.legal-block h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.02rem;
}

.legal-block p,
.legal-block li {
  color: var(--ink-soft);
}

.legal-block p + p {
  margin-top: 0.5rem;
}

.legal-block p + ul,
.legal-block ul + p {
  margin-top: 0.5rem;
}

.legal-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(122, 248, 204, 0.22);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.legal-table thead th {
  background: rgba(122, 248, 204, 0.08);
  color: var(--ink);
  font-weight: 600;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes aura {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .service-grid,
  .method-grid,
  .clients-teasers,
  .case-visual-grid,
  .contact-grid,
  .footer-grid,
  .kpis {
    grid-template-columns: 1fr;
  }

  .topbar {
    overflow: visible;
  }

  .topbar-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid rgba(122, 248, 204, 0.25);
    border-radius: 14px;
    background: rgba(5, 24, 32, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  body.menu-open .menu {
    display: flex;
  }

  .menu > a:not(.btn) {
    padding: 0.15rem 0;
  }

  .menu .btn {
    width: 100%;
  }

  .case-teaser {
    min-height: 170px;
  }
}
