/* ============================================
   HeNåAnne — Public Website Styles
   henaanne.com
   Dark Sci-Fi Psychedelic Art Universe
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Core palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --bg-glass: rgba(20, 20, 20, 0.85);

  /* Neon acid green accent */
  --accent-primary: #95ff00;
  --accent-glow: rgba(149, 255, 0, 0.3);
  --accent-subtle: rgba(149, 255, 0, 0.08);
  --accent-muted: #6ba300;
  --accent-olive: #5c7a2e;

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --text-dim: #484848;

  /* UI */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(149, 255, 0, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(149, 255, 0, 0.06);

  /* Spacing */
  --max-width: 960px;
  --section-gap: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Subtle background texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(149, 255, 0, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(149, 255, 0, 0.015) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4em;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

p { margin-bottom: 1em; font-weight: 300; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #b8ff4d;
  text-shadow: 0 0 20px var(--accent-glow);
}

ul, ol { margin: 1em 0 1em 1.5em; }
li { margin-bottom: 0.5em; }

strong { color: var(--text-primary); font-weight: 500; }

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 4em 0;
}

/* --- Logo --- */
.site-logo {
  display: block;
  max-width: 100%;
  width: 320px;
  height: auto;
  margin: 0 auto 16px;
  /* Kill baked-in white background via multiply blend on dark bg */
  mix-blend-mode: multiply;
  filter: brightness(1.2) contrast(1.1);
}

/* Smaller logo on legal pages */
.legal-page .site-logo {
  width: 180px;
}

/* --- Header --- */
.site-header {
  position: relative;
  padding: 80px 0 56px;
  text-align: center;
  overflow: hidden;
}

/* Geometric line decoration behind header */
.site-header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background:
    radial-gradient(circle at 50% 100%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.12;
  pointer-events: none;
}

/* Thin neon horizontal line under header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.3;
}

/* Fallback text logo — shown if image fails to load */
.site-header h1 {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3em;
  position: relative;
  display: inline-block;
}

.site-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--accent-primary);
  filter: blur(4px);
  opacity: 0.4;
}

.site-header .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.site-nav li { margin: 0; }

.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 0;
  position: relative;
  transition: all 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-glow);
}

.site-nav a:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

/* Ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background:
    radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.hero h2 {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Subtle geometric line frames around hero text */
.hero h2::before,
.hero h2::after {
  content: '───';
  color: var(--accent-primary);
  opacity: 0.2;
  font-size: 1rem;
  letter-spacing: 1em;
  display: block;
  margin: 12px 0;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5em;
  font-weight: 300;
  line-height: 1.8;
}

.hero .cta-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary) !important;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #aaff1a;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary) !important;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  box-shadow: 0 0 20px var(--accent-glow);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

/* --- Content Sections --- */
.content-section {
  position: relative;
  padding: 60px 0 80px;
}

.content-section h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

/* Thin neon accent line under section headings */
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Links Grid (Card Style) --- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.links-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle glow on hover for cards */
.links-grid a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.links-grid a:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.links-grid a:hover::before {
  opacity: 1;
}

.links-grid .icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.links-grid a:hover .icon {
  border-color: var(--border-accent);
  background: var(--accent-subtle);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 60px 0 100px;
}

.legal-page header {
  margin-bottom: 3em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page header h1 {
  font-size: 2.5rem;
}

.legal-page header .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

.legal-page .md-source-link {
  display: inline-block;
  margin-top: 2em;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.legal-page .md-source-link:hover {
  border-color: var(--border-accent);
  color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Thin neon line above footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.15;
}

.site-footer a {
  color: var(--text-muted);
  position: relative;
}

.site-footer a:hover {
  color: var(--accent-primary);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }

  .site-header { padding: 40px 0 32px; }
  .site-header h1 { font-size: 2.5rem; }

  .site-nav ul { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 0.75rem; letter-spacing: 0.08em; }

  .hero { padding: 60px 0 48px; }
  .hero h2 { font-size: 1.6rem; }
  .hero h2::before,
  .hero h2::after { font-size: 0.7rem; letter-spacing: 0.5em; }
  .hero p { font-size: 1rem; }

  .links-grid { grid-template-columns: 1fr; }

  .content-section { padding: 40px 0 60px; }
  .content-section h2::after { width: 40px; }
}

/* --- Decorative geometric corner elements --- */
.geo-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-accent);
  opacity: 0.1;
  pointer-events: none;
}

.geo-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.geo-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.geo-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.geo-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }
