/* === VortexAI Theming & Motion (non-breaking) === */

/* 1) Font stack — Inter everywhere */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  /* 2) VortexAI color system (from logo) */
  --brand-900: #102791;   /* deep blue */
  --brand-700: #2246B1;   /* primary */
  --brand-500: #5C67C9;   /* indigo accent */
  --brand-300: #9F97DF;   /* lavender tint */
  --text-900:  #3A3F45;   /* neutral dark */
  --text-700:  #54585A;
  --surface:   #FCFDFC;   /* page bg */
  --muted:     #ECECEC;

  /* 3) Shadows */
  --shadow-soft: 0 6px 24px rgba(16, 39, 145, 0.08);
  --shadow-btn:  0 6px 16px rgba(34, 70, 177, 0.18);

  /* 4) Radii */
  --radius: 14px;

  /* 5) Timings */
  --t-fast: 120ms;
  --t-med:  220ms;
}

/* Global base */
html, body {
  font-family: var(--font-sans);
  color: var(--text-900);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* (Fix) Body is visible by default — no JS required */
body { opacity: 1; }

/* Focus styles (accessible, Vercel-like) */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons: subtle hover/press */
.button, .btn, button, input[type="submit"] {
  font-family: var(--font-sans);
  background: var(--brand-700);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-btn);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-med) ease;
  cursor: pointer;
}
.button:hover, .btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
}
.button:active, .btn:active, button:active, input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 70, 177, .18);
}
.button.secondary, .btn.secondary {
  background: white;
  color: var(--brand-700);
  border: 1px solid rgba(34, 70, 177, .2);
}

/* Links */
a {
  color: var(--brand-700);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) ease, box-shadow var(--t-med) ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,39,145,.10);
}

/* Inputs */
input, select, textarea {
  font-family: var(--font-sans);
  border-radius: 10px;
  border: 1px solid #D9DEEA;
  padding: 10px 12px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(92,103,201,.18);
}

/* Toasts (position-only; hook into whatever you already use) */
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: #101315;
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform var(--t-med) ease, opacity var(--t-med) ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Minimal spinner (vortex-colored) */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(34,70,177,.15);
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero Vortex logo (auto-injected by JS) */
.hero-vortex {
  display: grid;
  place-items: center;
  padding: 36px 12px;
}
.hero-vortex img { width: clamp(160px, 28vw, 320px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(16,39,145,.15));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-6px); }
}

/* Optional gradient utility (can be used for sections/headers) */
.bg-vortex {
  background: linear-gradient(135deg, var(--brand-700) 0%, #3A57C4 35%, var(--brand-300) 100%);
  color: white;
}

/* Keep existing header logos readable on mixed backgrounds if you add this class */
.header img.logo {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
  max-height: 40px;
}

/* Reduced motion: remove non-essential animations/transitions */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: none !important; }
}
