/* FluxAI – Minimal AI SaaS starter (MIT) */
:root {
  --bg: #0b0f1a;
  --panel: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.08);
  --text: #e6e8ef;
  --muted: #a5acc1;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,0.25), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(0,212,255,0.2), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

/* Card hover effect */
.card.glass {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.glass:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Blog grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-grid .card {
  background: #0b0f1a;
  padding: 1rem;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.blog-grid .card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.blog-grid .card h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
}
.blog-grid .card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

/* Logo */
.logo-container {
  width: 102px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  justify-content: space-between;
}

/* Values ticker */
.values-section {
  width: 80;
  overflow: hidden;
  background: linear-gradient(90deg, #0d1b4a, #1e3c72);
  padding: 0.5rem 0;
  position: relative;
}
.values-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.values-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 18s linear infinite;
}
.values-track span {
  display: inline-block;
  margin: 0 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.values-track:hover {
  animation-play-state: paused;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.post img,
.section img {
  border-radius: 8px;
  margin: 1rem 0;
}

/* Pricing overlay */
.pricing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(6,10,32,0.96), rgba(12,16,44,0.9));
  backdrop-filter: blur(6px);
  pointer-events: none;
  transform-origin: center center;
}
.pricing-overlay.open {
  display: flex;
  pointer-events: auto;
  animation: overlayShow 420ms cubic-bezier(.2,.9,.28,1) forwards;
}
@keyframes overlayShow {
  from { transform: scale(.02); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pricing-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.pricing-headline {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  z-index: 10010;
  pointer-events: none;
  text-shadow: 0 8px 30px rgba(60,120,255,0.06);
}
.pricing-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10020;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
@media (max-width: 680px) {
  .pricing-headline { font-size: 1.1rem; top: 12%; }
  .pricing-close { top: 12px; right: 12px; padding: 6px 8px; }
}

/* Page transition overlay */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.9), rgba(0,0,0,1));
  z-index: 9999;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
#page-transition.active {
  animation: expandOverlay 1.5s ease forwards;
}
@keyframes expandOverlay {
  0% { transform: scale(0); opacity: 0.5; border-radius: 50%; }
  50% { transform: scale(2); opacity: 0.8; }
  100% { transform: scale(5); opacity: 1; }
}
#ai-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#features-tech {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}
/* ===================================================
   High-DPI Rendering for Canvas
   =================================================== */
canvas {
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

/* ===================================================
   Chatbot Widget
   =================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: linear-gradient(160deg, #0f172a, #1e3a8a);
  border-radius: 12px;
  display: none; /* hidden by default */
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 9999;
  color: #fff;
}

/* Chatbot header */
.chatbot-header {
  background: #1e293b;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Chat window area */
.chat-window {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* Messages */
.bot-msg {
  align-self: flex-start;
  background: #22c55e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  max-width: 75%;
  word-wrap: break-word;
}
.user-msg {
  align-self: flex-end;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px 16px 4px 16px;
  max-width: 75%;
  word-wrap: break-word;
}

/* Chat input form */
.chat-form {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.chat-form input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
  background: #0f172a;
  color: #fff;
}
.chat-form button {
  background: linear-gradient(145deg, #1e3a8a, #0f172a);
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.6);
}

/* Floating toggle button */
.chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(145deg, #1e3a8a, #0f172a);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10000;
}
.chatbot-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.8);
}

/* ===================================================
   Pricing Overlay (Pulse Animation)
   =================================================== */

#pricingCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pulse effect */
.pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ff006e, transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0.9;
  pointer-events: none;
}
.pulse.active {
  animation: pulseExpand 0.6s ease-out forwards;
}
@keyframes pulseExpand {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(50); opacity: 0; }
}

/* Mini pulse (link clicks) */
.pulse-only {
  position: relative;
  overflow: hidden;
}
.pulse-effect {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, #0ff, transparent 70%);
  transform: scale(0);
  opacity: 0.8;
  pointer-events: none;
  animation: miniPulse 0.5s ease-out forwards;
}
@keyframes miniPulse {
  from { transform: scale(0); opacity: 0.9; }
  to   { transform: scale(10); opacity: 0; }
}

/* ===================================================
   Layout & Components
   =================================================== */
.container { width: min(1100px, 92%); margin-inline: auto; }
.small { font-size: .9rem; color: var(--muted); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(11,15,26,0.9), rgba(11,15,26,0.5));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; letter-spacing: .5px; text-decoration: none; color: var(--text); font-size: 1.25rem; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; opacity: .9; }
.nav a.active { color: var(--brand); }
.nav-toggle { display: none; }
/* Mobile nav dropdown hidden by default */
.mobile-nav-dropdown {
  display: none;
  position: absolute;
  right: 20px;
  top: 100%; /* directly below header */
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 9998;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Visible state */
.mobile-nav-dropdown.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Links inside dropdown */
.mobile-nav-dropdown a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  font-size: 0.95rem;
}

