:root{
  --bg: #060913;
  --bg-2: #0b1220;
  --text: #e9f3ff;
  --muted: #a8c0e6;
  --accent: #00b2ff;
  --accent-2: #5af0ff;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --border: rgba(140,190,255,0.40);
  --shadow: 0 6px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(0, 180, 255, .65);
  --text-on-glass: #e9f3ff;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(2,6,23,.95) 0%, rgba(6,8,20,.9) 50%, rgba(2,6,23,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(0,180,255,.12), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(0,60,180,.15), transparent 28%);
  background-blend-mode: overlay, overlay, normal;
  font-size: clamp(14px, 2.2vw, 18px);
  display: block;
}

/* Subtle chrome marble feel via layered chrome-like sheen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 0%, rgba(255,255,255,.08), transparent 40%),
              radial-gradient(circle at 20% 30%, rgba(0,180,255,.10), transparent 25%),
              radial-gradient(circle at 90% 60%, rgba(0,0,0,.15), transparent 30%);
  mix-blend-mode: screen;
  opacity: .25;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .55;
}

/* Page structure */
header, nav, main, article, aside, section, footer { display: block; }

header {
  padding: 1.25rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

main { padding: 1rem 0; position: relative; z-index: 1; }

article { display: block; }

footer {
  padding: 1rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(480px, 88vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-on-glass, #e9f3ff);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.18); }
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  background: #0b0f14;
  display: block;
  margin: 0 auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Glass panels (fallback + backdrop-filter) */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(150, 180, 255, 0.38);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,0.18); }
}

/* Typography and hero hierarchy */
h1, h2, h3 { margin: 0 0 .5rem 0; }

h1 {
  font-size: clamp(1.6rem, 3vw + 1rem, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 0 10px rgba(0,180,255,.7);
  margin-bottom: .25rem;
}

/* Links, buttons, and CTAs */
a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  outline: none;
}

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

/* Focus management for accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Button variants */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(0,180,255,.65);
  background: linear-gradient(135deg, rgba(0,180,255,.95), rgba(0,120,255,.85));
  font-weight: 600;
  color: #001e2a;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,180,255,.85);
}
.btn + .btn { margin-left: .5rem; }

/* Form element styling (basic, matches theme) */
input, textarea, select {
  font: inherit;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(120,180,255,.6);
  background: rgba(255,255,255,.08);
  outline: none;
}
input::placeholder, textarea::placeholder { color: #a9b7d6; }

/* Lists (generic) */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Utility and layout helpers */
.container.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,180,255,.8);
  background: rgba(0,180,255,.15);
  color: var(--text);
}

/* Basic responsive tweaks */
@media (max-width: 640px) {
  .image-frame { border-radius: 10px; }
  header { padding: .75rem 0; }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .image-frame { page-break-inside: avoid; }
  a, button { color: #000; text-decoration: none; }
}
