:root {
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b0f2a;
  color: #eef1ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(68, 95, 255, 0.18), transparent 16%),
              radial-gradient(circle at 80% 20%, rgba(8, 167, 255, 0.16), transparent 18%),
              radial-gradient(circle at 50% 70%, rgba(82, 141, 255, 0.18), transparent 24%),
              linear-gradient(180deg, #0b0f2a 0%, #090d23 28%, #070918 100%);
  background-repeat: no-repeat;
  background-position: 20% 10%, 80% 20%, 50% 70%, center bottom;
  animation: backgroundFloat 18s ease-in-out infinite;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 30% 45%, rgba(95, 167, 255, 0.25), rgba(77, 116, 255, 0.15) 28%, transparent 48%);
  filter: blur(30px);
  animation: centerGlow 13s ease-in-out infinite alternate;
}

canvas[data-waves] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  padding: 130px 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 40px;
  background: transparent;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.header--scrolled {
  background: rgba(9, 13, 35, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-header.header--hidden {
  transform: translateY(-110%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
}

.icon-square,
.icon-circle,
.icon-quarter {
  position: absolute;
  display: block;
}

.icon-square {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 8px;
  top: 0;
  left: 0;
}

.icon-circle {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #ff8a3c 0%, #ff3045 65%, #c7112c 100%);
  border-radius: 50%;
  bottom: 0;
  left: 0;
}

.icon-quarter {
  width: 24px;
  height: 24px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%);
  top: 0;
  right: 0;
  opacity: 0.95;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

/* small brand mark in the footer bottom bar */
.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.language-selector {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
  padding-right: 24px;
}

.language-selector:hover {
  color: #ffffff;
}

.language-selector:focus {
  outline: none;
  color: #00e1fd;
}

.language-selector option {
  background: #0b0f2a;
  color: #ffffff;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 225, 253, 0.3);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4e55ff, #6b41ff);
  box-shadow: 0 18px 42px rgba(74, 68, 255, 0.22);
}

.btn-secondary {
  color: #0b0f2a;
  background: #00E1FD;
  border: none;
}

.hero {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d2dbff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-copy {
  margin-top: 28px;
  margin-bottom: 36px;
  color: rgba(236, 242, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.typewriter {
  position: relative;
  min-height: 3.8rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: rgba(236, 242, 255, 0.78);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: typewriter-blink 0.7s ease-in-out infinite;
}


@keyframes typewriter-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

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

.btn-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #4e55ff, #6b41ff);
  min-width: 210px;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 210px;
}

@keyframes backgroundFloat {
  0%, 100% {
    background-position: 20% 10%, 80% 20%, 50% 70%, center bottom;
  }

  25% {
    background-position: 18% 14%, 82% 18%, 52% 68%, center bottom;
  }

  50% {
    background-position: 22% 8%, 78% 22%, 48% 72%, center bottom;
  }

  75% {
    background-position: 19% 12%, 81% 16%, 51% 69%, center bottom;
  }
}

@keyframes centerGlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(-14px) scale(1.08);
    opacity: 0.9;
  }
}

/* ── Logos Section ───────────────────────────────── */

.logos-section {
  position: relative;
  z-index: 1;
  background: #0b0f2a;
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.logos-label {
  text-align: center;
  margin: 0 0 44px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.logos-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: logos-scroll 30s linear infinite;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  user-select: none;
}

.logo-item img {
  height: 32px;
  width: auto;
  max-width: 140px;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.25s ease;
  display: block;
}

.logo-item:hover img {
  opacity: 0.65;
}

@keyframes logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Solutions Section ───────────────────────────── */

.solutions-section {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 28%, rgba(68, 95, 255, 0.28), transparent 36%),
    radial-gradient(circle at 86% 22%, rgba(0, 220, 195, 0.20), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(255, 48, 72, 0.18), transparent 34%),
    radial-gradient(circle at 70% 60%, rgba(82, 141, 255, 0.14), transparent 28%),
    #070918;
  padding: 120px 40px 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.solutions-inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Icon variant inside a .section-tag badge (replaces .tag-dot) */
.tag-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.solutions-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.solutions-subtitle {
  margin: 20px auto 0;
  color: rgba(236, 242, 255, 0.58);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
}

/* ── Solution Cards ──────────────────────────────── */

.solutions-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 72px auto 0;
}

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.solution-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6b5fff, #4a30d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 0;
  color: rgba(236, 242, 255, 0.60);
  font-size: 0.95rem;
  line-height: 1.78;
}

@media (max-width: 900px) {
  .solutions-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Products Section ────────────────────────────── */

.products-section {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 82% 18%, rgba(68, 95, 255, 0.24), transparent 36%),
    radial-gradient(circle at 12% 70%, rgba(0, 220, 195, 0.17), transparent 32%),
    radial-gradient(circle at 55% 92%, rgba(255, 48, 72, 0.13), transparent 30%),
    #080c20;
  padding: 120px 40px 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto 56px;
}

.products-header-left {
  flex: 1;
  max-width: 540px;
}

.products-title {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.products-desc {
  flex: 0 0 360px;
  color: rgba(236, 242, 255, 0.60);
  font-size: 1rem;
  line-height: 1.78;
  margin: 0;
  padding-top: 54px;
}

/* ── Products Grid ───────────────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* card 3 spans the first two columns on row 2 */
.product-card--wide {
  grid-column: 1 / span 2;
}

/* card 4 spans both rows in column 3 */
.product-card--tall {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* ── Product Card base ───────────────────────────── */

/* TODO: card background to be finalised with the client */
.product-card {
  background: rgba(8, 12, 40, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 48, 0.95);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 11px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  width: fit-content;
  margin-bottom: 36px;
}

.card-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #9aa6ff;
}

/* Decorative line-art watermark in the card background */
.card-deco {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 150px;
  height: 150px;
  color: #aeb8ff;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card--wide .card-deco {
  width: 180px;
  height: 180px;
}

.product-card--tall .card-deco {
  width: 165px;
  height: 165px;
}

/* keep textual content above the watermark */
.product-card > *:not(.card-deco) {
  position: relative;
  z-index: 1;
}

.product-card:hover .card-deco {
  opacity: 0.26;
  transform: translate(-4px, -4px);
}

/* AI card: gradient "orbital core" — richer than the plain watermark */
.card-deco--ai {
  opacity: 0.24;
  width: 212px;
  height: 212px;
  right: -30px;
  bottom: -30px;
}

.product-card:hover .card-deco--ai {
  opacity: 0.34;
  transform: translate(-4px, -4px);
}

/* Orbits stay fixed; only the core breathes and the electrons flicker (GPU-only) */
.ai-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: ai-pulse 3.8s ease-in-out infinite;
  will-change: transform, opacity;
}

/* "Electrons" appear and vanish at staggered times — never all at once */
.ai-electron {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ai-electron 5.5s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.4);  opacity: 0.65; }
}

