/* ==========================================================================
   KetoFan Modern Design System - Built from Figma Design Tokens
   Primary: #DEE14A | Secondary: #FC733B | Dark: #292B49 | Body: #888AA0
   ========================================================================== */

:root {
  /* Brand Tokens */
  --kf-primary: #DEE14A;
  --kf-primary-hover: #cfd239;
  --kf-primary-rgb: 222, 225, 74;
  --kf-secondary: #FC733B;
  --kf-secondary-hover: #e9632d;
  --kf-tertiary: #E9888D;
  --kf-success: #30B530;
  --kf-alert: #FE4651;
  --kf-yolk: #FFA800;
  --kf-yolk-hover: #FFB700;

  /* Neutrals (Light Mode Default) */
  --kf-bg: #F7F7FB;
  --kf-surface: #FFFFFF;
  --kf-surface-card: #FFFFFF;
  --kf-surface-subtle: #F4F5FA;
  --kf-surface-highlight: #FFFDE6;
  --kf-border: #EBEDF9;
  --kf-border-subtle: #F0F2FA;
  --kf-text-main: #292B49;
  --kf-text-muted: #888AA0;
  --kf-nav-bg: rgba(255, 255, 255, 0.92);
  
  /* Shadows & Glows */
  --kf-shadow-sm: 0 4px 12px rgba(41, 43, 73, 0.05);
  --kf-shadow-md: 0 10px 28px rgba(41, 43, 73, 0.08);
  --kf-shadow-lg: 0 20px 45px rgba(41, 43, 73, 0.12);
  --kf-glow-primary: 0 10px 28px rgba(222, 225, 74, 0.4);
  --kf-glow-secondary: 0 10px 28px rgba(252, 115, 59, 0.35);

  /* Phone Mockup Frame */
  --phone-bezel: #1F2133;
  --phone-bezel-border: #3A3D57;
  --phone-screen-bg: #FAFAFD;

  /* Typography */
  --kf-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --kf-radius-sm: 10px;
  --kf-radius-md: 18px;
  --kf-radius-lg: 26px;
  --kf-radius-xl: 36px;
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
[data-theme="dark"] {
  --kf-bg: #11121D;
  --kf-surface: #181928;
  --kf-surface-card: #1E2034;
  --kf-surface-subtle: #252842;
  --kf-surface-highlight: #282A3A;
  --kf-border: #2C2F4B;
  --kf-border-subtle: #24263D;
  --kf-text-main: #F5F6FD;
  --kf-text-muted: #9BA0BE;
  --kf-nav-bg: rgba(17, 18, 29, 0.92);

  --kf-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --kf-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --kf-shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.6);
  --kf-glow-primary: 0 10px 28px rgba(222, 225, 74, 0.28);
  --kf-yolk: #FFB300;
  --kf-yolk-hover: #FFC42B;

  --phone-bezel: #0F101A;
  --phone-bezel-border: #292B45;
  --phone-screen-bg: #131420;
}

/* Base resets & typography */
body {
  background-color: var(--kf-bg);
  color: var(--kf-text-main);
  font-family: var(--kf-font);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--kf-text-main);
  font-family: var(--kf-font);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

p {
  color: var(--kf-text-muted);
  font-size: 16px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Modern Header & Navigation
   ========================================================================== */
.kf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.kf-header.scrolled {
  background-color: var(--kf-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--kf-shadow-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--kf-border);
}

.kf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.kf-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(222, 225, 74, 0.35);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  transform-origin: center center;
  will-change: transform;
}

.kf-brand:hover .kf-brand-logo {
  transform: rotate(360deg) scale(1.18);
  box-shadow: 0 0 28px rgba(222, 225, 74, 0.75), 0 0 12px rgba(252, 115, 59, 0.45);
}

.kf-brand-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--kf-text-main);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s ease;
}

.kf-brand:hover .kf-brand-name {
  transform: translateX(4px);
}

