/* Cetta SERP API — custom styles */

/* Base layer */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #fdf6e9;
  color: #2a1a0e;
  overflow-x: hidden;
}
.font-outfit { font-family: 'Outfit', 'Inter', sans-serif; }

/* Utility classes */
.paper {
  background: rgba(255, 249, 237, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(180, 122, 31, 0.14);
  box-shadow: 0 2px 40px rgba(90, 50, 10, 0.09);
}
.paper-dark {
  background: rgba(42, 26, 14, 0.97);
  border: 1px solid rgba(180, 122, 31, 0.22);
}
.gold-grad { background: linear-gradient(135deg, #f5c842 0%, #c8841a 100%); }
.gold-text { color: #b47a1f; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.chip-gold {
  background: rgba(244, 191, 54, .13);
  border: 1px solid rgba(180, 122, 31, .2);
  color: #8d611d;
}
.glow-gold { box-shadow: 0 0 24px rgba(244, 191, 54, .35); }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 10s ease-in-out infinite reverse; }

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

.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .32) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s 1s infinite;
}

@keyframes shine {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(140%); }
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #8d611d;
}

.bg-page {
  background:
    radial-gradient(circle at 8% 5%, rgba(244, 191, 54, .18) 0%, transparent 20%),
    radial-gradient(circle at 92% 8%, rgba(70, 130, 200, .10) 0%, transparent 18%),
    radial-gradient(circle at 50% 98%, rgba(200, 132, 26, .12) 0%, transparent 20%),
    #fdf6e9;
}

.grid-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 90, 30, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 90, 30, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

.tab-btn.active {
  background: rgba(244, 191, 54, .18);
  color: #2a1a0e;
  border-color: rgba(180, 122, 31, .35);
}

/* Global mobile safety */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, pre, code, table { max-width: 100%; }
section, header, footer { width: 100%; }
pre { overflow-x: auto !important; }
h1, h2, h3, p, li, td, th { overflow-wrap: break-word; hyphens: auto; }
.paper, .paper-dark { max-width: 100%; }
main { width: 100%; max-width: 100vw; overflow-x: clip; }
.min-w-0 { min-width: 0; }

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta a { width: 100%; justify-content: center; }
  .hero-deco { display: none; }
  .tab-btn { font-size: 10px; padding: 3px 10px; }
}

@media (max-width: 360px) {
  .features-grid-cards { padding: 0.75rem; }
}