.mobile-nav-dropdown a:hover {
  opacity: 1;
  color: var(--brand, #7c5cff);
}

/* Only apply on mobile */
@media (min-width: 769px) {
  .mobile-nav-dropdown {
    display: none !important;
  }
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f1a;
  font-weight: 700;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
}
.btn-lg { padding: 14px 22px; }
.btn-block { display: block; width: 100%; }

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 48px 0;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; }
.hero .brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; color: transparent; }
.hero .cta { display: flex; gap: 12px; margin: 18px 0 10px; }
.hero .badges { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-media { padding: 20px; border-radius: var(--radius); }

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 1.75rem; margin: 0 0 16px; }
.lead { color: var(--muted); margin-top: -6px; margin-bottom: 24px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Cards */
.card {
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
}

/* Steps */
.steps .step { position: relative; padding-left: 42px; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f1a; font-weight: 800;
}

/* Pricing cards */
.pricing-teaser { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px; }
.cards-pricing .price { padding: 22px; }
.price .ribbon {
  position: absolute;
  transform: translateY(-12px);
  background: var(--brand);
  color: #0b0f1a;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-amount { font-size: 2rem; margin: 6px 0 10px; }
.featured { border: 1px solid rgba(124,92,255,0.55); }

/* Billing toggle (cleaned: kept one version) */
.billing-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); }
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.switch input:checked + .slider { background-color: #0d47a1; }
.switch input:checked + .slider:before { transform: translateX(26px); }

/* Forms */
.form label { display: block; font-weight: 600; margin-bottom: 8px; }
.form input, .form textarea,
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: start; }
.input-group { display: flex; gap: 8px; }

/* Blog & Team */
.blog-grid img, .post .cover { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.team .avatar { width: 64px; height: 64px; border-radius: 50%; background: #222; }

/* Auth pages */
.auth { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(420px, 92%); }

/* Misc */
.quote { font-style: italic; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin: 2rem 0;
  font-family: Arial, sans-serif;
}
.comparison-table thead th {
  background: linear-gradient(90deg, #8B0000, #B22222);
  color: #000;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}
/* -------------------
   Payment Page Layout (scoped)
------------------- */
.payment-page .payment-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Payment Logo */
.payment-page .payment-logo {
  position: absolute;
  top: 20px;
  left: 20px;
}

.payment-page .payment-logo img {
  width: 120px;
  height: auto;
  display: block;
}

/* Headings */
.payment-page .payment-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.payment-page .checkout-container {
  display: flex;
  gap: 2rem;
}

/* Left & Right Columns */
.payment-page .checkout-left,
.payment-page .checkout-right {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
}

.payment-page .checkout-left h2,
.payment-page .checkout-right h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Form Controls */
.payment-page label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.payment-page input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.payment-page input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Row inside form */
.payment-page .form-row {
  display: flex;
  gap: 1rem;
}

.payment-page .form-row div {
  flex: 1;
}

/* Order Summary */
.payment-page .order-summary {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.payment-page .order-summary h3 {
  margin-bottom: 0.5rem;
}

/* Button */
.payment-page .btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.payment-page .btn:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
}

/* 🔹 Payment Page Plan Dropdown Styling */
#planSelect {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0a2540, #19395a);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  outline: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25), inset 0 0 10px rgba(255,255,255,0.15);
  transition: all 0.3s ease-in-out;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Hover & focus = shiny glow */
#planSelect:hover, 
#planSelect:focus {
  background: linear-gradient(135deg, #19395a, #24527a);
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.6), inset 0 0 12px rgba(255,255,255,0.25);
}

/* 🔹 Style the dropdown list options */
#planSelect option {
  background: linear-gradient(135deg, #0a2540, #19395a);
  color: #480606;
  padding: 10px;
  font-weight: 500;
}

/* Highlight selected option */
#planSelect option:checked,
#planSelect option:hover {
  background: linear-gradient(135deg, #24527a, #2e5e9c);
  color: #fff;
}

.payment-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #400a23, #19395a, #390c58);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Popup overlay background */
    .thankyou-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.7);
      display: none; /* Hidden by default */
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    /*  Popup box */
    .thankyou-popup {
  background: linear-gradient(135deg, #0a2540, #19395a);
  color: #fff; /* make text visible on dark bg */
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease-out;
}
    /* Simple animation */
    @keyframes popIn {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .thankyou-popup h2 {
      margin-bottom: 10px;
      color: #e9eff7;
    }

    .thankyou-popup p {
      margin-bottom: 20px;
      font-size: 1rem;
      color: #eaeaea;
    }

    .thankyou-popup button {
      padding: 10px 20px;
      background: linear-gradient(135deg, #005bea, #3e7e90);
      border: none;
      color: rgb(85, 9, 9);
      font-size: 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .thankyou-popup button:hover {
      background: linear-gradient(135deg, #0041a8, #0095c8);
    }
/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .payment-page .checkout-container {
    flex-direction: column;
  }

  .payment-page .payment-logo {
    position: static;
    margin-bottom: 1rem;
    text-align: center;
  }

  .payment-page .payment-logo img {
    width: 100px;
  }

  .payment-page .payment-container h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle {
    display: block;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    border-radius: 10px;
    padding: 6px 10px;
  }
}
/* Responsiveness */
@media (max-width: 1024px) {
  .checkout-container {
    flex-direction: column;
  }
  .checkout-left,
  .payment-container {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}
