/* ============================================
   BASKET MANAGER — Landing Page Styles
   Responsive, BEM-inspired, CSS Custom Properties
   ============================================ */

/* ----------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  /* Colors */
  --color-primary: #FF6B35;
  --color-primary-hover: #E85A25;
  --color-primary-light: rgba(255, 107, 53, 0.1);
  --color-secondary: #004E89;
  --color-secondary-light: rgba(0, 78, 137, 0.1);
  --color-accent: #FFB563;
  --color-dark: #1A1A2E;
  --color-dark-lighter: #232340;
  --color-dark-card: #1E1E36;
  --color-light: #FAFAFA;
  --color-text: #2D2D2D;
  --color-text-light: #6B7280;
  --color-text-on-dark: #E5E7EB;
  --color-text-muted-dark: #9CA3AF;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-border: #E5E7EB;
  --color-border-dark: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing (8px scale) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 2.5rem;   /* 40px */
  --space-8: 3rem;     /* 48px */
  --space-9: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-11: 6rem;    /* 96px */
  --space-12: 7.5rem;  /* 120px */

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card-dark: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-card-dark-hover: 0 12px 40px rgba(0, 0, 0, 0.4);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------
   CONTAINER
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ----------------------------------------
   SECTION DEFAULTS
   ---------------------------------------- */
.section {
  padding: var(--space-10) 0;
  position: relative;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-text-on-dark);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.section--dark .section__title {
  color: #fff;
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 680px;
}

.section--dark .section__subtitle {
  color: var(--color-text-muted-dark);
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.btn--lg {
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ----------------------------------------
   CARD COMPONENT
   ---------------------------------------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.section--dark .card {
  background: var(--color-dark-card);
  border-color: var(--color-border-dark);
  box-shadow: var(--shadow-card-dark);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.section--dark .card:hover {
  box-shadow: var(--shadow-card-dark-hover);
  border-color: rgba(255, 107, 53, 0.2);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.section--dark .card__text {
  color: var(--color-text-muted-dark);
}

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}

.nav--scrolled,
.nav--solid {
  background: rgba(26, 26, 46, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.04em;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.85;
}

.nav__logo-accent {
  color: var(--color-primary);
}

.nav__cta {
  font-size: 0.8125rem;
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, #16213E 50%, var(--color-secondary) 100%);
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-5) var(--space-8);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Abstract basketball court lines */
.hero__court-lines {
  position: absolute;
  inset: 0;
}

.hero__court-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 2px solid rgba(255, 107, 53, 0.06);
  border-radius: 50%;
}

.hero__court-lines::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 107, 53, 0.08);
  border-radius: 50%;
}

.hero__glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 720px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.hero__subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__microcopy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.hero__visual {
  display: none;
}

.hero__ball-svg {
  width: 100%;
  height: auto;
  animation: hero-ball-rotate 30s linear infinite;
}

@keyframes hero-ball-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----------------------------------------
   PROBLEM STATEMENT
   ---------------------------------------- */
.problem {
  padding: var(--space-11) 0;
}

.problem__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: var(--space-6);
  color: var(--color-dark);
}

.problem__body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-7);
}

.problem__punchline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ----------------------------------------
   SOLUTION
   ---------------------------------------- */
.solution__header {
  text-align: center;
  margin-bottom: var(--space-9);
}

.solution__header .section__subtitle {
  margin: 0 auto;
}

.solution__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* ----------------------------------------
   MISSION
   ---------------------------------------- */
.mission {
  padding: var(--space-11) 0;
  background: linear-gradient(180deg, var(--color-light) 0%, #F3F4F6 100%);
}

.mission__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mission__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mission__body p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: var(--color-text-light);
}

.mission__body p:last-child {
  font-weight: 600;
  color: var(--color-text);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
}

/* ----------------------------------------
   BENEFITS
   ---------------------------------------- */
.benefits__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* ----------------------------------------
   SIGNUP
   ---------------------------------------- */
.signup {
  padding: var(--space-11) 0;
  background: linear-gradient(180deg, var(--color-light) 0%, #F0F0F5 100%);
}

.signup__content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.signup__content .section__subtitle {
  margin: 0 auto var(--space-7);
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form__input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form__input::placeholder {
  color: var(--color-text-light);
}

.form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form__input--error {
  border-color: var(--color-error);
}

.form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__error {
  font-size: 0.8125rem;
  color: var(--color-error);
  min-height: 0;
  transition: all var(--transition-fast);
}

.form__group--checkbox {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form__checkbox-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  cursor: pointer;
  flex: 1;
  line-height: 1.5;
}

.form__group--checkbox .form__error {
  width: 100%;
}

.signup__form .btn {
  margin-top: var(--space-2);
}

/* Disabled/coming-soon state */
.signup__disabled {
  position: relative;
  overflow: hidden;
}

.signup__disabled .signup__form {
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
  filter: grayscale(1);
}

.signup__coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  padding: 0.75rem 2rem;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: rgba(255, 107, 53, 0.06);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.signup__trust {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.signup__trust p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  justify-content: center;
}

.signup__trust svg {
  flex-shrink: 0;
}

/* Signup success state */
.signup__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
  animation: fade-in-up 0.5s ease;
}

.signup__success[hidden] {
  display: none;
}

.signup__success-icon {
  animation: success-scale 0.6s var(--transition-spring);
}

@keyframes success-scale {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.signup__success-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-success);
}

