/* =========================================================
   CardFabric — style.css v4
   Branding + duże logo outside navbar + shrink on scroll
   ========================================================= */

/* FONTS --------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Outfit:wght@400;500;600;700;800;900&display=swap");

/* CUSTOM PROPERTIES --------------------------------------- */
:root {
  --bg-deep: #06101e;
  --bg-navy: #081528;
  --bg-card: rgba(12, 26, 58, 0.72);

  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.15);
  --cyan-glow: rgba(56, 189, 248, 0.4);

  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.15);

  --violet: #818cf8;
  --violet-dim: rgba(129, 140, 248, 0.15);
  --violet-glow: rgba(129, 140, 248, 0.4);

  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.15);
  --gold-glow: rgba(251, 191, 36, 0.5);

  --text-white: #e8f0fe;
  --text-muted: rgba(190, 215, 255, 0.72);
  --text-subtle: rgba(140, 170, 220, 0.45);

  --border: rgba(56, 189, 248, 0.14);
  --border-hover: rgba(56, 189, 248, 0.4);

  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --header-height: 78px;
  --header-height-scrolled: 62px;

  --logo-width-desktop: 200px;
  --logo-width-desktop-scrolled: 138px;
  --logo-width-tablet: 148px;
  --logo-width-mobile: 48px;
}

/* BASE RESET ---------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* BODY & ANIMATED BACKGROUND ============================== */
body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: "Outfit", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: 118px;
}

/* --- Orb layer --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 50% at -5% 10%,
      rgba(56, 189, 248, 0.13) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 45% at 105% 5%,
      rgba(129, 140, 248, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 40% at 50% 35%,
      rgba(59, 130, 246, 0.07) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 55% 40% at 95% 90%,
      rgba(251, 191, 36, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 35% at 0% 85%,
      rgba(129, 140, 248, 0.08) 0%,
      transparent 50%
    );
  animation: orbFloat 18s ease-in-out infinite alternate;
}

/* --- Star-field --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      1.5px 1.5px at 8% 12%,
      rgba(56, 189, 248, 0.55),
      transparent
    ),
    radial-gradient(1px 1px at 22% 68%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(
      1.5px 1.5px at 38% 4%,
      rgba(129, 140, 248, 0.5),
      transparent
    ),
    radial-gradient(1px 1px at 51% 82%, rgba(56, 189, 248, 0.3), transparent),
    radial-gradient(2px 2px at 63% 28%, rgba(251, 191, 36, 0.4), transparent),
    radial-gradient(1px 1px at 77% 91%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(
      1.5px 1.5px at 88% 6%,
      rgba(129, 140, 248, 0.45),
      transparent
    ),
    radial-gradient(1px 1px at 95% 55%, rgba(56, 189, 248, 0.35), transparent),
    radial-gradient(1px 1px at 13% 44%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(
      1.5px 1.5px at 45% 57%,
      rgba(251, 191, 36, 0.25),
      transparent
    ),
    radial-gradient(1px 1px at 70% 74%, rgba(129, 140, 248, 0.3), transparent),
    radial-gradient(1px 1px at 30% 90%, rgba(56, 189, 248, 0.2), transparent);
  background-size:
    320px 320px,
    280px 280px,
    400px 400px,
    350px 350px,
    260px 260px,
    420px 420px,
    300px 300px,
    370px 370px,
    290px 290px,
    440px 440px,
    310px 310px,
    380px 380px;
  animation: starDrift 45s linear infinite;
}

@keyframes orbFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.03);
  }
  100% {
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes starDrift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-80px);
  }
}

body::before,
body::after {
  will-change: transform;
}

/* Raise content above pseudo-elements */
.app-header,
main,
.app-footer {
  position: relative;
  z-index: 1;
}

/* HEADER / NAVBAR ========================================= */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: var(--header-height);
  background: rgba(6, 16, 30, 0.82);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    min-height 0.3s ease,
    border-color 0.3s ease;
}

