/* =========================
   42talents: Global Variables
   ========================= */
:root {
  /* Brand background colors */
  --bg: #0a1220;
  --elev: #0c1630;
  --card: #111a2a;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  /* Brand palette */
  --brand-pink: #e4457d;
  --brand-cyan: #2bb7e0;
  --brand-green: #6ec829;
  --brand-yellow: #ffc600;
  --brand-orange: #ff6c2c;
  --brand: var(--brand-cyan);
  --brand-2: var(--brand-pink);
  --accent: var(--brand-green);
  --radius: 12px;
  --shadow: 0 6px 30px rgba(0, 0, 0, .25);
  --container: 1120px;
  /* Typography: system fonts, fluid scale */
  --font-sans: system-ui, -apple-system, "Segoe UI", "SF Pro Text", "Inter", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* Fluid type steps */
  --step--1: clamp(0.875rem, 0.86rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.4vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.6vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.18rem + 1.2vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.4rem + 2.2vw, 2.2rem);
  --step-4: clamp(2.2rem, 1.8rem + 3.2vw, 2.9rem);
  --lh-tight: 1.25;
  --lh-base: 1.6;
  --lh-loose: 1.75;
  --measure: 68ch;
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
}

/* =========================
   Contact Form Status
   ========================= */
.form-status--success {
  color: var(--brand-green) !important;
  font-weight: 500;
}

* {
  box-sizing: border-box
}

html {
  color-scheme: dark light
}

html {
  /* Fluid base size: 16px → 17px depending on viewport */
  font-size: clamp(16px, 0.6vw + 14px, 17px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--lh-base);
  color: var(--text);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  background:
    radial-gradient(1200px 800px at 10% -10%, color-mix(in oklab, var(--brand-cyan) 18%, transparent), transparent 60%),
    radial-gradient(1000px 700px at 110% 20%, color-mix(in oklab, var(--brand-pink) 14%, transparent), transparent 60%),
    var(--bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--space-5)
}

.section {
  padding: clamp(3rem, 4vw, 4.5rem) 0
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section--cta {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand-cyan) 10%, transparent), color-mix(in oklab, var(--brand-pink) 10%, transparent));
}

/* =========================
   Header & Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in oklab, var(--elev) 88%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 2rem;
}

li {
  margin-block: var(--space-2)
}

/* 3D Cube styles: layout, faces, stickers */

.cube-scene {
  width: min(64vw, 188px);
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1000px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}

@media (min-width: 600px) {
  .cube-scene {
    width: min(48vw, 230px);
  }
}

@media (min-width: 1024px) {
  .cube-scene {
    width: min(300px, 24vw);
  }
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform
}

.cube__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: #000;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06)
}

.sticker {
  background: #111;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #000, 0 1px 2px rgba(0, 0, 0, .4)
}

.sticker--pink {
  background: var(--brand-pink)
}

.sticker--cyan {
  background: var(--brand-cyan)
}

.sticker--green {
  background: var(--brand-green)
}

.sticker--yellow {
  background: var(--brand-yellow)
}

.sticker--orange {
  background: var(--brand-orange)
}

.sticker--white {
  background: #e8eef6
}

small {
  font-size: var(--step--1)
}

/* Heading scale, balanced wrapping */
h1,
h2,
h3 {
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-6)
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  text-wrap: balance
}

h2 {
  font-size: var(--step-3);
  letter-spacing: -0.008em;
  text-wrap: balance
}

h3 {
  font-size: var(--step-2);
  letter-spacing: -0.004em;
  text-wrap: balance
}

:where(h1, h2, h3) {
  scroll-margin-top: 88px
}

/* Accessible link styling */
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
  text-decoration-skip-ink: auto
}

/* Form controls inherit font */
button,
input,
select,
textarea {
  font: inherit;
  line-height: inherit;
  color: inherit
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono)
}

.skip-link {
  position: absolute;
  left: -9999px
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .25rem;
  z-index: 1000
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(15, 23, 42, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 20
}

.site-header {
  background: color-mix(in oklab, var(--elev) 88%, transparent)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.header-inner {
  gap: 2rem;
}

.logo {
  display: inline-flex;
  color: #fff;
  text-decoration: none
}

.logo img {
  height: 40px;
  width: auto
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 2.5rem;
  justify-content: flex-start;
  align-items: center;
  margin: 2.5rem 0 2.5rem 0;
  padding: 0;
  list-style: none;
}

.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-grid img {
  height: 96px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.22));
  background: #fff0;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  transition: transform 0.18s cubic-bezier(.4, 0, .2, 1);
  box-sizing: border-box;
}

.logo-grid img:hover {
  transform: scale(1.07) translateY(-4px);
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.28));
}

.logo-grid .logo--whitebg {
  background: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  box-sizing: content-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.logo-grid .logo--bluebg {
  background: #00add7;
  border-radius: 16px;
  padding: 12px 18px;
  box-sizing: content-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.logo-grid .logo--blackbg {
  background: #000;
  border-radius: 16px;
  padding: 12px 18px;
  box-sizing: content-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 700px) {
  .logo-grid {
    gap: 1.2rem 1.2rem;
  }

  .logo-grid img {
    height: 64px;
    max-width: 120px;
  }

  .logo-grid .logo--whitebg,
  .logo-grid .logo--bluebg,
  .logo-grid .logo--blackbg {
    padding: 6px 8px;
    border-radius: 10px;
  }
}

.site-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  width: 100%;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: .65rem 1rem;
  border-radius: .5rem;
  font-size: 1.05rem;
  font-weight: 650;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  text-underline-offset: 0.18em
}

.site-nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-bottom-color: color-mix(in oklab, var(--brand-cyan) 70%, var(--brand-pink) 30%)
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: inherit;
  border-radius: .5rem
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 6px 0 0 #fff, 0 -6px 0 0 #fff
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: 64px;
    background: var(--elev);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
    padding: .5rem;
    box-shadow: var(--shadow);
    display: none
  }

  .site-nav.open {
    display: block
  }

  .site-nav ul {
    flex-direction: column
  }
}

.hero {
  padding-top: 6rem
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: start
}

/* Only hero section uses centered vertical alignment */
.hero .grid-2 {
  align-items: center
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .6rem .6rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  max-width: 48ch
}

.hero__badges li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.2
}

.blob {
  filter: drop-shadow(0 16px 60px rgba(43, 183, 224, .25))
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0
}

.card {
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-height: 170px
}

.cards .card:nth-child(1) {
  border-color: color-mix(in oklab, var(--brand-cyan) 60%, rgba(255, 255, 255, .12))
}

.cards .card:nth-child(2) {
  border-color: color-mix(in oklab, var(--brand-pink) 60%, rgba(255, 255, 255, .12))
}

.cards .card:nth-child(3) {
  border-color: color-mix(in oklab, var(--brand-green) 60%, rgba(255, 255, 255, .12))
}

.cards .card:nth-child(4) {
  border-color: color-mix(in oklab, var(--brand-orange) 60%, rgba(255, 255, 255, .12))
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.feature {
  background: linear-gradient(180deg, rgba(228, 69, 125, .10), rgba(43, 183, 224, .08));
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 150px
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0
}

.tile {
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 160px
}

.tiles .tile:nth-child(1) {
  border-color: color-mix(in oklab, var(--brand-yellow) 60%, rgba(255, 255, 255, .12))
}

.tiles .tile:nth-child(2) {
  border-color: color-mix(in oklab, var(--brand-green) 60%, rgba(255, 255, 255, .12))
}

.tiles .tile:nth-child(3) {
  border-color: color-mix(in oklab, var(--brand-cyan) 60%, rgba(255, 255, 255, .12))
}

.tile--ghost {
  background: transparent;
  border-style: dashed
}

.tile__link {
  display: inline-block;
  margin-top: .5rem;
  color: var(--brand-cyan);
  text-decoration: none
}

.tile__link:hover {
  text-decoration: underline
}

.address {
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1.25rem
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.contact-link {
  color: #fff;
  text-decoration: none
}

.contact-link:hover {
  text-decoration: underline
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-radius: .9rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden
}

.btn--primary {
  color: #ffffff;
  border-width: 2px;
  border-color: transparent;
  background: linear-gradient(100deg, var(--brand) -10%, var(--brand-2) 110%) border-box;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background-origin: border-box;
  background-size: 140% 140%;
  background-position: 50% 50%
}

/* Remove inner overlay for primary button */
.btn--primary::before {
  content: none
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  right: -16px;
  background: linear-gradient(100deg, var(--brand) -10%, var(--brand-2) 110%);
  filter: blur(18px);
  opacity: .16;
  z-index: -1
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .38)
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08)
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center
}

.footer-nav ul,
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

.footer-nav a,
.social a {
  color: var(--muted);
  text-decoration: none
}

.footer-nav a:hover,
.social a:hover {
  color: #fff;
  text-decoration: underline
}

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--brand-cyan) 75%, white);
  outline-offset: 3px
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stack hero art above copy on mobile */
  .hero .grid-2 {
    display: flex;
    flex-direction: column;
  }

  .hero__art {
    order: -1;
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero__copy {
    order: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {

  .cards,
  .features,
  .tiles {
    grid-template-columns: 1fr
  }

  .footer-inner {
    grid-template-columns: 1fr
  }
}

/* Footer: stack on small/medium screens */
@media (max-width: 1199px) {
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: .75rem;
  }

  .footer-nav ul,
  .social {
    flex-wrap: wrap;
  }

  .footer-nav a,
  .social a {
    white-space: normal;
  }
}

/* Footer: single-line on large desktops */
@media (min-width: 1200px) {

  .footer-nav ul,
  .social {
    flex-wrap: nowrap;
    gap: .6rem;
  }

  .footer-nav a,
  .social a {
    white-space: nowrap;
  }
}