.kf-brand-name span {
  color: var(--kf-yolk);
  text-shadow: 0 2px 10px rgba(255, 168, 0, 0.25);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.kf-brand:hover .kf-brand-name span {
  color: var(--kf-yolk-hover);
  text-shadow: 0 0 16px rgba(255, 183, 0, 0.6);
}

.kf-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kf-nav-links a {
  color: var(--kf-text-main);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  opacity: 0.85;
  transition: all 0.2s ease;
  position: relative;
}

.kf-nav-links a:hover,
.kf-nav-links a.active {
  opacity: 1;
  color: var(--kf-secondary);
}

.kf-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: var(--kf-primary);
}

.kf-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher (EN / PL) - Refined & Theme Harmonized */
.kf-lang-switch {
  display: inline-flex;
  align-items: center;
  height: 42px;
  background-color: var(--kf-surface-subtle);
  border: 1px solid var(--kf-border);
  border-radius: 24px;
  padding: 0 4px 0 11px;
  gap: 3px;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: var(--kf-shadow-sm);
}

.kf-lang-switch:hover {
  border-color: rgba(222, 225, 74, 0.45);
  box-shadow: 0 2px 14px rgba(222, 225, 74, 0.12);
}

.kf-lang-globe {
  color: var(--kf-text-muted);
  font-size: 14px;
  margin-right: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.kf-lang-switch:hover .kf-lang-globe {
  color: var(--kf-primary);
  transform: rotate(20deg);
}

.kf-lang-divider {
  width: 1px;
  height: 14px;
  background-color: var(--kf-border);
  margin: 0 1px;
  opacity: 0.6;
}

.kf-lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--kf-text-muted);
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  min-width: 36px;
  padding: 0 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  font-family: inherit;
  line-height: 1;
}

.kf-lang-btn:hover {
  color: var(--kf-text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Active State in Dark Theme */
[data-theme="dark"] .kf-lang-btn.active {
  background: rgba(222, 225, 74, 0.15);
  color: var(--kf-primary);
  border-color: rgba(222, 225, 74, 0.4);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(222, 225, 74, 0.15);
}

/* Active State in Light Theme */
html:not([data-theme="dark"]) .kf-lang-btn.active {
  background: rgba(41, 43, 73, 0.08);
  color: var(--kf-dark);
  border-color: rgba(41, 43, 73, 0.25);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Theme Toggle Button */
.kf-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--kf-surface-subtle);
  border: 1px solid var(--kf-border);
  color: var(--kf-text-main);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s ease;
}

.kf-theme-toggle:hover {
  background-color: var(--kf-primary);
  color: #292B49;
  transform: rotate(20deg);
  box-shadow: var(--kf-glow-primary);
}

/* Action CTA */
.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.kf-btn-primary {
  background-color: var(--kf-primary);
  color: #292B49 !important;
  box-shadow: var(--kf-glow-primary);
}

.kf-btn-primary:hover {
  background-color: var(--kf-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(222, 225, 74, 0.45);
}

.kf-btn-secondary {
  background-color: var(--kf-secondary);
  color: #FFFFFF !important;
  box-shadow: var(--kf-glow-secondary);
}

.kf-btn-secondary:hover {
  background-color: var(--kf-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(252, 115, 59, 0.45);
}

.kf-btn-outline {
  background-color: transparent;
  color: var(--kf-text-main) !important;
  border: 1.5px solid var(--kf-border);
}

.kf-btn-outline:hover {
  border-color: var(--kf-primary);
  background-color: var(--kf-surface-subtle);
}

/* ==========================================================================
   Hero Section with 3D Glowing Phone Mockup
   ========================================================================== */
.kf-hero {
  position: relative;
  padding: 160px 0 110px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(222, 225, 74, 0.12), transparent 45%),
              radial-gradient(circle at 10% 70%, rgba(252, 115, 59, 0.08), transparent 45%);
}

.kf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--kf-surface);
  border: 1px solid var(--kf-border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--kf-text-main);
  box-shadow: var(--kf-shadow-sm);
  margin-bottom: 24px;
}

.kf-hero-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--kf-success);
  display: inline-block;
  box-shadow: 0 0 8px var(--kf-success);
}

.kf-hero-title {
  font-size: 54px;
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.kf-hero-title .highlight {
  color: var(--kf-secondary);
  position: relative;
  display: inline-block;
}

.kf-hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 12px;
  background-color: rgba(222, 225, 74, 0.35);
  z-index: -1;
  border-radius: 4px;
}

.kf-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--kf-text-muted);
  margin-bottom: 34px;
  max-width: 540px;
}