.app-header.scrolled {
  min-height: var(--header-height-scrolled);
  background: rgba(6, 16, 30, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.app-header .navbar {
  min-height: var(--header-height);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  position: relative;
  overflow: visible;
  align-items: center;
  transition:
    min-height 0.3s ease,
    padding 0.3s ease;
}

.app-header.scrolled .navbar {
  min-height: var(--header-height-scrolled);
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.app-header .container {
  overflow: visible;
}

.app-header .navbar-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  margin-right: 2.5rem;
  flex-shrink: 0;
  max-width: none;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: var(--logo-width-mobile);
  height: auto;
  object-fit: contain;
  transform-origin: left top;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
  transition:
    width 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.brand-logo:hover {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 24px rgba(56, 189, 248, 0.55));
}

.brand-title {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.05;
  transition: font-size 0.3s ease;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  transition:
    opacity 0.3s ease,
    font-size 0.3s ease;
}

.app-header .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.app-header .nav-link:hover {
  color: var(--text-white);
}

.app-header .nav-link.active {
  color: var(--cyan);
}

.app-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
}

.custom-toggler {
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  background: rgba(12, 26, 58, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.custom-toggler:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.custom-toggler .toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-app-primary {
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
  color: #03090f;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-app-primary:hover {
  background: linear-gradient(135deg, #7dd3fc, var(--cyan));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
  color: #030f1a;
}

.gold-text {
  color: #fbbf24 !important;
}

/* TABLET / DESKTOP HEADER --------------------------------- */
@media (min-width: 768px) {
  .brand-logo {
    width: var(--logo-width-tablet);
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-subtitle {
    font-size: 0.77rem;
  }
}

@media (min-width: 992px) {
  .app-header .navbar-brand {
    margin-right: 2.75rem;
  }

  .brand-logo {
    width: var(--logo-width-desktop);
    transform: translate(-10px, 18px);
  }

  .app-header.scrolled .brand-logo {
    width: var(--logo-width-desktop-scrolled);
    transform: translate(-4px, 2px);
  }

  .brand-title {
    font-size: 1.28rem;
  }

  .app-header.scrolled .brand-title {
    font-size: 1.12rem;
  }

  .brand-subtitle {
    font-size: 0.86rem;
  }

  .app-header.scrolled .brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.92;
  }

  .app-header .navbar-nav {
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 92px;
  }

  .app-header .navbar-collapse {
    margin-top: 0;
    padding: 1rem 1rem 0.4rem;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(6, 16, 30, 0.96);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9998;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .app-header .nav-link {
    padding: 0.7rem 0;
  }

  .app-header .nav-link.active::after {
    display: none;
  }

  .app-header .nav-item:last-child {
    margin-top: 0.55rem;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 84px;
  }

  .app-header {
    min-height: 74px;
  }

  .app-header .navbar {
    min-height: 74px;
  }

  .brand-logo {
    width: 46px;
    transform: none;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }
}

/* HERO SECTION ============================================ */

.hero-container {
  position: relative;
  z-index: 2;

  /* szerszy hero niż standardowy bootstrapowy container */
  max-width: min(1520px, calc(100vw - 48px));
}

@keyframes floatCard {
  0%,
  100% {
    transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--rot, 0deg))
      scale(var(--scale, 1));
  }

  50% {
    transform: translate3d(var(--x, 0), calc(var(--y, 0) - 18px), 0)
      rotate(calc(var(--rot, 0deg) + var(--float-rot, 2deg)))
      scale(var(--scale, 1));
  }
}

@keyframes heroGlowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes cardShine {
  0% {
    transform: translateX(-140%) rotate(18deg);
    opacity: 0;
  }

  20% {
    opacity: 0.55;
  }

  100% {
    transform: translateX(160%) rotate(18deg);
    opacity: 0;
  }
}

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;

  /* było hidden — to ucinało efekt */
  overflow: clip;

  margin-bottom: 30px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(1200px, 100vw);
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse at 55% 45%,
      rgba(56, 189, 248, 0.16) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse at 78% 40%,
      rgba(129, 140, 248, 0.14) 0%,
      transparent 56%
    ),
    radial-gradient(
      ellipse at 28% 60%,
      rgba(251, 191, 36, 0.08) 0%,
      transparent 54%
    );
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(6, 16, 30, 0.72));
  pointer-events: none;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 18% 28%, rgba(56, 189, 248, 0.55), transparent),
    radial-gradient(2px 2px at 63% 62%, rgba(129, 140, 248, 0.45), transparent),
    radial-gradient(
      1.5px 1.5px at 48% 48%,
      rgba(251, 191, 36, 0.35),
      transparent
    ),
    radial-gradient(1px 1px at 82% 18%, rgba(255, 255, 255, 0.25), transparent);
  background-size:
    240px 240px,
    340px 340px,
    190px 190px,
    270px 270px;
  animation: starDrift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-container,