.signup__success-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

/* ----------------------------------------
   FAQ
   ---------------------------------------- */
.faq__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border-dark);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border-dark);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted-dark);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-base);
  max-height: 0;
  opacity: 0;
}

.faq__answer[hidden] {
  display: block;
  max-height: 0;
  opacity: 0;
}

.faq__item--open .faq__answer {
  max-height: 200px;
  opacity: 1;
}

.faq__answer p {
  padding-bottom: var(--space-5);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted-dark);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border-dark);
  padding: var(--space-8) 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted-dark);
  margin-top: var(--space-2);
}

.footer__email {
  font-size: 0.875rem;
  color: var(--color-text-muted-dark);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted-dark);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* ----------------------------------------
   SCROLL REVEAL ANIMATIONS
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger animation for grid children */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* Fade-in-up utility animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------
   RESPONSIVE: TABLET (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .section {
    padding: var(--space-11) 0;
  }

  .container {
    padding: 0 var(--space-7);
  }

  .btn--lg {
    padding: var(--space-4) var(--space-7);
    font-size: 1.0625rem;
  }

  /* Solution grid: 2 columns on tablet */
  .solution__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .solution__grid .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  /* Benefits grid: 2 columns */
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Hero layout */
  .hero {
    padding: calc(var(--nav-height) + var(--space-10)) var(--space-7) var(--space-10);
  }

  .hero__visual {
    display: block;
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    opacity: 0.15;
  }

  /* Footer layout */
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
  }

  /* Problem section */
  .problem {
    padding: var(--space-12) 0;
  }

  /* Mission section */
  .mission {
    padding: var(--space-12) 0;
  }

  /* Signup form */
  .signup__content {
    max-width: 560px;
  }
}

/* ----------------------------------------
   RESPONSIVE: WIDE (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-12) 0;
  }

  /* Solution grid: 3 columns */
  .solution__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution__grid .card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  /* Hero container with visual on the right */
  .hero__container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero__content {
    flex: 1;
    max-width: 640px;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 320px;
    height: 320px;
    opacity: 0.25;
    flex-shrink: 0;
  }

  /* Card hover enhanced */
  .card {
    padding: var(--space-7);
  }

  /* FAQ layout */
  .faq__question {
    font-size: 1.0625rem;
    padding: var(--space-6) 0;
  }
}

/* ----------------------------------------
   RESPONSIVE: EXTRA WIDE (1280px+)
   ---------------------------------------- */
@media (min-width: 1280px) {
  .hero__visual {
    width: 380px;
    height: 380px;
  }

  .hero__court-lines::before {
    width: 600px;
    height: 600px;
  }

  .hero__court-lines::after {
    width: 300px;
    height: 300px;
  }
}

/* ----------------------------------------
   PREFERS-REDUCED-MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-indicator {
    animation: none;
  }
}

/* ----------------------------------------
   FOCUS STYLES (Accessibility)
   ---------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.form__input:focus-visible {
  outline: none; /* Uses border-color change instead */
}


/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */
@media print {
  .nav,
  .hero__scroll-indicator,
  .hero__visual,
  .hero__bg {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-6) var(--space-5);
    background: #fff;
    color: #000;
  }

  .section--dark {
    background: #fff;
    color: #000;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.footer__legal {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__legal-link {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__legal-sep {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
}

/* ----------------------------------------
   COOKIE CONSENT BANNER
   ---------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-dark);
  border-top: 2px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.cookie-banner__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-on-dark);
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: underline;
  margin-left: var(--space-2);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}

.cookie-banner__btn:hover {
  opacity: 0.85;
}

.cookie-banner__btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}

/* ----------------------------------------
   LEGAL PAGES (Polityka prywatności, Regulamin)
   ---------------------------------------- */
.legal-page {
  padding: calc(var(--nav-height) + var(--space-9)) 0 var(--space-12);
}

.legal-page__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.legal-page__header {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.legal-page__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.legal-page__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.legal-page__intro {
  background: var(--color-secondary-light);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: var(--space-5) 0 var(--space-2);
}

.legal-section p {
  margin-bottom: var(--space-3);
  line-height: 1.75;
  color: var(--color-text);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
  color: var(--color-text);
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--color-primary-hover);
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th {
  background: var(--color-secondary);
  color: #fff;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:nth-child(even) td {
  background: #f7f9fc;
}

.legal-definition {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-2) 0;
  line-height: 1.6;
}

.legal-definition strong {
  color: var(--color-secondary);
  font-family: var(--font-heading);
}