.kf-app-stores {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.kf-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #12131D;
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.kf-store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  border-color: var(--kf-primary);
}

.kf-store-badge i {
  font-size: 26px;
  color: #FFFFFF;
}

.kf-store-badge .store-text {
  text-align: left;
  line-height: 1.2;
}

.kf-store-badge .store-text span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #A3A6C0;
  letter-spacing: 0.5px;
}

.kf-store-badge .store-text strong {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.kf-hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--kf-text-muted);
}

.kf-stars {
  color: #FFB800;
  font-size: 15px;
  letter-spacing: 2px;
}

/* ==========================================================================
   Realistic Phone Mockup Component (Interactive)
   ========================================================================== */
.kf-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kf-phone-case {
  position: relative;
  width: 320px;
  height: 650px;
  background: var(--phone-bezel);
  border: 10px solid var(--phone-bezel);
  outline: 2px solid var(--phone-bezel-border);
  border-radius: 46px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35),
              0 0 45px rgba(222, 225, 74, 0.2);
  overflow: hidden;
  transition: all 0.4s ease;
}

.kf-phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background-color: #0B0C14;
  border-radius: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kf-phone-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #191B2E;
  margin-left: auto;
  margin-right: 12px;
  border: 1.5px solid #2B2E48;
}

.kf-phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--phone-screen-bg);
  border-radius: 36px;
  scrollbar-width: none;
}

.kf-phone-screen::-webkit-scrollbar {
  display: none;
}

.kf-phone-screen img {
  width: 100%;
  display: block;
  border-radius: 36px;
}