.hero-row,
.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-row {
  min-height: 620px;
}

.hero-content {
  max-width: 650px;
  padding-top: 1rem;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 1.6rem;
  color: var(--text-white);
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--gold),
    #f59e0b,
    var(--cyan),
    var(--violet)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease infinite;
}

@keyframes gradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 570px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a0a00;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(251, 191, 36, 0.65);
  color: #1a0a00;
}

.btn-hero-secondary {
  background: rgba(56, 189, 248, 0.07);
  color: var(--cyan);
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(56, 189, 248, 0.32);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 22px var(--cyan-glow);
}

/* PRAWA SCENA Z KARTAMI ================================ */

.hero-visual {
  min-height: 610px;
  overflow: visible;
}

.card-showcase {
  position: relative;
  width: min(680px, 100%);
  height: 610px;
  margin-left: auto;
  transform-style: preserve-3d;
  perspective: 1400px;
}

.showcase-glow {
  position: absolute;
  left: 52%;
  top: 52%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 52%),
    radial-gradient(circle, rgba(129, 140, 248, 0.16) 0%, transparent 62%),
    radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  filter: blur(6px);
  animation: heroGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.card-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 53%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 999px;
  box-shadow:
    inset 0 0 30px rgba(56, 189, 248, 0.05),
    0 0 34px rgba(56, 189, 248, 0.07);
  pointer-events: none;
}

.card-showcase::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 53%;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(18deg);
  border: 1px dashed rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  width: clamp(178px, 14.5vw, 260px);
  aspect-ratio: 5 / 7;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  border: 0;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(56, 189, 248, 0.16);
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--rot, 0deg))
    scale(var(--scale, 1));
  animation: floatCard var(--duration, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition:
    transform 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
  will-change: transform;
  cursor: pointer;
}

.floating-card::before {
  content: "";
  position: absolute;
  inset: 3%;
  overflow: hidden;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.26) 46%,
    transparent 68%
  );
  transform: translateX(-140%) rotate(18deg);
  opacity: 0;
}

.floating-card:hover {
  z-index: 20;
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.75),
    0 0 42px rgba(56, 189, 248, 0.4),
    0 0 80px rgba(251, 191, 36, 0.16);
  animation-play-state: paused;
}

.floating-card:hover::before {
  animation: cardShine 0.85s ease forwards;
}

/* Główna karta — najbardziej widoczna */
.floating-card.card-1 {
  left: 24%;
  top: 22%;
  z-index: 5;
  --x: 0px;
  --y: 0px;
  --rot: -4deg;
  --scale: 1.08;
  --duration: 6.5s;
  --delay: 0s;
  --float-rot: 2deg;
  background-image: url("/assets/images/hero/1.jpg");
}

.floating-card.card-1:hover {
  transform: translate3d(0, -18px, 0) rotate(-1deg) scale(1.18);
}

/* Prawa tylna — buduje szerokość sceny */
.floating-card.card-2 {
  right: 4%;
  top: 13%;
  z-index: 4;
  --x: 0px;
  --y: 0px;
  --rot: 9deg;
  --scale: 0.98;
  --duration: 7.8s;
  --delay: 0.8s;
  --float-rot: -2deg;
  background-image: url("/assets/images/hero/2.jpg");
}

.floating-card.card-2:hover {
  transform: translate3d(-14px, -18px, 0) rotate(5deg) scale(1.08);
}

/* Lewa dolna — kolorowa, ale nie przykrywa głównej */
.floating-card.card-3 {
  left: 2%;
  bottom: 7%;
  z-index: 3;
  --x: 0px;
  --y: 0px;
  --rot: -12deg;
  --scale: 0.92;
  --duration: 8.6s;
  --delay: 1.5s;
  --float-rot: 3deg;
  background-image: url("/assets/images/hero/3.jpg");
}

.floating-card.card-3:hover {
  transform: translate3d(14px, -18px, 0) rotate(-7deg) scale(1.05);
}

/* Prawa dolna — domyka wachlarz */
.floating-card.card-4 {
  right: 17%;
  bottom: 2%;
  z-index: 2;
  --x: 0px;
  --y: 0px;
  --rot: 15deg;
  --scale: 0.88;
  --duration: 9.2s;
  --delay: 2.2s;
  --float-rot: -3deg;
  background-image: url("/assets/images/hero/4.jpg");
}

