:root {
  --bg: #0b1038;
  --bg-soft: #11184f;
  --card: rgba(255, 255, 255, 0.05);
  --text: #f7f7fb;
  --muted: #cfd5f1;
  --accent: #4ee2f0;
  --accent-warm: #ff9a22;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  --radius: 24px;
  --max: 1080px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(78, 226, 240, 0.10), transparent 30%),
    linear-gradient(180deg, #091133 0%, var(--bg) 45%, #070b29 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("img/bg.webp");
  background-repeat: repeat;
  background-size: 360px auto;
  opacity: 0.16;
  transform: scale(1.03);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 17, 51, 0.78), rgba(11, 16, 56, 0.86) 45%, rgba(7, 11, 41, 0.92));
  pointer-events: none;
  z-index: 0;
}

main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 56px 0 36px;
}

.hero-card,
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 32px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 34, 0.35), transparent 70%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand-logo {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 14px;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.socials {
  display: grid;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.social-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-name {
  font-weight: 700;
}

.social-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 0 0 28px;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

.section-card {
  padding: 32px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title-centered {
  text-align: center;
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.manifesto-image {
  width: min(100%, 860px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(78, 226, 240, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.manifesto-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.manifesto-text {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.manifesto-body {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.manifesto-body .section-title {
  margin: 14px 0 26px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.manifesto-body p {
  line-height: 1.8;
}

.manifesto-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.book-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.book-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-meta {
  display: grid;
  gap: 8px;
}

.book-meta h4 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.book-author {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.contact {
  text-align: center;
  padding: 24px 0 56px;
}

.contact-card {
  display: inline-block;
  padding: 24px 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-card a {
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}

footer {
  padding: 0 0 36px;
  text-align: center;
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .books {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .books {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: min(100%, 460px);
  }

  body::before {
    background-size: 240px auto;
    opacity: 0.13;
  }

  .hero-card,
  .section-card {
    padding: 24px;
  }
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.social-link:focus-visible,
.contact-card a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .social-link {
    transition: none;
  }
}
