/* =====================================================
   landing.css — CC Avalia Landing Page
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #05080f;
}

/* =====================================================
   Background orbs
   ===================================================== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.orb-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  top: 45%;
  left: 40%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  animation: orbFloat3 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(1.05); }
  66%       { transform: translate(30px, -20px) scale(0.96); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(50px, -30px) scale(1.08); }
  70%       { transform: translate(-20px, 40px) scale(0.94); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-60px, 50px) scale(1.1); }
}

/* =====================================================
   Navbar
   ===================================================== */
#navbar {
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(5, 8, 15, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* =====================================================
   Typography helpers
   ===================================================== */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.7;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.025) 50%, transparent 100%);
}

/* =====================================================
   Glass card
   ===================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

/* =====================================================
   Hero float elements
   ===================================================== */
.float-card {
  animation: floatCard 6s ease-in-out infinite;
}
.float-badge {
  animation: floatBadge 5s ease-in-out infinite 0.5s;
}
.float-badge-2 {
  animation: floatBadge 7s ease-in-out infinite 1.2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

/* =====================================================
   Feature cards
   ===================================================== */
.feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.feature-card:hover,
.hover-lift:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-2px);
}

/* =====================================================
   Pricing cards
   ===================================================== */
.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.pricing-featured {
  background: linear-gradient(160deg, rgba(37,99,235,0.1) 0%, rgba(6,182,212,0.06) 100%);
  border-color: rgba(37, 99, 235, 0.35) !important;
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.12);
}
.pricing-featured:hover {
  transform: scale(1.03) translateY(-2px);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.pricing-feature.on  { color: #cbd5e1; }
.pricing-feature.off { color: #334155; }

/* =====================================================
   CTA card glow
   ===================================================== */
.cta-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(6,182,212,0.06) 100%) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 0 80px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =====================================================
   Mobile nav link
   ===================================================== */
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* =====================================================
   Footer links
   ===================================================== */
.footer-link {
  color: #475569;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #94a3b8; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open {
  border-color: rgba(37, 99, 235, 0.28);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease;
}
.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.025);
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-content {
  max-height: 260px;
}
.faq-content p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 0 1.25rem 1.25rem;
}

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

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* =====================================================
   Add-on cards (alert selector)
   ===================================================== */
.addon-card {
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.125rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  outline: none;
}
.addon-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.addon-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}
.addon-card.selected {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.09);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.1);
}

.addon-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =====================================================
   Contact form inputs
   ===================================================== */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.375rem;
}

input.form-input,
textarea.form-input,
select.form-input {
  display: block;
  width: 100%;
  background-color: #0b1120 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
input.form-input::placeholder,
textarea.form-input::placeholder {
  color: #2a3a52 !important;
  -webkit-text-fill-color: #2a3a52;
  opacity: 1;
}
input.form-input:focus,
textarea.form-input:focus,
select.form-input:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  background-color: #0d1526 !important;
}
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.875rem center !important;
  padding-right: 2.25rem;
}
select.form-input option {
  background-color: #0b1120;
  color: #e2e8f0;
}
textarea.form-input {
  resize: none;
}
input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b1120 inset !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  caret-color: #e2e8f0;
  transition: background-color 9999s ease-in-out 0s;
}

/* =====================================================
   Responsive tweaks
   ===================================================== */
@media (max-width: 640px) {
  .orb-1 { width: 380px; height: 380px; top: -120px; right: -100px; }
  .orb-2 { width: 300px; height: 300px; }
  .orb-3 { display: none; }
  .pricing-featured { transform: scale(1); }
  .pricing-featured:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .float-card, .float-badge, .float-badge-2 { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