.floating-card.card-4:hover {
  transform: translate3d(-8px, -18px, 0) rotate(10deg) scale(1.03);
}

/* RESPONSIVE ============================================ */

@media (min-width: 1400px) {
  .hero-container {
    max-width: 1380px;
  }

  .card-showcase {
    width: 720px;
  }
}

@media (max-width: 1199.98px) {
  .hero-row {
    min-height: 560px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .card-showcase {
    height: 540px;
  }

  .floating-card {
    width: clamp(160px, 15vw, 220px);
  }

  .floating-card.card-1 {
    left: 22%;
    top: 23%;
  }

  .floating-card.card-2 {
    right: 1%;
  }

  .floating-card.card-3 {
    left: 0;
  }

  .floating-card.card-4 {
    right: 14%;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0 4.5rem;
    text-align: center;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-content {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 430px;
    margin-top: 2rem;
  }

  .card-showcase {
    width: min(620px, 100%);
    height: 430px;
    margin: 0 auto;
  }

  .showcase-glow {
    width: 460px;
    height: 460px;
  }

  .card-showcase::before {
    width: 430px;
    height: 430px;
  }

  .card-showcase::after {
    width: 320px;
    height: 320px;
  }

  .floating-card {
    width: clamp(132px, 23vw, 185px);
  }

  .floating-card.card-1 {
    left: 34%;
    top: 14%;
    --scale: 1.05;
  }

  .floating-card.card-2 {
    right: 10%;
    top: 20%;
    --scale: 0.92;
  }

  .floating-card.card-3 {
    left: 12%;
    bottom: 8%;
    --scale: 0.88;
  }

  .floating-card.card-4 {
    right: 24%;
    bottom: 0%;
    --scale: 0.84;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 2.75rem 0 3.25rem;
  }

  .hero-title {
    font-size: clamp(1.45rem, 8.2vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-visual {
    min-height: 360px;
    margin-top: 1.5rem;
  }

  .card-showcase {
    height: 360px;
  }

  .showcase-glow {
    width: 360px;
    height: 360px;
  }

  .card-showcase::before {
    width: 330px;
    height: 330px;
  }

  .card-showcase::after {
    width: 245px;
    height: 245px;
  }

  .floating-card {
    width: clamp(112px, 33vw, 150px);
    border-radius: 12px;
  }

  .floating-card.card-1 {
    left: 31%;
    top: 12%;
    --scale: 1.02;
  }

  .floating-card.card-2 {
    right: 4%;
    top: 22%;
    --scale: 0.88;
  }

  .floating-card.card-3 {
    left: 3%;
    bottom: 9%;
    --scale: 0.84;
  }

  .floating-card.card-4 {
    right: 21%;
    bottom: 1%;
    --scale: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .showcase-glow,
  .hero-particles,
  .text-gradient {
    animation: none !important;
  }

  .floating-card {
    transition: none;
  }
}

/* SECTIONS SHARED ========================================= */
section:not(.legal__section) {
  padding: 80px 0;
  position: relative;
}

.section-badge {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.12),
    rgba(129, 140, 248, 0.12)
  );
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 2rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header {
  margin-bottom: 4rem;
}

@media (max-width: 991.98px) {
  section {
    padding: 70px 0;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* REPO SLIDER ============================================= */
.repo-showcase-section {
  position: relative;
  overflow: hidden;
}

.repo-slider-outer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repo-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.repo-slider-wrapper--second {
  padding-top: 8px;
  padding-bottom: 36px;
}

.repo-slider {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: var(--repo-animation, repoSlideLeft) var(--repo-speed, 120s) linear
    infinite;
  will-change: transform;
}

.repo-slider:hover {
  animation-play-state: paused;
}

@keyframes repoSlideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes repoSlideRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.repo-card {
  flex: 0 0 auto;
  perspective: 1000px;
  overflow: visible;
  position: relative;
}

.repo-card img {
  height: 300px;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.18s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  transform-style: preserve-3d;
}

.repo-card:hover {
  z-index: 30;
}

.repo-card:hover img {
  transform: scale(1.18);
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.95),
    0 0 50px var(--cyan-glow);
  position: relative;
}

/* delikatna różnica drugiego paska, żeby nie wyglądał jak kopia */
.repo-slider-wrapper--second .repo-card img {
  height: 280px;
  opacity: 0.92;
}

.repo-slider-wrapper--second .repo-card:hover img {
  opacity: 1;
}

/* RESPONSIVE REPO SLIDER ---------------------------------- */
@media (max-width: 1199.98px) {
  .repo-card img {
    height: 270px;
  }

  .repo-slider-wrapper--second .repo-card img {
    height: 255px;
  }
}

@media (max-width: 767.98px) {
  .repo-slider-outer {
    gap: 2px;
  }

  .repo-slider-wrapper {
    padding: 18px 0;
  }

  .repo-slider-wrapper--second {
    padding-top: 2px;
    padding-bottom: 26px;
  }

  .repo-slider {
    gap: 22px;
  }

  .repo-card img {
    height: 230px;
    border-radius: 0.85rem;
  }

  .repo-slider-wrapper--second .repo-card img {
    height: 215px;
  }
}

@media (max-width: 575.98px) {
  .repo-slider {
    gap: 18px;
  }

  .repo-card img {
    height: 205px;
  }

  /* subtelny błysk kolekcjonerski na hover */
  .repo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 55%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    border-radius: var(--radius-md);
    background: linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 35%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(56, 189, 248, 0.16) 58%,
      transparent 100%
    );
    transform: skewX(-18deg);
    opacity: 0;
  }

  .repo-card:hover::before {
    animation: repoCardShine 0.85s ease forwards;
  }

  @keyframes repoCardShine {
    0% {
      left: -75%;
      opacity: 0;
    }

    18% {
      opacity: 0.65;
    }

    100% {
      left: 125%;
      opacity: 0;
    }
  }

  .repo-slider-wrapper--second .repo-card img {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-slider {
    animation: none !important;
    transform: none !important;
  }
}

/* ABOUT SECTION =========================================== */
.about-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.03) 50%,
    transparent 100%
  );
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 32px var(--cyan-dim);
}

.about-card-featured {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.06),
    rgba(129, 140, 248, 0.06)
  );
  border-color: rgba(251, 191, 36, 0.2);
}

