/* ============================================================
   CLUSTER FABRIK — components.css
   Nav, footer, buttons, cards, badges, cookie banner
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: var(--color-accent-dim); box-shadow: 0 8px 24px rgba(249,115,22,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--color-muted-2);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-muted); color: var(--color-text); }

.btn-blue {
  background: var(--color-primary);
  color: white;
}
.btn-blue:hover { background: var(--color-primary-dim); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }

/* Pulse animation for hero CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(249,115,22,0); }
}
.btn-primary.pulse { animation: pulse-glow 2.5s infinite; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: 1px solid;
}
.badge-accent {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  color: var(--color-accent);
}
.badge-muted {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--color-muted-2);
}
.badge-live {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(37,99,235,0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 22px;
}
.card h3 { color: var(--color-text); margin-bottom: 8px; font-size: 18px; }
.card p  { font-size: 14px; color: var(--color-muted); }

/* Deployment mode card */
.deploy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.deploy-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.deploy-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.deploy-card.muted { opacity: 0.7; }
.deploy-card .icon { font-size: 48px; margin-bottom: 16px; }
.deploy-card h3 { color: var(--color-text); margin-bottom: 8px; }
.deploy-card p  { font-size: 14px; margin-bottom: 20px; }
.deploy-card .status { margin-top: 20px; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  transition: border-color 0.3s ease;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--color-text);
}
.nav-logo-dot {
  width: 10px; height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--color-muted-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.nav-mobile a {
  font-size: 16px; font-weight: 500; color: var(--color-muted-2);
  padding: 8px 0;
}
.nav-mobile a:hover { color: var(--color-text); }
.nav-mobile.open { display: flex; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* Page offset for fixed nav */
body { padding-top: 64px; }

/* --- Footer --- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--color-muted); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--color-muted-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--color-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--color-muted); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; color: var(--color-muted-2); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 8px 18px; font-size: 13px; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--color-muted-2);
}
.trust-item span { font-size: 16px; }

/* --- Section: CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #0f1a2e 0%, #162032 50%, #0f1a2e 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--color-text); margin-bottom: 16px; }
.cta-banner p  { color: var(--color-muted-2); margin-bottom: 32px; }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--color-text);
  text-align: left;
}
.faq-question:hover { color: var(--color-primary); }
.faq-chevron { font-size: 20px; transition: transform 0.2s; flex-shrink: 0; color: var(--color-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner { padding: 0 0 20px; }
.faq-answer-inner p { font-size: 15px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* --- How It Works Steps --- */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 32px; left: calc(33.33% - 0px); right: calc(33.33% - 0px);
  height: 2px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
  z-index: 0;
}
.step { flex: 1; text-align: center; padding: 0 24px; position: relative; }
.step-number {
  width: 64px; height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: 0 0 24px rgba(37,99,235,0.5);
}
.step h3 { color: var(--color-text); margin-bottom: 8px; }
.step p   { font-size: 14px; }

@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }
}

/* --- Animated gradient hero background --- */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-bg {
  background: linear-gradient(-45deg, #0a0f1e, #0f1a2e, #0d1530, #0a0f1e);
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}

/* --- Pricing Cards --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}
.pricing-card:hover:not(.featured) { border-color: rgba(37,99,235,0.4); }
.pricing-card h3 { color: var(--color-text); margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--color-text); margin: 16px 0; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--color-muted); }
.pricing-features { flex: 1; margin: 20px 0; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--color-muted-2);
  padding: 6px 0;
}
.pricing-features li::before { content: '✓'; color: var(--color-primary); font-weight: 700; flex-shrink: 0; }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* --- Hero floating orb animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(37,99,235,0.15);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(249,115,22,0.08);
  bottom: -50px; left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

/* --- Legal pages --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal-content h1 { margin-bottom: 8px; }
.legal-content .legal-date { font-size: 14px; color: var(--color-muted); margin-bottom: 48px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 12px; color: var(--color-text); }
.legal-content h3 { font-size: 18px; margin: 28px 0 10px; color: var(--color-text); }
.legal-content p  { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { font-size: 15px; color: var(--color-muted-2); line-height: 1.7; margin-bottom: 6px; }
.legal-content a  { color: var(--color-primary); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.legal-content th { background: var(--color-surface-2); color: var(--color-text); padding: 10px 14px; text-align: left; border: 1px solid var(--color-border); }
.legal-content td { padding: 10px 14px; border: 1px solid var(--color-border); color: var(--color-muted-2); }
