/* AMBIE brand stylesheet — extracted from site/index.html so all pages
 * (signup, account, pricing, docs) share the same look as the homepage.
 *
 * Palette:
 *   Background:     #0A0A0A near-black
 *   Surface:        #111111 card / panel
 *   Surface light:  #151515 nav / footer
 *   Accent purple:  #8B5CF6
 *   Accent blue:    #3B82F6
 *   Text primary:   #FAFAFA
 *   Text muted:     rgba(255,255,255,0.7)
 *   Text subtle:    rgba(255,255,255,0.5)
 *
 * Tailwind CDN is still loaded on each page; this file is the BRAND layer
 * on top of that — gradients, glow, animations, glass surfaces.
 */

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -40px) scale(1.05); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 30px) scale(1.1); }
}

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Brand surfaces ---------- */

body.ambie-body {
  background: #0A0A0A;
  color: #FAFAFA;
  font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.gradient-text {
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

.animated-gradient-bg {
  background: linear-gradient(270deg, #0A0A0A, #1a0a1f, #0a1a2e, #0A0A0A);
  background-size: 800% 800%;
  animation: gradient-shift 15s ease infinite;
}

.mesh-bg {
  background:
    radial-gradient(at 27% 37%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 97% 21%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 52% 99%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
    radial-gradient(at 10% 29%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(139, 92, 246, 0.04) 0px, transparent 50%);
}

/* Glass cards (panels with subtle blur + border) */
.glass-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Gradient-bordered cards for hero / featured sections */
.gradient-border {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
  background-size: 200% 200%;
  animation: border-flow 3s ease infinite;
  padding: 2px;
  border-radius: 1rem;
}
.gradient-border > * {
  background: #111111;
  border-radius: calc(1rem - 2px);
}

/* ---------- Floating orbs ---------- */

.orbs-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.2));
  filter: blur(60px);
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
  opacity: 0.6;
}
.floating-orb-slow { animation: float-slow 7s ease-in-out infinite; }
.orb-1 { width: 250px; height: 250px; top: 10%;  left: 10%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; top: 50%;  right: 10%; animation-delay: 1s; }
.orb-3 { width: 200px; height: 200px; bottom: 20%; left: 30%; animation-delay: 2s; }
.orb-4 { width: 280px; height: 280px; top: 30%;  right: 30%; animation-delay: 3s; }

/* ---------- Glow + hover ---------- */

.glow-purple { box-shadow: 0 0 20px rgba(139, 92, 246, 0.18); }
.glow-blue   { box-shadow: 0 0 20px rgba(59, 130, 246, 0.18); }

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.3);
}

.backdrop-blur-glass {
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ---------- Buttons ---------- */

.animated-gradient-button {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6, #8B5CF6);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4),
              0 10px 30px rgba(0, 0, 0, 0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ---------- Inputs ---------- */

.brand-input,
input[type="text"].brand-input,
input[type="email"].brand-input,
input[type="tel"].brand-input,
input[type="number"].brand-input,
input[type="password"].brand-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
}
.brand-input:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.brand-input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Code-input style for SMS verify */
.code-input {
  font-size: 2rem;
  letter-spacing: 0.75rem;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 1rem;
}

/* ---------- Preview banner ----------
 * Sits above the sticky nav; scrolls away on long pages. The visual anchor
 * is the "PREVIEW" pill on the left — the rest of the line is intentionally
 * de-emphasized so the banner doesn't compete with the nav below it.
 */

.preview-banner {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.5)),
    linear-gradient(90deg, rgba(139, 92, 246, 0.10), rgba(59, 130, 246, 0.10));
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78125rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 49;
  letter-spacing: 0.005em;
}

.preview-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.preview-banner .preview-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  vertical-align: 1px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

.preview-banner strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.preview-banner a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(139, 92, 246, 0.6);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.preview-banner a:hover {
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.preview-banner-text {
  display: inline;
}

/* On narrow screens, hide the long disclosure and let the badge + link carry it. */
@media (max-width: 640px) {
  .preview-banner-text { display: none; }
  .preview-banner-inner { gap: 0.5rem; }
}

/* ---------- Nav ---------- */

.brand-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-nav .brand-mark {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.brand-nav .nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.brand-nav .nav-links a:hover { color: white; }
.brand-nav .nav-links a.active { color: white; }
.brand-nav .nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: white !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  color: white !important;
}

/* ---------- Footer ---------- */

.brand-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}
.brand-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.brand-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.brand-footer a:hover { color: white; }

/* ---------- Page step indicator (signup flow) ---------- */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.step-indicator .step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.step-indicator .step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step-indicator .step-active .step-num {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.step-indicator .step-active .step-label {
  color: white;
  font-weight: 500;
}
.step-indicator .step-done .step-num {
  background: #10b981;
  color: white;
}
.step-indicator .step-done .step-label {
  color: rgba(255, 255, 255, 0.7);
}
.step-indicator .step-future .step-num {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.step-indicator .step-future .step-label {
  color: rgba(255, 255, 255, 0.5);
}
.step-indicator .step-arrow { color: rgba(255, 255, 255, 0.25); }

/* ---------- Misc ---------- */

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3), transparent);
  margin: 2rem 0;
}

.fade-in {
  animation: fade-up 0.6s ease-out both;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .floating-orb,
  .animated-gradient-bg,
  .animated-gradient-button,
  .gradient-border {
    animation: none;
  }
}

/* Tables (used on /pricing) */
.brand-table {
  width: 100%;
  border-collapse: collapse;
}
.brand-table th,
.brand-table td {
  padding: 0.875rem 1rem;
  text-align: left;
}
.brand-table thead {
  background: rgba(139, 92, 246, 0.08);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.brand-table thead th {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.brand-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
}
.brand-table tbody tr:hover {
  background-color: rgba(139, 92, 246, 0.04);
}
.brand-table .price {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #10b981;
  font-weight: 500;
}