.about-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  display: block;
}

.about-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text-white);
}

.about-card p {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin: 0;
}

.use-case {
  background: rgba(6, 16, 30, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.use-case:hover {
  background: var(--cyan-dim);
  border-color: rgba(56, 189, 248, 0.38);
  transform: translateX(4px);
}

.use-case-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.use-case span:last-child {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

/* GENERATOR SECTION ======================================= */
.generator-section {
  background: radial-gradient(
    ellipse at center,
    rgba(129, 140, 248, 0.05) 0%,
    transparent 65%
  );
}

.generator-visual {
  position: relative;
  height: 400px;
}

.generator-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: slideIn 0.55s ease forwards;
}

.gen-step-1 {
  animation-delay: 0.2s;
}
.gen-step-2 {
  animation-delay: 0.4s;
}
.gen-step-3 {
  animation-delay: 0.6s;
  border-color: rgba(251, 191, 36, 0.38);
}

.step-number {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  color: #030f1a;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.step-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.generator-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.gen-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.gen-feature-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gen-feature h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-white);
}

.gen-feature p {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
}

/* GALLERY SECTION ========================================= */
.gallery-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(251, 191, 36, 0.025) 50%,
    transparent 100%
  );
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.4),
    0 0 28px var(--gold-dim);
}

.gallery-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  display: block;
}

.gallery-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text-white);
}

.gallery-card p {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin: 0;
}

/* AUDIENCE SECTION ======================================== */
.audience-section {
  background: radial-gradient(
    ellipse at center,
    rgba(56, 189, 248, 0.05) 0%,
    transparent 65%
  );
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  text-align: center;
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-8px);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.4),
    0 0 34px var(--violet-dim);
}

.audience-avatar {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.audience-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.audience-card p {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
}

/* ROADMAP ================================================= */
.roadmap-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(129, 140, 248, 0.03) 50%,
    transparent 100%
  );
}

.roadmap-timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--gold));
  border-radius: 2px;
  opacity: 0.55;
}

.roadmap-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 2.75rem;
}

.roadmap-marker {
  position: absolute;
  left: 20px;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: 3px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--cyan-dim),
    0 0 18px var(--cyan-glow);
}

.roadmap-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.roadmap-content:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 22px var(--cyan-dim);
}

.roadmap-content h3 {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-white);
}

