:root {
  --brand-primary: #0d51d8;
  --brand-primary-strong: #0e53d8;
  --brand-accent: #00b8ee;
  --brand-ink: #2c313e;
  --brand-surface: #f4f8ff;
  --brand-surface-strong: #e9f1ff;
  --brand-border: rgba(44, 49, 62, 0.12);
  --brand-shadow: 0 24px 70px rgba(13, 81, 216, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 238, 0.16), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.hero-bg {
  background-image:
    linear-gradient(135deg, rgba(11, 31, 74, 0.92), rgba(13, 81, 216, 0.82)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 246, 255, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
}

.nav-link {
  position: relative;
}

.nav-link.active {
  color: var(--brand-accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent), rgba(255, 255, 255, 0.8));
}

.hero-metric {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-proof-item::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0 6px rgba(0, 184, 238, 0.12);
}

.hero-primary-cta {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 100%);
  box-shadow: 0 20px 42px rgba(0, 184, 238, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 184, 238, 0.32);
  filter: saturate(1.08);
}

.hero-secondary-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-secondary-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.apps-list {
  display: grid;
  gap: 0.85rem;
}

.apps-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apps-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid rgba(13, 81, 216, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 28px rgba(44, 49, 62, 0.06);
}

.apps-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  box-shadow: 0 0 0 6px rgba(0, 184, 238, 0.12);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: rgba(0, 184, 238, 0.12);
}

.service-card,
.portfolio-card,
.contact-card,
.coming-card {
  position: relative;
  overflow: hidden;
}

.service-card {
  border-top: 4px solid rgba(13, 81, 216, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.service-card:hover {
  border-top-color: var(--brand-accent);
}

.service-card::before,
.portfolio-card::before,
.contact-card::before,
.coming-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 30%);
  pointer-events: none;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(13, 81, 216, 0.08);
  color: var(--brand-primary);
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-tag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-accent);
}

.service-outcome {
  margin-top: 1rem;
  border-top: 1px solid rgba(13, 81, 216, 0.10);
  padding-top: 1rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-outcome strong {
  color: var(--brand-ink);
}

.portfolio-slot {
  min-height: 190px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(13, 81, 216, 0.12);
  background: linear-gradient(135deg, rgba(13, 81, 216, 0.08), rgba(0, 184, 238, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 42px rgba(44, 49, 62, 0.10);
}

.portfolio-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(44, 49, 62, 0.08);
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(44, 49, 62, 0.12);
}

.portfolio-browser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(13, 81, 216, 0.10);
  background: linear-gradient(180deg, #fdfefe, #eef5ff);
}

.portfolio-browser-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portfolio-browser-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.portfolio-browser-dot.is-red {
  background: #ff6b6b;
}

.portfolio-browser-dot.is-yellow {
  background: #ffd166;
}

.portfolio-browser-dot.is-green {
  background: #51cf66;
}

.portfolio-browser-bar {
  flex: 1 1 auto;
  height: 0.7rem;
  max-width: 7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 81, 216, 0.12), rgba(0, 184, 238, 0.24));
}

.portfolio-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 238, 0.16), transparent 28%),
    linear-gradient(160deg, rgba(13, 81, 216, 0.07), rgba(255, 255, 255, 0.98));
}

.portfolio-slot img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(12, 26, 52, 0.62);
  color: #ffffff;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0 5px rgba(0, 184, 238, 0.16);
}

.portfolio-card:hover .portfolio-slot img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.portfolio-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.portfolio-trigger:focus-visible {
  outline: 3px solid rgba(13, 81, 216, 0.24);
  outline-offset: 6px;
  border-radius: 1.5rem;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 34, 0.82);
  backdrop-filter: blur(8px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  margin: 4vh auto;
  width: min(1180px, calc(100% - 1.5rem));
  max-height: 92vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.36);
  padding: 1.2rem;
}

.portfolio-lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 49, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-ink);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.portfolio-lightbox-close:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.portfolio-lightbox-media-shell {
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 238, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #eef5ff);
}

.portfolio-lightbox-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.map-shell {
  min-height: 420px;
  border: 2px dashed rgba(13, 81, 216, 0.22);
  background:
    linear-gradient(135deg, rgba(13, 81, 216, 0.08), rgba(0, 184, 238, 0.10)),
    #ffffff;
}