/* Floating Interactive Pills on Hero */
.kf-float-chip {
  position: absolute;
  background-color: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: var(--kf-shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  animation: floatUpDown 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.kf-float-chip.chip-1 {
  top: 12%;
  left: -40px;
  animation-delay: 0s;
}

.kf-float-chip.chip-2 {
  bottom: 22%;
  right: -35px;
  animation-delay: 1.8s;
}

.kf-float-chip.chip-3 {
  bottom: 6%;
  left: -20px;
  animation-delay: 3s;
}

.kf-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background-color: var(--kf-surface-subtle);
}

.kf-float-text {
  font-size: 13px;
  line-height: 1.3;
}

.kf-float-text strong {
  display: block;
  color: var(--kf-text-main);
  font-weight: 700;
  font-size: 14px;
}

.kf-float-text span {
  color: var(--kf-text-muted);
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ==========================================================================
   Stats / Social Proof Strip
   ========================================================================== */
.kf-stats-strip {
  padding: 40px 0;
  background-color: var(--kf-surface);
  border-top: 1px solid var(--kf-border);
  border-bottom: 1px solid var(--kf-border);
  margin-bottom: 90px;
}

.kf-stat-item {
  text-align: center;
  padding: 10px 15px;
}

.kf-stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--kf-text-main);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.kf-stat-number span {
  color: var(--kf-secondary);
}

.kf-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--kf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.kf-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.kf-section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background-color: rgba(222, 225, 74, 0.25);
  color: var(--kf-text-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.kf-section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.kf-section-desc {
  font-size: 17px;
  color: var(--kf-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Features Grid (6 Core Features from Figma)
   ========================================================================== */
.kf-features-section {
  padding: 60px 0 100px;
}

.kf-feature-card {
  background-color: var(--kf-surface-card);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-lg);
  padding: 36px 30px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kf-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--kf-shadow-md);
  border-color: var(--kf-primary);
}

.kf-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--kf-primary), var(--kf-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kf-feature-card:hover::before {
  opacity: 1;
}

.kf-feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background-color: var(--kf-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--kf-text-main);
  box-shadow: var(--kf-shadow-sm);
  transition: all 0.3s ease;
}

.kf-feature-card:hover .kf-feature-icon-wrap {
  background-color: var(--kf-primary);
  color: #292B49;
  transform: scale(1.08);
}

.kf-feature-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.kf-feature-text {
  font-size: 15px;
  color: var(--kf-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive App Showcase (Light & Dark Mode Switcher)
   ========================================================================== */
.kf-showcase-section {
  padding: 100px 0;
  background-color: var(--kf-surface-subtle);
  border-top: 1px solid var(--kf-border);
  border-bottom: 1px solid var(--kf-border);
  position: relative;
}

.kf-showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.kf-tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  background-color: var(--kf-surface);
  border: 1px solid var(--kf-border);
  color: var(--kf-text-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kf-tab-btn:hover {
  border-color: var(--kf-primary);
  color: var(--kf-secondary);
}

.kf-tab-btn.active {
  background-color: var(--kf-primary);
  color: #292B49;
  border-color: var(--kf-primary);
  box-shadow: var(--kf-glow-primary);
  font-weight: 700;
}

/* Mockup Theme Switcher Pill */
.kf-mockup-theme-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 45px;
  box-shadow: var(--kf-shadow-sm);
}

.kf-theme-pill {
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--kf-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kf-theme-pill.active {
  background-color: var(--kf-text-main);
  color: var(--kf-surface);
}

.kf-showcase-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}

.kf-showcase-desc {
  max-width: 460px;
}

.kf-showcase-desc h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.kf-showcase-desc p {
  font-size: 16px;
  margin-bottom: 24px;
}

.kf-showcase-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.kf-showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--kf-text-main);
  font-weight: 500;
}

.kf-showcase-points li i {
  color: var(--kf-success);
  font-size: 18px;
  margin-top: 2px;
}

/* ==========================================================================
   Deep Dive Feature Rows (Spotlight)
   ========================================================================== */
.kf-spotlight-section {
  padding: 100px 0;
}

.kf-spotlight-row {
  display: flex;
  align-items: center;
  margin-bottom: 110px;
}

.kf-spotlight-row:last-child {
  margin-bottom: 0;
}

.kf-spotlight-content {
  padding: 20px 30px;
}

.kf-spotlight-content h3 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.kf-spotlight-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.kf-macro-capsules {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.kf-macro-capsule {
  background-color: var(--kf-surface-card);
  border: 1px solid var(--kf-border);
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: var(--kf-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kf-macro-capsule strong {
  font-size: 18px;
  color: var(--kf-text-main);
}

.kf-macro-capsule span {
  font-size: 12px;
  color: var(--kf-text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   KetoFan Merch & Community Store Section
   ========================================================================== */
.kf-merch-section {
  padding: 100px 0;
  background-color: var(--kf-surface);
  border-top: 1px solid var(--kf-border);
}

.kf-merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.kf-merch-card {
  background-color: var(--kf-surface-card);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-lg);
  overflow: hidden;
  box-shadow: var(--kf-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.kf-merch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kf-shadow-md);
  border-color: var(--kf-primary);
}

.kf-merch-img-wrap {
  position: relative;
  background-color: var(--kf-surface-subtle);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--kf-border-subtle);
}

.kf-merch-img-wrap .merch-img-main {
  max-height: 205px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.kf-merch-img-wrap .merch-img-alt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-height: 205px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover switch to 2nd image when available */
.kf-merch-card:hover .kf-merch-img-wrap.has-dual-img .merch-img-main {
  opacity: 0;
  transform: scale(0.96);
}

.kf-merch-card:hover .kf-merch-img-wrap.has-dual-img .merch-img-alt {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

/* If a card doesn't have dual image, standard zoom */
.kf-merch-card:hover .kf-merch-img-wrap:not(.has-dual-img) .merch-img-main {
  transform: scale(1.06);
}

.kf-merch-img-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kf-text-main);
  box-shadow: var(--kf-shadow-sm);
  z-index: 5;
}

.kf-merch-variants {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.kf-variant-btn {
  background: var(--kf-surface-subtle);
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kf-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.kf-variant-btn.active, .kf-variant-btn:hover {
  background-color: var(--kf-primary);
  color: #292B49;
  border-color: var(--kf-primary);
  font-weight: 700;
}

.kf-merch-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kf-merch-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.kf-merch-desc {
  font-size: 13px;
  color: var(--kf-text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.kf-merch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kf-merch-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--kf-text-main);
}

.kf-merch-badge {
  background-color: rgba(252, 115, 59, 0.15);
  color: var(--kf-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ==========================================================================
   Testimonials (Keto Community Polish Reviews)
   ========================================================================== */
.kf-testimonials-section {
  padding: 100px 0;
  background-color: var(--kf-surface-subtle);
}

.kf-testimonial-card {
  background-color: var(--kf-surface-card);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-lg);
  padding: 32px 28px;
  height: 100%;
  box-shadow: var(--kf-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.kf-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kf-shadow-md);
}

.kf-testi-stars {
  color: #FFB800;
  margin-bottom: 16px;
  font-size: 15px;
}

.kf-testi-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--kf-text-main);
  margin-bottom: 22px;
  font-style: italic;
}

.kf-testi-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kf-testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--kf-primary);
}

.kf-testi-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--kf-text-main);
}

.kf-testi-info span {
  font-size: 13px;
  color: var(--kf-text-muted);
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */
.kf-cta-section {
  padding: 100px 0;
}

.kf-cta-box {
  background: linear-gradient(135deg, #1C1E30 0%, #11121E 100%);
  border-radius: var(--kf-radius-xl);
  padding: 70px 60px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.kf-cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 225, 74, 0.25), transparent 70%);
  z-index: 0;
}

.kf-cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 115, 59, 0.2), transparent 70%);
  z-index: 0;
}

