/*
  ArchPF AI-Age Design System
  - Movement: Neo-futurist glass UI + electric accents
  - Principles: high contrast, subtle grain, soft glow, floating cards, crisp type
  - Accent: electric blue / digital violet
*/

:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: rgba(255,255,255,0.72);
  --panel-strong: rgba(255,255,255,0.88);
  --fg: #0b1020;
  --muted: rgba(11,16,32,0.65);
  --line: rgba(11,16,32,0.12);
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.18);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.14);
  --glow: 0 0 0 1px rgba(255,255,255,0.55) inset;
  --accent-a: #5b8cff;
  --accent-b: #b44cff;
}

.dark {
  color-scheme: dark;
  --bg: #070915;
  --panel: rgba(14, 16, 34, 0.55);
  --panel-strong: rgba(14, 16, 34, 0.78);
  --fg: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --line: rgba(255,255,255,0.14);
  --shadow: 0 18px 80px rgba(0,0,0,0.55);
  --shadow-soft: 0 10px 34px rgba(0,0,0,0.4);
  --glow: 0 0 0 1px rgba(255,255,255,0.08) inset;
  --accent-a: #4fd1ff;
  --accent-b: #a855f7;
}

/* Background atmosphere */
.aura {
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(79,209,255,0.22), transparent 60%),
    radial-gradient(900px 700px at 90% 30%, rgba(168,85,247,0.18), transparent 55%),
    radial-gradient(900px 700px at 40% 110%, rgba(91,140,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
}

.dark .aura {
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(79,209,255,0.18), transparent 60%),
    radial-gradient(900px 700px at 90% 30%, rgba(168,85,247,0.18), transparent 55%),
    radial-gradient(900px 700px at 40% 110%, rgba(91,140,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

/* Grain (subtle) */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Glass surfaces */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft), var(--glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-strong {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gradient button */
.btn-grad {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 40px rgba(91,140,255,0.25);
}

.btn-grad:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-glass {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg);
}

.dark .btn-glass { background: rgba(255,255,255,0.06); }

/* Floating cards */
.card-float {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dark .card-float { background: rgba(14,16,34,0.62); }

.card-float:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(168,85,247,0.35);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Focus ring */
.u-focus:focus {
  outline: 3px solid rgba(79,209,255,0.55);
  outline-offset: 3px;
}

/* Small helpers */
.text-muted { color: var(--muted); }
.hr-soft { height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.20), rgba(255,255,255,0)); }
.dark .hr-soft { background: linear-gradient(to right, rgba(255,255,255,0.18), rgba(255,255,255,0)); }
