*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Google Sans Flex", Inter, system-ui, -apple-system, sans-serif;
  color: #0E0D15;
  background: #f6f5f2;
  background-image: radial-gradient(ellipse 800px 600px at 85% -5%, rgba(46, 160, 217, 0.22), transparent 60%), radial-gradient(ellipse 700px 500px at -10% 22%, rgba(232, 182, 76, 0.14), transparent 55%), radial-gradient(ellipse 900px 700px at 50% 102%, rgba(46, 160, 217, 0.16), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2EA0D9;
  text-decoration: none;
}

a:hover {
  color: #1d7fb0;
}

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

h1, h2, h3, p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-header img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

/* Bento */
.bento {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}

.row {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack > * {
  flex: 0 0 auto;
}

.row-services .stack .card.grey {
  flex: 1 1 auto;
}

.row-hero {
  grid-template-columns: 7fr 5fr;
}

.row-services {
  grid-template-columns: 6fr 6fr;
}

.row-windev {
  grid-template-columns: 8fr 4fr;
}

.card {
  border-radius: 22px;
  padding: 34px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card.dark {
  background: linear-gradient(135deg, #2b2a3d, #16151f 45%, #0E0D15);
  color: #fff;
}

.card.blue {
  background: linear-gradient(135deg, #5cbcea, #2EA0D9 55%, #1d84b8);
}

.card.gold {
  background: linear-gradient(135deg, #f5d987, #e8b64c);
}

.card.white {
  background: #fff;
}

.card.grey {
  background: linear-gradient(135deg, #f0efec, #e2dfd8);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0E0D15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  color: #0E0D15;
}

.card.dark .card-title {
  color: #fff;
}

.card p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.card.white p:not(.eyebrow), .card.grey p:not(.eyebrow) {
  color: #5c5b63;
}

.card.blue p:not(.eyebrow) {
  color: rgba(14, 13, 21, 0.82);
}

.card.gold p:not(.eyebrow) {
  color: rgba(14, 13, 21, 0.72);
}

.card.dark p:not(.eyebrow) {
  color: #a9a9b2;
}

.card strong {
  color: #0E0D15;
  font-weight: 700;
}

.card.dark strong {
  color: #fff;
}

.eyebrow {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2EA0D9;
}

/* Hero */
.hero h1 {
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-lead {
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #2EA0D9;
  color: #0E0D15;
}

.btn-primary:hover {
  color: #0E0D15;
  box-shadow: 0 10px 30px rgba(46, 160, 217, 0.35);
}

.btn-light {
  background: #fff;
  color: #0E0D15;
}

.btn-light:hover {
  color: #0E0D15;
}

.btn-dark {
  background: #0E0D15;
  color: #e8b64c;
  align-self: flex-start;
}

.btn-dark:hover {
  color: #e8b64c;
}

.btn-dark svg {
  stroke: #e2dfd8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* decorative layers */
.deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 22px;
}

.dots {
  position: absolute;
  inset: 0;
  background-size: 22px 22px;
}

.dots.blue {
  background-image: radial-gradient(rgba(46, 160, 217, 0.35) 1.2px, transparent 1.2px);
}

.dots.white {
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.2px, transparent 1.2px);
}

.dots.dark {
  background-image: radial-gradient(rgba(14, 13, 21, 0.28) 1.2px, transparent 1.2px);
}

.mask-tr {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 92% 12%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 92% 12%, #000, transparent 70%);
}

.mask-br {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 90% 92%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 90% 92%, #000, transparent 72%);
}

.mask-b {
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 50% 100%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 80% at 50% 100%, #000, transparent 72%);
}

.beam {
  position: absolute;
  filter: blur(13px);
  border-radius: 99px;
}

/* stats */
.stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: #0E0D15;
}

.stat .lbl {
  font-size: 13px;
  color: rgba(14, 13, 21, 0.6);
}

/* design system illustration */
.ds-illu {
  width: 100%;
  height: auto;
}

/* other services list */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c5b63;
}

.svc-list strong {
  color: #0E0D15;
}

/* clients */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 99px;
}

/* projects */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  background: #f2f1ee;
  color: #707071;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter[aria-pressed=true] {
  background: #0E0D15;
  color: #fff;
}

.grid-proj {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.proj {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f0efec;
  aspect-ratio: 4/3;
  margin: 0;
}

.proj img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proj:hover img {
  transform: scale(1.05);
}

.proj .tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(14, 13, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 99px;
}

.proj[hidden] {
  display: none;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact h2 {
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.12;
  color: #fff;
}

.contact .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.contact .who img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.contact .who b {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: block;
}

.contact .who span {
  color: #707071;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #8a8a92;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #2EA0D9;
  background: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form button {
  margin-top: 4px;
  align-self: flex-start;
}

.form-note {
  font-size: 12.5px;
  color: #707071;
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

.form-status.ok {
  display: block;
  background: rgba(46, 160, 217, 0.16);
  color: #8fd0ee;
}

.form-status.err {
  display: block;
  background: rgba(232, 120, 76, 0.16);
  color: #f0b199;
}

footer.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 4px 34px;
  font-size: 12.5px;
  color: #8a8983;
}

footer.site-footer a {
  color: #8a8983;
}

footer.site-footer a:hover {
  color: #2EA0D9;
}

.heart {
  color: #2EA0D9;
}

.cookie-manage-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #8a8983;
  cursor: pointer;
}

.cookie-manage-link:hover {
  color: #2EA0D9;
}

/* cookie consent */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  background: #0E0D15;
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #c9c9d1;
  flex: 1 1 260px;
  margin: 0;
}

.cookie-consent a {
  color: #2EA0D9;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-consent .btn {
  padding: 10px 18px;
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .row-hero, .row-services, .row-windev {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .card {
    padding: 26px 22px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .site-header img {
    width: 78px;
    height: 78px;
  }
  .btn-dark {
    align-self: flex-start;
    padding: 11px 20px;
    font-size: 13px;
  }
  .filters {
    justify-content: flex-start;
  }
  .proj .tag {
    font-size: 9px;
    padding: 3px 8px;
    left: 7px;
    bottom: 7px;
  }
  .card-head {
    align-items: flex-start;
  }
  .grid-proj {
    gap: 3px;
  }
  .proj {
    border-radius: 8px;
  }
}
@media (max-width: 460px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 18px;
  }
  .stat .num {
    font-size: 26px;
  }
}