.kf-cta-content {
  position: relative;
  z-index: 1;
}

.kf-cta-title {
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.kf-cta-desc {
  font-size: 18px;
  color: #C0C3DC;
  margin-bottom: 35px;
  max-width: 580px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.kf-footer {
  background-color: var(--kf-surface);
  border-top: 1px solid var(--kf-border);
  padding: 70px 0 35px;
}

.kf-footer-brand p {
  font-size: 14px;
  max-width: 300px;
  margin-top: 14px;
}

.kf-footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--kf-text-main);
}

.kf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-footer-links li {
  margin-bottom: 10px;
}

.kf-footer-links a {
  color: var(--kf-text-muted);
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.kf-footer-links a:hover {
  color: var(--kf-secondary);
}

.kf-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.kf-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--kf-surface-subtle);
  border: 1px solid var(--kf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-text-main);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.kf-social-btn:hover {
  background-color: var(--kf-primary);
  color: #292B49;
  transform: translateY(-2px);
}

.kf-footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid var(--kf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--kf-text-muted);
}

/* Footer Interactive Language Switcher */
.kf-footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--kf-text-muted);
}

.kf-footer-lang-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 9px;
  border-radius: 12px;
  color: var(--kf-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}

.kf-footer-lang-btn:hover {
  color: var(--kf-text-main);
  background-color: var(--kf-surface-subtle);
  border-color: var(--kf-border);
}

.kf-footer-lang-btn.active {
  color: var(--kf-primary);
  background-color: rgba(222, 225, 74, 0.12);
  border-color: rgba(222, 225, 74, 0.35);
  font-weight: 800;
}

.kf-footer-lang-sep {
  color: var(--kf-text-muted);
  opacity: 0.5;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .kf-hero-title {
    font-size: 40px;
  }
  .kf-hero {
    padding: 130px 0 70px;
  }
  .kf-mockup-wrapper {
    margin-top: 60px;
  }
  .kf-float-chip {
    display: none;
  }
  .kf-spotlight-row {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
  }
  .kf-macro-capsules {
    justify-content: center;
  }
  .kf-cta-box {
    padding: 45px 30px;
    text-align: center;
  }
  .kf-cta-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .kf-app-stores {
    justify-content: center;
  }
  .kf-nav-links {
    display: none;
  }
}

@media (max-width: 767px) {
  .kf-hero-title {
    font-size: 32px;
  }
  .kf-section-title {
    font-size: 28px;
  }
  .kf-phone-case {
    width: 270px;
    height: 550px;
  }
  .kf-stat-number {
    font-size: 30px;
  }
}

@media (max-width: 575px) {
  .kf-header-actions {
    gap: 8px;
  }
  .kf-lang-switch {
    height: 38px;
    padding: 0 3px 0 8px;
    gap: 2px;
  }
  .kf-lang-globe {
    font-size: 12px;
    margin-right: 2px;
  }
  .kf-lang-btn {
    height: 28px;
    min-width: 28px;
    padding: 0 6px;
    font-size: 11px;
  }
  .kf-theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .kf-header-actions .kf-btn {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .kf-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