.roadmap-content p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 767.98px) {
  .roadmap-timeline::before {
    left: 14px;
  }

  .roadmap-marker {
    left: 4px;
  }

  .roadmap-item {
    padding-left: 55px;
  }
}

/* CTA SECTION ============================================= */
.cta-section {
  padding: 120px 0;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 191, 36, 0.07) 0%,
    transparent 65%
  );
}

.cta-card {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.08),
    rgba(129, 140, 248, 0.08)
  );
  border: 1.5px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(251, 191, 36, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    var(--cyan),
    transparent
  );
  animation: shimmerLine 4s linear infinite;
}

@keyframes shimmerLine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.cta-card h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-white);
  position: relative;
}

.cta-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  position: relative;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a0a00;
  padding: 1.2rem 3rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 14px 42px var(--gold-glow);
  position: relative;
}

.btn-cta-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 54px rgba(251, 191, 36, 0.7);
  color: #1a0a00;
}

@media (max-width: 767.98px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-card {
    padding: 3rem 1.75rem;
  }

  .btn-cta-primary {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
}

/* CONTACT SECTION ========================================= */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.025) 50%,
    transparent 100%
  );
}

.contact-info h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.contact-info > p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.contact-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-reason {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(6, 16, 30, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.contact-reason:hover {
  background: var(--cyan-dim);
  border-color: rgba(56, 189, 248, 0.38);
  transform: translateX(5px);
}

.contact-reason span:first-child {
  font-size: 1.4rem;
}

.contact-reason span:last-child {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(14px);
}

.contact-form .form-label {
  color: rgba(200, 225, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.contact-form .form-control {
  background: rgba(6, 16, 30, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  color: var(--text-white);
  font-size: 0.97rem;
  font-family: "Outfit", sans-serif;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.contact-form .form-control:focus {
  background: rgba(6, 16, 30, 0.85);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px var(--cyan-dim);
  outline: none;
  color: var(--text-white);
}

.contact-form .form-control::placeholder {
  color: var(--text-subtle);
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-msg {
  margin: 1rem 0 0rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
  animation: contactMsgIn 0.22s ease;
}

.contact-msg.success {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.contact-msg.error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.btn-contact-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  color: #03111d;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    0 10px 26px rgba(56, 189, 248, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.btn-contact-primary .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-contact-primary .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(3, 17, 29, 0.22);
  border-top-color: #03111d;
  border-radius: 50%;
  display: none;
  flex-shrink: 0;
}

.btn-contact-primary.is-loading .btn-spinner {
  display: inline-block;
  animation: contactSpin 0.75s linear infinite;
}

.btn-contact-primary:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.08);
  transform: none;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-contact-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7dd3fc, var(--cyan));
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #030f1a;
}

.btn-contact-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.18),
    0 14px 40px rgba(56, 189, 248, 0.35);
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes contactMsgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* FOOTER ================================================== */
.app-footer {
  background: linear-gradient(
    to bottom,
    rgba(6, 16, 30, 0.92),
    rgba(3, 7, 18, 0.98)
  );
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
  margin-top: 80px;
}

.footer-brand h3 {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-legal h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.65rem;
}

.footer-links a,
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  font-size: 0.93rem;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--cyan);
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-subtle);
  font-size: 0.88rem;
  margin: 0;
}

.footer-made-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.08),
    rgba(56, 189, 248, 0.06)
  );
  color: rgba(232, 240, 254, 0.78);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.08);
  vertical-align: middle;
}

.footer-made-by a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.footer-made-by a:hover {
  color: #fde68a;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

@media (max-width: 575.98px) {
  .footer-made-by {
    display: inline-flex;
    margin-left: 0;
    margin-top: 0.7rem;
  }
}

/* REVEAL ANIMATIONS ======================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.55s ease,
      transform 0.55s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FALLBACK FOR NO BACKDROP FILTER ========================= */
@supports not (
  (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))
) {
  .app-header,
  .about-card,
  .gallery-card,
  .audience-card,
  .roadmap-content,
  .contact-form,
  .cta-card {
    background: rgba(6, 16, 30, 0.95);
  }
}

/* RESPONSIVE ============================================== */
@media (max-width: 991.98px) {
  section {
    padding: 65px 0;
  }

  .hero-section {
    padding: 50px 0 70px;
  }

  .cta-section {
    padding: 80px 0;
  }
}