.contact-link {
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--brand-primary);
}

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 1rem;
}

.cookie-consent-shell {
  margin: 0 auto;
  display: flex;
  max-width: 1180px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  border: 1px solid rgba(13, 81, 216, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 255, 0.98));
  border-radius: 1.75rem;
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(18px);
  padding: 1.15rem;
}

.cookie-consent-copy {
  flex: 1 1 420px;
}

.cookie-consent-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.cookie-consent-title {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-consent-text {
  margin: 0.75rem 0 0;
  color: #4c5567;
  font-size: 0.96rem;
  line-height: 1.65;
}

.cookie-consent-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-actions {
  justify-content: flex-end;
  align-items: center;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.3rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.cookie-btn:focus-visible,
.cookie-icon-button:focus-visible,
.cookie-settings-fab:focus-visible,
.cookie-toggle-input:focus-visible + .cookie-toggle-slider {
  outline: 3px solid rgba(13, 81, 216, 0.24);
  outline-offset: 3px;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 16px 30px rgba(13, 81, 216, 0.24);
  color: #fff;
}

.cookie-btn-secondary {
  background: #fff;
  border-color: rgba(44, 49, 62, 0.16);
  color: #334155;
}

.cookie-btn-secondary:hover {
  border-color: rgba(13, 81, 216, 0.28);
  color: var(--brand-primary);
}

.cookie-settings-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: inline-flex;
  height: 3.75rem;
  width: 3.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 81, 216, 0.12);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #ebf4ff);
  box-shadow: 0 18px 40px rgba(44, 49, 62, 0.16);
  color: var(--brand-primary);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cookie-settings-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(44, 49, 62, 0.22);
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.cookie-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 40, 0.68);
  backdrop-filter: blur(8px);
}

.cookie-consent-dialog {
  position: relative;
  z-index: 1;
  margin: 4vh auto;
  display: flex;
  max-height: 92vh;
  width: min(720px, calc(100% - 2rem));
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 247, 255, 0.99));
  box-shadow: 0 32px 90px rgba(44, 49, 62, 0.24);
  padding: 1.5rem;
}

.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal-description {
  margin-bottom: 1.25rem;
}

.cookie-icon-button {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 49, 62, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.cookie-options {
  display: grid;
  gap: 0.9rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 1.35rem;
  background: #fff;
  padding: 1.15rem 1.1rem;
}

.cookie-option-locked {
  background: linear-gradient(135deg, rgba(13, 81, 216, 0.08), rgba(0, 184, 238, 0.08));
}

.cookie-option-copy h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 800;
}

.cookie-option-copy p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-toggle-control {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.cookie-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle-slider {
  position: relative;
  display: inline-flex;
  height: 2rem;
  width: 3.6rem;
  align-items: center;
  border-radius: 999px;
  background: #dbe4ee;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-toggle-slider::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  height: 1.55rem;
  width: 1.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease;
}

.cookie-toggle-input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.cookie-toggle-input:checked + .cookie-toggle-slider::after {
  transform: translateX(1.58rem);
}

.cookie-toggle-input:disabled + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-strong));
  opacity: 0.92;
}

.cookie-modal-actions {
  margin-top: 1.35rem;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .apps-list--compact {
    grid-template-columns: 1fr;
  }

  .portfolio-lightbox-dialog {
    margin: 2vh auto;
    width: min(100% - 1rem, 1180px);
    max-height: 96vh;
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .portfolio-lightbox-close {
    right: 0.75rem;
    top: 0.75rem;
    height: 2.7rem;
    width: 2.7rem;
  }

  .section-padding {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .cookie-consent-banner {
    padding: 0.75rem;
  }

  .cookie-consent-shell {
    border-radius: 1.4rem;
    padding: 1rem;
  }

  .cookie-consent-title {
    font-size: 1.2rem;
  }

  .cookie-consent-actions,
  .cookie-modal-actions {
    width: 100%;
  }

  .cookie-consent-actions .cookie-btn,
  .cookie-modal-actions .cookie-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .cookie-consent-dialog {
    margin: 2vh auto;
    width: min(100% - 1rem, 720px);
    max-height: 96vh;
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .cookie-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-toggle-control {
    align-self: flex-end;
  }

  .cookie-settings-fab {
    height: 3.35rem;
    width: 3.35rem;
  }
}
