/* OUTSTAND shared visual foundation — phase one */
:root {
  --outstand-shadow-soft: 0 18px 60px rgba(0,0,0,.18);
  --outstand-shadow-card: 0 24px 80px rgba(0,0,0,.22);
  --outstand-border: rgba(255,255,255,.10);
  --outstand-focus: rgba(103,232,249,.82);
}

html { text-rendering: optimizeLegibility; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in oklab, var(--outstand-focus) 76%, transparent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.outstand-surface { border: 1px solid var(--outstand-border); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: var(--outstand-shadow-soft); backdrop-filter: blur(18px); }
.outstand-surface-strong { border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: var(--outstand-shadow-card); backdrop-filter: blur(24px); }
.outstand-interactive { transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .22s ease, box-shadow .22s ease, background-color .22s ease; }
@media (hover:hover) and (pointer:fine) {
  .outstand-interactive:hover { transform: translateY(-2px); border-color: rgba(103,232,249,.2); box-shadow: 0 18px 60px rgba(0,0,0,.24), 0 0 30px rgba(34,211,238,.06); }
}
.outstand-interactive:active { transform: translateY(0) scale(.99); }
.outstand-page-bg { background: radial-gradient(circle at 12% 0%, rgba(34,211,238,.07), transparent 30%), radial-gradient(circle at 88% 8%, rgba(168,85,247,.065), transparent 28%), #050816; }

/* Dark-mode readability guardrails. */
html.dark .text-slate-600 { color: #94a3b8 !important; }
html.dark .text-slate-500 { color: #a5b4c5 !important; }
html.dark .text-slate-400 { color: #b8c4d3 !important; }
html.dark .text-slate-700 { color: #9aaabd !important; }
html.dark .placeholder\\:text-slate-700::placeholder { color: #8fa0b5 !important; opacity: 1; }
html.dark .placeholder\\:text-slate-600::placeholder { color: #9aaabd !important; opacity: 1; }
html.dark [class*="text-white/"] { color: rgba(255,255,255,.80) !important; }
html.dark [class*="text-slate-800"] { color: #cbd5e1 !important; }
html.dark [class*="text-slate-900"] { color: #e2e8f0 !important; }
html.dark [class*="text-\\[8px\\]"] { letter-spacing: .11em; }
html.dark [class*="text-\\[9px\\]"] { letter-spacing: .10em; }

/* Improve disabled states without making text disappear. */
html.dark button:disabled, html.dark [role="button"][aria-disabled="true"] { color: #7f8ea3; }
html.dark input:disabled, html.dark select:disabled, html.dark textarea:disabled { color: #a7b3c2; }

/* Prevent common glass layouts from clipping long product copy. */
.outstand-copy-safe { min-width: 0; overflow-wrap: anywhere; }
.outstand-muted { color: #a5b4c5; }

/* Light mode */
html:not(.dark) {
  --outstand-shadow-soft: 0 12px 32px rgba(15,23,42,.07);
  --outstand-shadow-card: 0 20px 48px rgba(15,23,42,.09);
  --outstand-border: rgba(15,23,42,.10);
  --background: oklch(0.985 0 0); --foreground: oklch(0.16 0.01 258);
  --surface-1: oklch(1 0 0); --surface-2: oklch(0.975 0 0); --surface-3: oklch(0.945 0 0); --surface-4: oklch(0.91 0 0);
  --card: oklch(1 0 0); --card-foreground: oklch(0.16 0.01 258); --popover: oklch(1 0 0); --popover-foreground: oklch(0.16 0.01 258);
  --primary: oklch(0.19 0.015 258); --primary-foreground: oklch(0.99 0 0); --primary-glow: oklch(0.25 0.02 258 / 0.10);
  --secondary: oklch(0.95 0 0); --secondary-foreground: oklch(0.20 0.01 258); --muted: oklch(0.95 0 0); --muted-foreground: oklch(0.46 0.015 258);
  --accent: oklch(0.94 0 0); --accent-foreground: oklch(0.16 0.01 258); --border: oklch(0.88 0.005 258); --input: oklch(0.88 0.005 258); --ring: oklch(0.25 0.02 258);
  --gradient-primary: linear-gradient(135deg, oklch(0.16 0.01 258), oklch(0.30 0.015 258));
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #fafafa 52%, #f4f4f5 100%); --gradient-card: linear-gradient(160deg, #ffffff 0%, #fafafa 100%);
  --shadow-elegant: 0 20px 50px -20px rgba(15,23,42,.12); --shadow-glow: 0 12px 32px rgba(15,23,42,.10); --shadow-soft: 0 8px 24px -10px rgba(15,23,42,.08);
  --outstand-focus: rgba(15,23,42,.82);
}
html:not(.dark) .outstand-surface { border-color: rgba(15,23,42,.09); background: #fff; box-shadow: var(--outstand-shadow-soft); backdrop-filter: blur(12px); }
html:not(.dark) .outstand-surface-strong { border-color: rgba(15,23,42,.11); background: #fff; box-shadow: var(--outstand-shadow-card); }
html:not(.dark) .outstand-page-bg { background: linear-gradient(180deg, #fff 0%, #fafafa 55%, #f4f4f5 100%); }
html:not(.dark) [class*="text-cyan-"], html:not(.dark) [class*="text-blue-"], html:not(.dark) [class*="text-indigo-"], html:not(.dark) [class*="text-violet-"] { color: var(--foreground) !important; }
html:not(.dark) [class*="bg-cyan-"], html:not(.dark) [class*="bg-blue-"], html:not(.dark) [class*="bg-indigo-"], html:not(.dark) [class*="bg-violet-"] { background-color: rgba(15,23,42,.045) !important; background-image: none !important; }
html:not(.dark) [class*="border-cyan-"], html:not(.dark) [class*="border-blue-"], html:not(.dark) [class*="border-indigo-"], html:not(.dark) [class*="border-violet-"] { border-color: rgba(15,23,42,.12) !important; }
html:not(.dark) [class*="hover:bg-cyan-"]:hover, html:not(.dark) [class*="hover:bg-blue-"]:hover, html:not(.dark) [class*="hover:bg-indigo-"]:hover, html:not(.dark) [class*="hover:bg-violet-"]:hover { background-color: rgba(15,23,42,.08) !important; }
html:not(.dark) [class*="hover:text-cyan-"]:hover, html:not(.dark) [class*="hover:text-blue-"]:hover, html:not(.dark) [class*="hover:text-indigo-"]:hover, html:not(.dark) [class*="hover:text-violet-"]:hover { color: var(--foreground) !important; }
html:not(.dark) [class*="from-cyan-"], html:not(.dark) [class*="from-blue-"], html:not(.dark) [class*="from-indigo-"], html:not(.dark) [class*="from-violet-"], html:not(.dark) [class*="via-cyan-"], html:not(.dark) [class*="via-blue-"], html:not(.dark) [class*="via-indigo-"], html:not(.dark) [class*="via-violet-"], html:not(.dark) [class*="to-cyan-"], html:not(.dark) [class*="to-blue-"], html:not(.dark) [class*="to-indigo-"], html:not(.dark) [class*="to-violet-"] { --tw-gradient-from: #18181b !important; --tw-gradient-via: #52525b !important; --tw-gradient-to: #d4d4d8 !important; }
html:not(.dark) .outstand-dashboard { background: var(--gradient-hero) !important; color: var(--foreground) !important; }
html:not(.dark) .outstand-dashboard .text-white { color: var(--foreground) !important; }
html:not(.dark) .outstand-dashboard .text-slate-100 { color: var(--foreground) !important; }
html:not(.dark) .outstand-dashboard .text-slate-200 { color: oklch(0.22 0.01 258) !important; }
html:not(.dark) .outstand-dashboard .text-slate-300 { color: oklch(0.30 0.01 258) !important; }
html:not(.dark) .outstand-dashboard .text-slate-400, html:not(.dark) .outstand-dashboard .text-slate-500, html:not(.dark) .outstand-dashboard .text-slate-600, html:not(.dark) .outstand-dashboard .text-slate-700 { color: var(--muted-foreground) !important; }
html:not(.dark) .outstand-dashboard [class*="border-white/"] { border-color: var(--border) !important; }
html:not(.dark) .outstand-dashboard [class*="bg-white/[0."] { background-color: rgba(15,23,42,.035) !important; }
html:not(.dark) .outstand-dashboard [class*="bg-slate-800"], html:not(.dark) .outstand-dashboard [class*="bg-slate-900"] { background-color: var(--surface-2) !important; background-image: none !important; }
html:not(.dark) .glass-card { border-color: rgba(15,23,42,.10) !important; background: #fff !important; box-shadow: var(--outstand-shadow-soft) !important; color: var(--foreground); }
html:not(.dark) .glass-card [class*="bg-white/"] { background-color: rgba(15,23,42,.035) !important; }
html:not(.dark) .glass-card [class*="border-white/"] { border-color: rgba(15,23,42,.09) !important; }
html:not(.dark) .glass-card [class*="bg-slate-800"], html:not(.dark) .glass-card [class*="bg-slate-900"] { background-color: var(--surface-2) !important; background-image: none !important; }
html:not(.dark) .glass-card [class*="hover:bg-slate-800"]:hover, html:not(.dark) .glass-card [class*="hover:bg-slate-900"]:hover { background-color: var(--surface-3) !important; }
html:not(.dark) .glass-card [class*="text-white"] { color: var(--foreground) !important; }
html:not(.dark) [class*="bg-[#05070d]"], html:not(.dark) [class*="bg-[#020617]"], html:not(.dark) [class*="bg-[#07101f]"], html:not(.dark) [class*="bg-slate-950"], html:not(.dark) [class*="bg-slate-900"] { background-color: var(--surface-1) !important; background-image: none !important; }
html:not(.dark) [class*="bg-black/"] { background-color: rgba(15,23,42,.045) !important; }
html:not(.dark) [class*="border-white/"] { border-color: var(--border) !important; }
html:not(.dark) [class*="hover:text-white"]:hover { color: var(--foreground) !important; }
html:not(.dark) [class*="hover:bg-white"]:hover { background-color: #f4f4f5 !important; }
html:not(.dark) .group:focus-within > .flex.opacity-0 { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .outstand-interactive:hover { transform: none; }
}
@media (max-width: 640px) { .outstand-surface, .outstand-surface-strong { backdrop-filter: blur(10px); } }