@keyframes ai-electron {
  0%   { opacity: 0; transform: scale(0.3); }
  18%  { opacity: 1; transform: scale(1); }
  42%  { opacity: 1; transform: scale(1); }
  60%  { opacity: 0; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-core { animation: none; }
  .ai-electron { animation: none; opacity: 1; }
}

/* Gentle, theme-matched motion for the other cards' watermarks (GPU-only) */
.deco-gear {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.deco-gear--a { animation: deco-spin-cw 16s linear infinite; }
.deco-gear--b { animation: deco-spin-ccw 11s linear infinite; }

.deco-bob {
  will-change: transform;
  animation: deco-bob 5s ease-in-out infinite;
}

.deco-layer {
  will-change: transform;
  animation: deco-bob 4.6s ease-in-out infinite;
}
.deco-layer--1 { animation-delay: 0s; }
.deco-layer--2 { animation-delay: 0.45s; }
.deco-layer--3 { animation-delay: 0.9s; }

@keyframes deco-spin-cw  { to { transform: rotate(360deg); } }
@keyframes deco-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes deco-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .deco-gear,
  .deco-bob,
  .deco-layer { animation: none; }
}

.product-card-title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card-desc {
  flex: 1;
  margin: 0;
  color: rgba(236, 242, 255, 0.56);
  font-size: 0.92rem;
  line-height: 1.74;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 10px 22px;
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b52ff, #4836d4);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 60, 255, 0.38);
}

/* Non-clickable "Coming soon" tag used in place of a CTA button */
.coming-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 28px;
  padding: 0 18px;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(236, 242, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.coming-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E1FD;
  box-shadow: 0 0 0 0 rgba(0, 225, 253, 0.55);
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0, 225, 253, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 225, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 225, 253, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .coming-tag .pulse-dot { animation: none; }
}

/* Tall card: brand logo fills middle space */
.product-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 32px 0 40px;
}

.product-card--tall .product-card-desc {
  flex: none;
}

