/* ==========================================================================
   NEON-THEME.CSS
   Colors, header, footer, marketing pages, forms
   ========================================================================== */

/* --- Theme variables --- */

:root {
  --bg-main: #020617;
  --bg-main-alt: #02091a;
  --bg-card: #020b26;
  --bg-soft: #020717;

  --border-subtle: rgba(148, 163, 184, 0.35);
  --border-strong: rgba(148, 163, 184, 0.6);

  --text-primary: #e5e7eb;
  --text-soft: #cbd5f5;
  --text-muted: #9ca3af;

  --primary: #22d3ee;
  /* cyan */
  --primary-soft: rgba(34, 211, 238, 0.18);
  --primary-strong: #06b6d4;
  --accent: #6366f1;
  /* indigo */
  --danger: #f97373;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.85);
  --shadow-neon: 0 0 26px rgba(34, 211, 238, 0.55);

  --radius-md: 0.9rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;
}

/* --- Global body / background --- */

body {
  background: radial-gradient(circle at top, #020c24, #020617 52%, #020013);
  color: var(--text-primary);
}

/* Text helpers override */
.text-muted {
  color: var(--text-muted);
  opacity: 1;
}

/* --- Header / Nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.94),
      rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Brand */

.brand,
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #22d3ee 55%, #020617);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.9),
    0 0 20px rgba(34, 211, 238, 0.8),
    0 0 35px rgba(34, 211, 238, 0.7),
    0 0 65px rgba(34, 211, 238, 0.7) !important;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔥 ADD THIS */
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* optional extra safety */
  border-radius: 999px;
}



.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-main {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Nav links */

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-soft);
  position: relative;
  padding-block: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition:
    width 0.18s ease-out,
    opacity 0.18s ease-out;
}

.nav-link:hover {
  color: #f9fafb;
}

.nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header buttons themed */

.btn-neon {
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #020617;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-neon);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Hero / landing --- */

.hero-section {
  padding-top: 3.2rem;
  padding-bottom: 4.2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-title {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}

.text-neon {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.hero-subtitle {
  color: var(--text-soft);
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-metrics {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 1.2rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.92rem;
}

/* Hero preview card */

.hero-preview {
  position: relative;
}

.preview-card {
  border-radius: 1.4rem;
  padding: 1.1rem 1.15rem;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.15), transparent 50%),
    linear-gradient(140deg, #020b26, #020617);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.preview-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
}

.preview-status-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.preview-body {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.98);
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.preview-msg {
  border-radius: 0.9rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.user-msg {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
}

.ai-msg {
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), #020617);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.38);
}

.msg-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.preview-steps {
  margin: 0.2rem 0 0.35rem;
  padding-left: 1.1rem;
}

.preview-steps li {
  margin-bottom: 0.15rem;
}

.preview-highlight {
  margin-top: 0.1rem;
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.83rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.6);
}

.preview-footer {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preview-tag {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
}

.preview-tag-accent {
  border-color: rgba(34, 211, 238, 0.9);
  color: var(--primary);
}

/* --- Features, how it works, pricing teaser --- */

.section {
  background: transparent;
}

.section-alt {
  background: radial-gradient(circle at top, #020b24, #020617);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.06), #020b26);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
}

.feature-badge {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Plan cards */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.plan-card {
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.2rem;
  background: #02091a;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.plan-card-free {
  border-style: dashed;
}

.plan-card-pro {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.plan-card h2 {
  margin-bottom: 0.4rem;
}

.plan-price {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.plan-price-main {
  font-size: 1.1rem;
  font-weight: 600;
}

.plan-price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #22d3ee 55%, #020617);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #020617;
}


.plan-list {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

/* --- Pricing page toggle --- */

.billing-toggle {
  border-radius: 999px;
  padding: 0.18rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  gap: 0.2rem;
}

.toggle-btn {
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.toggle-btn-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  box-shadow: var(--shadow-neon);
}

/* --- Inputs styled for dark theme --- */

.input {
  background: rgba(15, 23, 42, 0.96);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.input-error {
  color: var(--danger);
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

.footer-left {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-link {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-link:hover {
  color: var(--primary);
}

/* --- Auth cards background --- */

.page-auth {
  background: radial-gradient(circle at top, #020c24, #020617);
}

.auth-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Neon glow specifically for "Open app" button in header */
#nav-app-link {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(15, 23, 42, 0.9);

  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.9),
    0 0 22px rgba(34, 211, 238, 0.8),
    0 0 40px rgba(34, 211, 238, 0.7);
}

/* Stronger glow on hover */
#nav-app-link:hover {
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #020617 !important;

  box-shadow:
    0 0 12px rgba(34, 211, 238, 1),
    0 0 26px rgba(34, 211, 238, 0.95),
    0 0 48px rgba(34, 211, 238, 0.85);
}


/* --- Responsive theme tweaks --- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-preview {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-main {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-section {
    padding-top: 2.4rem;
    padding-bottom: 3rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-main {
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}