/* ============================================================
   booleanhearts.ru — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&family=Space+Mono:wght@400;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --bg3: #12121f;
  --purple: #7b2fff;
  --purple-dim: rgba(123,47,255,.15);
  --cyan: #00ffcc;
  --cyan-dim: rgba(0,255,204,.1);
  --pink: #ff2d78;
  --text: #c8c8d8;
  --text-bright: #eeeef8;
  --text-muted: #666680;
  --border: rgba(255,255,255,.07);
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: var(--purple); color: #fff; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,7,15,.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav.scrolled {
  padding: .9rem 2rem;
  background: rgba(7,7,15,.95);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: .05em;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(123,47,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(0,255,204,.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255,45,120,.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}

.hero-title .accent { color: var(--purple); }
.hero-title .accent2 { color: var(--cyan); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

.btn {
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px rgba(123,47,255,.4);
}

.btn-primary:hover {
  background: #9045ff;
  color: #fff;
  box-shadow: 0 0 36px rgba(123,47,255,.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
}

/* ── Sections ────────────────────────────────────────────── */
section { padding: 6rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--purple);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  margin-bottom: 3rem;
  border-radius: 2px;
}

/* ── About ───────────────────────────────────────────────── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(.3) brightness(.9);
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.about-image-placeholder svg {
  width: 60%;
  opacity: .4;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  z-index: -1;
  opacity: .25;
  filter: blur(20px);
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Music ───────────────────────────────────────────────── */
#music { background: var(--bg); }

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

.release-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.release-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123,47,255,.2);
}

.release-cover {
  aspect-ratio: 1;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.release-cover-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .1em;
}

.release-cover-art.art-1 { background: linear-gradient(135deg, #1a0535, #0a1a2e, #001a15); }
.release-cover-art.art-2 { background: linear-gradient(135deg, #0a1a2e, #1a0535, #2e0015); }
.release-cover-art.art-3 { background: linear-gradient(225deg, #001a15, #0a0035, #1a0a00); }
.release-cover-art.art-4 { background: linear-gradient(315deg, #0d0026, #001a26, #1a000d); }
.release-cover-art.art-5 { background: linear-gradient(45deg, #0a001a, #001a0a, #1a1a00); }
.release-cover-art.art-6 { background: radial-gradient(ellipse at 30% 30%, #1a0035 0%, #001326 60%, #000 100%); }

.release-cover-art .art-symbol {
  font-size: 3.5rem;
  opacity: .35;
  filter: drop-shadow(0 0 20px currentColor);
}

.art-1 .art-symbol { color: var(--purple); }
.art-2 .art-symbol { color: var(--pink); }
.art-3 .art-symbol { color: var(--cyan); }
.art-4 .art-symbol { color: var(--purple); }
.art-5 .art-symbol { color: var(--cyan); }
.art-6 .art-symbol { color: var(--pink); }

.release-info { padding: 1.25rem; }

.release-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .25rem;
}

.release-meta {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.release-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.tag {
  font-size: .65rem;
  font-family: var(--font-mono);
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tag-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(123,47,255,.2); }
.tag-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,255,204,.2); }
.tag-pink { background: rgba(255,45,120,.1); color: var(--pink); border: 1px solid rgba(255,45,120,.2); }

/* ── Instruments ─────────────────────────────────────────── */
#instruments { background: var(--bg2); }

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.instrument-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition);
}

.instrument-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
}

.instrument-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--bg2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.instrument-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .35rem;
}

.instrument-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Genres ──────────────────────────────────────────────── */
#genres { background: var(--bg); }

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.genre-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.genre-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}

.genre-card.g-ambient::before { background: linear-gradient(to right, var(--cyan), var(--purple)); }
.genre-card.g-idm::before { background: linear-gradient(to right, var(--purple), var(--pink)); }
.genre-card.g-drone::before { background: linear-gradient(to right, var(--cyan), #00aaff); }
.genre-card.g-techno::before { background: linear-gradient(to right, var(--pink), var(--purple)); }
.genre-card.g-generative::before { background: linear-gradient(to right, #00ffaa, var(--cyan)); }
.genre-card.g-noise::before { background: linear-gradient(to right, var(--pink), #ff8800); }

.genre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.genre-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: .75rem;
}

.genre-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.genre-artists {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.genre-artists span { color: var(--cyan); }

/* ── Live ────────────────────────────────────────────────── */
#live { background: var(--bg2); }

.shows-list { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; }

.show-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
}

.show-item:hover {
  border-color: var(--purple);
  background: var(--bg3);
}

.show-date {
  font-family: var(--font-mono);
  text-align: center;
}

.show-date .day {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  display: block;
}

.show-date .month {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.show-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .25rem;
}

.show-venue { font-size: .85rem; color: var(--text-muted); }

.show-badge {
  font-size: .7rem;
  font-family: var(--font-mono);
  padding: .3rem .75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.badge-past { background: rgba(255,255,255,.05); color: var(--text-muted); }
.badge-private { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(123,47,255,.3); }

/* ── Blog Preview ────────────────────────────────────────── */
#blog-preview { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.post-thumb {
  height: 160px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumb-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: .25;
}

.post-thumb-art.t1 { background: linear-gradient(135deg, #0a0020, #001020); }
.post-thumb-art.t2 { background: linear-gradient(135deg, #001020, #0a0020); }
.post-thumb-art.t3 { background: linear-gradient(225deg, #001a15, #0a0020); }

.post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.post-cat { color: var(--purple); }

.post-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .75rem;
  line-height: 1.4;
}

.post-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.post-link:hover { color: var(--purple); }

/* ── Contact ─────────────────────────────────────────────── */
#contact { background: var(--bg2); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-note {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.contact-link-icon { font-size: 1.25rem; }
.contact-link-name { font-family: var(--font-head); font-weight: 600; }
.contact-link-sub { font-size: .8rem; color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-label {
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.footer-logo span { color: var(--cyan); }

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Noise overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .018;
  pointer-events: none;
  z-index: 9999;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

.fade-in { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 64px;
    background: var(--bg);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
    align-items: center;
    justify-content: center;
  }
  .nav-links.open a { font-size: 1.25rem; }
  .nav-burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-placeholder { aspect-ratio: 1; }
  .about-stats { grid-template-columns: repeat(3,1fr); }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  .show-item { grid-template-columns: 60px 1fr; }
  .show-badge { display: none; }

  section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .releases-grid { grid-template-columns: 1fr 1fr; }
}