@media (max-width: 900px) {
  .products-header {
    flex-direction: column;
    gap: 20px;
  }

  .products-desc {
    flex: none;
    padding-top: 0;
    max-width: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card--wide,
  .product-card--tall {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ── Cases Section ───────────────────────────────── */

.cases-section {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 50%, rgba(68, 95, 255, 0.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 220, 195, 0.12), transparent 35%),
    #0b0f2a;
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 120px 0 120px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.cases-left {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cases-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cases-desc {
  margin: 0;
  color: rgba(236, 242, 255, 0.60);
  font-size: 1rem;
  line-height: 1.78;
}

.cases-nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.cases-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.cases-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  transform: scale(1.06);
}

.cases-nav-btn:disabled {
  opacity: 0.30;
  cursor: default;
}

.cases-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Carousel track ──────────────────────────────── */

.cases-right {
  flex: 1;
  min-width: 0;
}

.cases-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-right: 40px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.cases-track::-webkit-scrollbar {
  display: none;
}

.cases-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* ── Case cards ──────────────────────────────────── */

.case-card {
  flex: 0 0 340px;
  height: 420px;
  border-radius: 20px;
  scroll-snap-align: start;
  background: var(--card-bg, linear-gradient(145deg, #0f1850, #250a50));
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

/* Subtle noise-like texture overlay */
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.20);
}

/* Minimal line-art watermark that hints at the case context */
.case-deco {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 208px;
  height: 208px;
  color: #fff;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-deco {
  opacity: 0.18;
}

/* Semi-transparent screenshot of the real site as a card backdrop */
.case-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.case-card--shot:hover .case-shot {
  opacity: 0.42;
  transform: scale(1.03);
}

/* Readability veil over the screenshot (kept below the text) */
.case-card--shot::after {
  background:
    linear-gradient(to top, rgba(8, 11, 28, 0.92) 0%, rgba(8, 11, 28, 0.55) 38%, rgba(8, 11, 28, 0.15) 68%, transparent 100%),
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.case-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  width: fit-content;
  position: relative;
  z-index: 1;
}

.case-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.case-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.case-subtitle {
  margin: 0;
  color: rgba(236, 242, 255, 0.62);
  font-size: 0.87rem;
  line-height: 1.6;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.case-link:hover {
  gap: 10px;
  color: #fff;
}

@media (max-width: 900px) {
  .cases-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 0;
    gap: 40px;
    overflow: visible;
  }

  .cases-left {
    flex: none;
    width: 100%;
  }

  .cases-right {
    width: calc(100% + 20px);
    margin-left: -20px;
  }

  .cases-track {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 48px;
  }
}

/* ── CTA Section ─────────────────────────────────── */

.cta-section {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090d22;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.cta-desc {
  margin: 0;
  color: rgba(236, 242, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.80;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #5b52ff, #4836d4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 30px;
  min-height: 48px;
  box-shadow: 0 12px 32px rgba(80, 60, 255, 0.30);
}

.btn-cta-primary:hover {
  box-shadow: 0 16px 40px rgba(80, 60, 255, 0.45);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 30px;
  min-height: 48px;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 640px) {
  .cta-inner {
    padding: 80px 24px;
    gap: 22px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .site-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 80px;
  }

  .site-nav {
    justify-content: center;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 110px 20px 24px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .site-header {
    gap: 18px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-hero,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  background: #060a1a;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, #090d22 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.footer-wordmark {
  position: absolute;
  bottom: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(90px, 20vw, 280px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px 220px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.6fr;
  gap: 48px 32px;
}

.footer-col-header {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(236, 242, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-email {
  color: rgba(140, 170, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-contact-email:hover {
  color: #fff;
}

.footer-company-info {
  margin: 0;
  color: rgba(236, 242, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.75;
}

.footer-office strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

.footer-office p {
  margin: 0;
  color: rgba(236, 242, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.75;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 60px 0 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 0.83rem;
  color: rgba(236, 242, 255, 0.38);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-lang-selector {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(236, 242, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.footer-lang-selector:hover,
.footer-lang-selector:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

.footer-lang-selector option {
  background: #0d1130;
  color: #eef1ff;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: start;
    gap: 0 40px;
  }

  .footer-col--contact .footer-col-header {
    grid-column: 1 / -1;
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    padding: 60px 24px 180px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-wordmark {
    font-size: clamp(60px, 26vw, 180px);
  }
}

/* ── Legal pages (Privacy / Cookie / Termini) ─────── */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.legal-main h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.legal-updated {
  color: rgba(236, 242, 255, 0.45);
  font-size: 0.9rem;
  margin: 0 0 44px;
}

.legal-section {
  margin-bottom: 38px;
}

.legal-section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.legal-section h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: #fff;
}

.legal-section p,
.legal-section li {
  color: rgba(236, 242, 255, 0.72);
  font-size: 1rem;
  line-height: 1.85;
}

.legal-section ul {
  margin: 10px 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: rgba(140, 170, 255, 0.95);
  text-decoration: none;
}

.legal-section a:hover {
  color: #fff;
}

.legal-section strong {
  color: rgba(236, 242, 255, 0.92);
}

/* ── Login page ───────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 40px 36px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-card h1 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: center;
}

.auth-sub {
  text-align: center;
  color: rgba(236, 242, 255, 0.55);
  font-size: 0.95rem;
  margin: 0 0 30px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  color: rgba(236, 242, 255, 0.7);
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #eef1ff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #00E1FD;
  background: rgba(255, 255, 255, 0.08);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: 0.85rem;
}

.auth-row label {
  color: rgba(236, 242, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-row a {
  color: rgba(140, 170, 255, 0.95);
  text-decoration: none;
}

.auth-row a:hover {
  color: #fff;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b52ff, #4836d4);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(80, 60, 255, 0.4);
}

.auth-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(236, 242, 255, 0.5);
  min-height: 1.2em;
}
