/* Fillosa landing page — premium sports-tech style */

:root {
  --green: #1f8f7a;
  --green-dark: #166b5c;
  --green-soft: #e4f4f0;
  --navy: #061943;
  --navy-mid: #1f2a2e;
  --cream: #f7f3ea;
  --cream-warm: #f4efe8;
  --white: #ffffff;
  --muted: #5a6b7d;
  --border: #e7dfd2;
  --orange: #e8792a;
  --orange-soft: #fff4eb;
  --shadow-sm: 0 4px 20px rgba(6, 25, 67, 0.06);
  --shadow-md: 0 12px 40px rgba(6, 25, 67, 0.1);
  --shadow-lg: 0 24px 60px rgba(6, 25, 67, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --nav-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 223, 210, 0.7);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__cta {
  flex-shrink: 0;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(31, 143, 122, 0.35);
}

.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 22px rgba(31, 143, 122, 0.4);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn--nav {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--large {
  padding: 16px 28px;
  font-size: 16px;
}

/* ── Badge ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(232, 121, 42, 0.2);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Section headings ── */

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--navy);
}

.section-intro {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.55;
}

.section-intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  background:
    radial-gradient(ellipse 70% 60% at 82% 48%, rgba(255, 244, 235, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 75% 52%, rgba(228, 244, 240, 0.22) 0%, transparent 60%),
    var(--cream);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__badge {
  margin-bottom: 14px;
  animation: fadeUp 0.6s ease both;
}

.hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 14px;
  color: var(--navy);
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual .phone {
  animation: fadeUp 0.7s 0.2s ease both;
}

/* ── Phone mockup ── */

.phone {
  position: relative;
  width: min(240px, 72vw);
  aspect-ratio: 9 / 19.5;
  background: var(--navy);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone--hero {
  width: min(220px, 68vw);
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--navy);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone--carousel {
  width: 172px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 32px;
  padding: 9px;
}

.phone--carousel .phone__notch {
  width: 68px;
  height: 18px;
  top: 9px;
  border-radius: 0 0 11px 11px;
}

.phone--carousel .phone__screen {
  border-radius: 24px;
}

/* ── Use-case cards ── */

.use-cases {
  padding: 44px 0;
}

.use-cases__header {
  text-align: center;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}

.card--teams {
  background: linear-gradient(145deg, #ffffff 0%, var(--green-soft) 100%);
  border-color: rgba(31, 143, 122, 0.15);
}

.card--players {
  background: linear-gradient(145deg, #ffffff 0%, var(--orange-soft) 100%);
  border-color: rgba(232, 121, 42, 0.15);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card__icon--teams {
  background: var(--green-soft);
  color: var(--green-dark);
}

.card__icon--players {
  background: var(--orange-soft);
  color: #b45309;
}

.card__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--navy);
}

.card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.card__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.card__list--teams .card__check {
  background: rgba(31, 143, 122, 0.12);
  color: var(--green-dark);
}

.card__list--players .card__check {
  background: rgba(232, 121, 42, 0.14);
  color: #b45309;
}

/* ── How it works (3 steps) ── */

.how-it-works {
  padding: 44px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(228, 244, 240, 0.4) 50%, transparent 100%);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 28px;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  text-align: left;
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step--highlight {
  background: linear-gradient(160deg, var(--green-soft) 0%, var(--white) 100%);
  border-color: rgba(31, 143, 122, 0.25);
  box-shadow: 0 8px 28px rgba(31, 143, 122, 0.12);
}

.step--highlight .step__number {
  background: var(--navy);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.step__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.step__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.step__connector {
  display: none;
}

/* ── Carousel ── */

.carousel-section {
  padding: 44px 0 48px;
  scroll-margin-top: var(--nav-h);
  overflow-x: clip;
}

.carousel-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.carousel-section__content {
  max-width: 380px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  min-width: 0;
}

.carousel__frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  padding: 18px 20px;
  text-align: left;
  min-width: 0;
}

.carousel__slide-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.carousel__slide-copy {
  flex: 1;
  min-width: 0;
}

.carousel__slide-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.carousel__slide-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  max-width: none;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.carousel__arrow:hover {
  background: var(--green-soft);
  border-color: var(--green);
  transform: scale(1.05);
}

.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}

.carousel__dot--active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* ── Audience (teams / players) ── */

.audience {
  padding: 44px 0;
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.audience__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.audience__card--teams {
  background: linear-gradient(160deg, var(--white) 0%, rgba(228, 244, 240, 0.5) 100%);
}

.audience__card--players {
  background: linear-gradient(160deg, var(--white) 0%, rgba(255, 244, 235, 0.6) 100%);
}

.audience__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.audience__icon--players {
  background: var(--orange-soft);
  color: #b45309;
}

.audience__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.audience__card--players .audience__label {
  color: var(--orange);
}

.audience__text {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── FAQ ── */

.faq {
  padding: 44px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(244, 239, 232, 0.5) 100%);
}

.faq__header {
  text-align: center;
  margin-bottom: 24px;
}

.faq__list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.faq__question:hover {
  color: var(--green-dark);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.2s;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}

.faq__icon svg {
  width: 12px;
  height: 12px;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer-inner {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Final CTA ── */

.final-cta {
  padding: 48px 0 56px;
}

.final-cta__card {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2d5c 100%);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.final-cta__card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(31, 143, 122, 0.2);
  pointer-events: none;
}

.final-cta__card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(232, 121, 42, 0.12);
  pointer-events: none;
}

.final-cta__title {
  position: relative;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.final-cta__text {
  position: relative;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 22px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__card .btn--primary {
  position: relative;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.final-cta__card .btn--primary:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ── Footer ── */

.footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer__logo img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.9;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
}

.footer__links a {
  color: var(--muted);
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--green-dark);
}

.footer__copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── Scroll animations ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── App demo: desktop enlargement ── */

@media (min-width: 901px) {
  .carousel-section__layout {
    grid-template-columns: minmax(260px, 0.82fr) minmax(440px, 1.5fr);
    gap: 28px;
  }

  .carousel-section__content {
    max-width: 340px;
  }

  .carousel {
    max-width: 620px;
  }

  .carousel__slide {
    padding: 12px 14px;
  }

  .carousel__slide-inner {
    gap: 16px;
    align-items: center;
  }

  .phone--carousel {
    width: 238px;
    border-radius: 44px;
    padding: 12px;
  }

  .phone--carousel .phone__notch {
    width: 94px;
    height: 25px;
    top: 12px;
    border-radius: 0 0 14px 14px;
  }

  .phone--carousel .phone__screen {
    border-radius: 33px;
  }

  .carousel__slide-title {
    font-size: 17px;
  }

  .carousel__slide-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .carousel__controls {
    margin-top: 14px;
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__actions {
    justify-content: center;
    margin-bottom: 0;
  }

  .hero__visual {
    margin-top: 28px;
  }

  .phone--hero {
    width: min(168px, 50vw);
  }

  .phone {
    aspect-ratio: unset;
    height: auto;
    padding: 7px;
    border-radius: 28px;
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .phone__notch {
    width: 52px;
    height: 14px;
    top: 7px;
    border-radius: 0 0 9px 9px;
  }

  .phone__screen {
    aspect-ratio: 260 / 563;
    height: auto;
    border-radius: 21px;
  }

  .phone__screen img {
    object-fit: cover;
    object-position: top center;
  }

  .phone--carousel {
    padding: 7px;
    border-radius: 28px;
  }

  .phone--carousel .phone__notch {
    width: 52px;
    height: 14px;
    top: 7px;
    border-radius: 0 0 9px 9px;
  }

  .phone--carousel .phone__screen {
    border-radius: 21px;
  }

  .use-cases__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .carousel-section__layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .carousel-section__content {
    max-width: none;
    text-align: center;
  }

  .carousel-section__content .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .carousel {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: min(100%, 380px);
  }

  .phone--carousel {
    width: min(200px, 54vw);
  }

  .carousel__slide {
    padding: 18px 16px;
  }

  .carousel__slide-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .carousel__controls {
    margin-top: 18px;
    gap: 14px;
  }

  .carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .carousel__dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 64px;
  }

  .hero {
    padding: 24px 0 36px;
  }

  .btn--large {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    margin-top: 32px;
  }

  .phone--hero {
    width: min(158px, 46vw);
  }

  .carousel-section {
    padding: 36px 0 42px;
  }

  .carousel__slide {
    padding: 16px 14px;
  }

  .carousel__slide-inner {
    gap: 12px;
  }

  .phone--carousel {
    width: min(210px, 58vw);
  }

  .carousel__slide-title {
    font-size: 17px;
  }

  .carousel__slide-text {
    font-size: 14px;
  }

  .final-cta__card {
    padding: 36px 20px;
  }
}
