/* ==========================================================================
   KlubHub Marketing Website
   ========================================================================== */

/* CSS Variables */
:root {
  --primary: #2F4CB3;
  --primary-light: #4A64C4;
  --primary-dark: #263D95;
  --secondary: #FF9F1C;
  --secondary-light: #FFB347;
  --secondary-dark: #E88A00;

  --text-primary: #1F2933;
  --text-secondary: #52606D;
  --text-muted: #7B8794;
  --text-inverse: #FFFFFF;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-dark: #1F2933;

  --border-color: #E4E7EB;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn--white {
  background: var(--bg-primary);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 18px;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav__cta {
  padding: 10px 20px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s ease;
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-muted);
}

.hero__image {
  display: flex;
  justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--text-primary);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 32px;
  overflow: hidden;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.screenshot-placeholder__icon {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section--light {
  background: var(--bg-secondary);
}

.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 80px 0;
}

.section--cta .section__title,
.section--cta .section__subtitle {
  color: var(--text-inverse);
}

.section--cta .section__title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section--cta .section__subtitle {
  margin-bottom: 32px;
  opacity: 0.9;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section__title {
  font-size: 40px;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit {
  text-align: center;
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.benefit__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.benefit__text {
  color: var(--text-secondary);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature__icon--primary {
  background: rgba(47, 76, 179, 0.1);
  color: var(--primary);
}

.feature__icon--secondary {
  background: rgba(255, 159, 28, 0.1);
  color: var(--secondary-dark);
}

.feature__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature__text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Youth Clubs Section */
.youth-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.youth-benefit {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.youth-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.youth-benefit__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.youth-benefit__text {
  font-size: 15px;
  color: var(--text-secondary);
}

.youth-types {
  text-align: center;
  margin-bottom: 60px;
}

.youth-types__title {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.youth-types__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.youth-type {
  background: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.hybrid-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-primary);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hybrid-mode__title {
  font-size: 24px;
  margin-bottom: 16px;
}

.hybrid-mode__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hybrid-mode__examples {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hybrid-mode__example {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.hybrid-mode__example strong {
  color: var(--text-primary);
}

.hybrid-mode__example span {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .youth-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .hybrid-mode {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .youth-benefits {
    grid-template-columns: 1fr;
  }

  .hybrid-mode {
    padding: 32px;
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 24px;
}

.step__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.step__text {
  color: var(--text-secondary);
}

/* Install Guides */
.install-guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.install-guide {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.install-guide__icon {
  color: var(--primary);
  margin-bottom: 20px;
}

.install-guide__title {
  font-size: 24px;
  margin-bottom: 24px;
}

.install-guide__steps {
  list-style: decimal;
  padding-left: 20px;
}

.install-guide__steps li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.install-guide__steps svg {
  vertical-align: middle;
  margin: 0 4px;
}

/* Currency Toggle */
.currency-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.currency-btn {
  padding: 8px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.currency-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
}

/* VAT Note */
.vat-note {
  display: block;
  margin-top: 4px;
  font-style: italic;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-inverse);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-card__header {
  margin-bottom: 16px;
}

.pricing-card__name {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.pricing-card__period {
  color: var(--text-muted);
}

.pricing-card__description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.pricing-card__features {
  margin-bottom: 24px;
}

.pricing-card__features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__addon {
  color: var(--secondary-dark) !important;
  font-weight: 500;
}

.pricing-card__note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq__category-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.faq__item {
  margin-bottom: 16px;
}

.faq__question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  color: var(--text-secondary);
  padding: 0 0 16px;
  font-size: 15px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer__title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links ul li {
  margin-bottom: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.footer__links a:hover {
  color: var(--text-inverse);
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  font-size: 15px;
}

.footer__contact a {
  color: var(--secondary);
}

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav__cta {
    width: 100%;
    margin-top: 16px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__image {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 32px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step::after {
    display: none;
  }

  .install-guides {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand,
  .footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 32px;
  }

  .section__title {
    font-size: 28px;
  }

  .pricing-card {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Legal Pages */
.legal-page {
  padding: calc(var(--header-height) + 60px) 0 80px;
}

.legal-page h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.legal-page__date {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

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

.legal-content a:hover {
  text-decoration: underline;
}
