:root {
  --spiral-orange: #E85A2A;
  --spiral-orange-deep: #c44a1e;
  --spiral-navy: #1A3A5C;
  --spiral-navy-deep: #0F2540;
  --spiral-ink: #0a1726;
  --spiral-cream: #f7efe2;
  --gold: #cda86a;
  --shadow-card: 0 24px 50px -22px rgba(0, 0, 0, .55), 0 8px 18px -10px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #fff;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(232, 90, 42, .14), transparent 60%),
    radial-gradient(900px 500px at 88% 92%, rgba(60, 120, 180, .14), transparent 60%),
    linear-gradient(160deg, #0b1a2c 0%, #0a1726 50%, #0d2138 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.gateway {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  place-items: center;
}

/* ===== Brand header ===== */
.brand {
  display: flex; justify-content: center; align-items: center;
  padding-top: clamp(40px, 9vh, 90px);
}
.brand__link { display: inline-flex; }
.brand__logo {
  height: clamp(60px, 8vh, 88px);
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .4));
}

/* ===== Two-card layout ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-self: center;
}

.card {
  position: relative;
  border-radius: 16px;
  padding: 14px 16px 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); }

.card--technique {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(255, 170, 120, .22), transparent 60%),
    linear-gradient(160deg, #5a1f0e 0%, #8a3318 45%, var(--spiral-orange) 100%);
  border: 1px solid rgba(255, 170, 120, .45);
}
.card--affaire {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(120, 170, 220, .22), transparent 60%),
    linear-gradient(160deg, #0a1a2e 0%, var(--spiral-navy-deep) 45%, var(--spiral-navy) 100%);
  border: 1px solid rgba(120, 170, 220, .35);
}
.card--plateforme {
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(120, 220, 190, .18), transparent 60%),
    linear-gradient(160deg, #0a2a26 0%, #0e3f38 45%, #14685c 100%);
  border: 1px solid rgba(120, 220, 190, .35);
}

/* Screenshot placeholder — locked to 16:9 */
.card__shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .18);
}
.card__shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.card--technique .card__shot {
  border-color: rgba(255, 220, 200, .55);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 12px, rgba(255, 255, 255, .02) 12px 24px),
    linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .25));
}
.card--affaire .card__shot {
  border-color: rgba(180, 210, 240, .45);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, rgba(255, 255, 255, .02) 12px 24px),
    linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .25));
}
.card--plateforme .card__shot--soon {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(180, 240, 220, .55);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, rgba(255, 255, 255, .02) 12px 24px),
    linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .25));
}
.card--plateforme .card__shot--soon .card__shot-label {
  color: rgba(220, 255, 245, .85);
  font-size: 13px;
}
.card__shot-label {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* Card body / CTA */
.card__content {
  text-align: center;
  padding: 10px 6px 0;
}
.card__title {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 2.5px;
  margin: 0 0 4px;
  color: #fff;
}
.card__desc {
  margin: 0 auto 10px;
  max-width: 36ch;
  font-size: clamp(9px, .85vw, 11px);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}
.card__cta {
  display: inline-block;
  text-decoration: none;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  padding: 8px 20px;
  border-radius: 6px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.card--technique .card__cta {
  background: #fff;
  color: var(--spiral-orange-deep);
  border: 1px solid #fff;
}
.card--technique .card__cta:hover {
  background: var(--spiral-orange-deep); color: #fff; border-color: var(--spiral-orange-deep);
}
.card--affaire .card__cta {
  background: #fff;
  color: var(--spiral-navy-deep);
  border: 1px solid #fff;
}
.card--affaire .card__cta:hover {
  background: var(--spiral-navy-deep); color: #fff; border-color: var(--spiral-navy-deep);
}
.card--plateforme .card__cta {
  background: #fff;
  color: #0e3f38;
  border: 1px solid #fff;
}
.card--plateforme .card__cta:hover {
  background: #0e3f38; color: #fff; border-color: #0e3f38;
}
.card__cta:hover { transform: translateY(-1px); }

/* Site footer */
.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 0 4px;
  color: rgba(255, 255, 255, .55);
}
.copyright { margin: 0; font-size: 12px; }
.socials {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px; align-items: center;
}
.socials a {
  color: rgba(255, 255, 255, .6);
  display: inline-flex;
  transition: color .2s ease, transform .2s ease;
}
.socials a:hover { color: var(--spiral-orange); transform: translateY(-1px); }

/* Smaller viewports — keep no-scroll */
@media (max-height: 720px) {
  .gateway { padding: 14px 18px; gap: 12px; max-width: 880px; }
  .card { padding: 12px 14px 14px; }
  .card__title { letter-spacing: 2px; }
  .card__content { padding-top: 6px; }
  .card__desc { margin-bottom: 8px; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .gateway { height: auto; min-height: 100vh; max-width: 480px; }
  .cards { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
