/* FUTKAR — Free Online Store Design System */
@import url('theme.css');

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Glass */
.glass {
  background: rgba(251, 247, 242, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(232, 226, 218, 0.7);
}
.glass-dark { background: rgba(24, 24, 24, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dark .glass { background: rgba(24, 24, 24, 0.88); border-color: rgba(64, 64, 64, 0.6); }

/* Gradients — warm editorial */
.gradient-text {
  background: linear-gradient(135deg, #F27A21 0%, #E06A12 55%, #C45A10 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(242, 122, 33, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(243, 235, 227, 0.9), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(26, 26, 26, 0.04), transparent),
    #FBF7F2;
}
.dark .hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(242, 122, 33, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255, 255, 255, 0.04), transparent),
    #181818;
}
.section-gradient { background: linear-gradient(180deg, #FBF7F2 0%, #F3EBE3 100%); }
.dark .section-gradient { background: linear-gradient(180deg, #181818 0%, #222222 55%, #181818 100%); }
.section-dark { background: linear-gradient(135deg, #1B1B1B 0%, #222222 50%, #151515 100%); }
.cta-gradient { background: linear-gradient(135deg, #F27A21 0%, #E06A12 50%, #C45A10 100%); }

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(242, 122, 33, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 122, 33, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.dark .grid-pattern {
  background-image:
    linear-gradient(rgba(242, 122, 33, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 122, 33, 0.07) 1px, transparent 1px);
}

/* Cards */
.card-hover { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(242, 122, 33, 0.18); }

/* Buttons — pill orange primary (screenshot) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 9999px; font-weight: 600;
  font-family: var(--fk-font-sans, 'DM Sans', system-ui, sans-serif);
  background: #F27A21;
  color: #1A1A1A;
  box-shadow: 0 10px 28px -10px rgba(242, 122, 33, 0.55);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #E06A12;
  box-shadow: 0 16px 36px -10px rgba(224, 106, 18, 0.55);
  color: #1A1A1A;
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 9999px; font-weight: 600;
  font-family: var(--fk-font-sans, 'DM Sans', system-ui, sans-serif);
  background: #fff; border: 1.5px solid #E8E2DA; color: #1A1A1A;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #F27A21; color: #E06A12; background: #FFF9F4; }
.dark .btn-secondary {
  background: #262626;
  border-color: #404040;
  color: #F5F0E8;
}
.dark .btn-secondary:hover {
  border-color: #F27A21;
  color: #F27A21;
  background: #303030;
}
.dark .btn-secondary.border-slate-600 {
  border-color: #404040;
  color: #F5F0E8;
}
.dark .btn-secondary.border-slate-600:hover {
  background: #303030;
  border-color: #F27A21;
}
.section-dark .btn-secondary,
.section-dark .btn-secondary.border-slate-600 {
  background: transparent;
  border-color: rgba(251, 247, 242, 0.4);
  color: #FBF7F2;
}
.section-dark .btn-secondary:hover,
.section-dark .btn-secondary.border-slate-600:hover {
  background: rgba(251, 247, 242, 0.1);
  border-color: rgba(251, 247, 242, 0.7);
  color: #FBF7F2;
}
.section-dark .btn-primary {
  background: #F27A21;
  color: #1A1A1A;
}

/* FAQ */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 600px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.3s ease; }
.dark .faq-icon { color: #A8A097; }

/* Tabs */
.tab-btn { color: #5C5650; }
.tab-btn.active { background: #F27A21; color: #1A1A1A; border-color: #F27A21; }
.dark .tab-btn:not(.active) { color: #C9C2B8; background: transparent; }
.dark .tab-btn:not(.active):hover { background: #303030; color: #F5F0E8; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Timeline */
.timeline-line { background: linear-gradient(180deg, #F27A21, #3D3832); }
.timeline-dot { box-shadow: 0 0 0 4px rgba(242, 122, 33, 0.2); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Comparison table */
.compare-table { border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; border-bottom: 1px solid #E8E2DA; }
.compare-table thead th { position: sticky; top: 0; z-index: 10; background: #F3EBE3; }
.compare-table .sticky-col { position: sticky; left: 0; z-index: 5; background: #fff; font-weight: 600; }
.compare-table .highlight-col { background: rgba(242, 122, 33, 0.05); }
.compare-table tr:hover td { background: rgba(242, 122, 33, 0.04); }
.compare-table tr:hover .sticky-col { background: #FBF7F2; }
.dark .compare-table th,
.dark .compare-table td { border-bottom-color: #404040; }
.dark .compare-table thead th { background: #222222; }
.dark .compare-table .sticky-col { background: #222222; color: #E8E2DA; }
.dark .compare-table .highlight-col { background: rgba(242, 122, 33, 0.12); }
.dark .compare-table tr:hover td { background: rgba(242, 122, 33, 0.08); }
.dark .compare-table tr:hover .sticky-col { background: #303030; }

/* Floating cards animation */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-float { animation: float 5s ease-in-out infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.7s ease forwards; }

/* Sticky mobile CTA */
.mobile-cta-bar {
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.mobile-cta-bar.visible { transform: translateY(0); }

/* Header scrolled */
header.scrolled { box-shadow: 0 4px 24px -4px rgba(40, 28, 18, 0.08); }
.dark header.scrolled { box-shadow: 0 4px 24px -4px rgba(0,0,0,0.35); }

/* Hero score / float chips (checklist pages) */
.hero-chip {
  color: #5C5650;
  border-color: rgba(232, 226, 218, 0.9);
  background: rgba(255, 255, 255, 0.7);
}
.dark .hero-chip {
  color: #E8E2DA;
  border-color: rgba(64, 64, 64, 0.85);
}

/* Focus visibility (accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #F27A21;
  outline-offset: 2px;
}
.dark a:focus-visible,
.dark button:focus-visible {
  outline-color: #F27A21;
}

/* Dark mode — warm charcoal, not cold slate */
.dark { color-scheme: dark; }
.dark body { background: #181818; color: #C9C2B8; }
.dark .card-hover:hover { box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35); }
.dark .gradient-text {
  background: linear-gradient(135deg, #F5A05A 0%, #F27A21 55%, #E06A12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Resource card gradient hover */
.resource-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: linear-gradient(135deg, rgba(242, 122, 33, 0.08), rgba(26, 26, 26, 0.04));
  transition: opacity 0.3s;
}
.resource-card:hover::before { opacity: 1; }

/* Industry card arrow */
.industry-card .arrow { transform: translateX(0); transition: transform 0.2s; }
.industry-card:hover .arrow { transform: translateX(4px); }

/* Nav mobile */
#mobile-nav { transform: translateX(100%); transition: transform 0.3s ease; }
#mobile-nav.open { transform: translateX(0); }
