:root {
  --accent: #bc0054;
  --text: #222222;
  --muted: #5c5c5c;
  --light: #ffffff;
  --border: #ececec;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at -10% -10%, #6a2f49 0%, rgba(106, 47, 73, 0) 58%),
    radial-gradient(1100px 540px at 110% 0%, #233a58 0%, rgba(35, 58, 88, 0) 56%),
    linear-gradient(145deg, #1f1f26 0%, #24222e 45%, #1a1a22 100%);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  line-height: 1.6;
}

.site-shell {
  max-width: 1200px;
  margin: 28px auto;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3)),
    url("./assets/images/bg-hero.jpg") center center / cover no-repeat;
  filter: saturate(1.08);
  transform: scale(1.03);
  animation: hero-pan 15s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes hero-pan {
  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.07) translateX(-0.6%);
  }
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: #111111;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

.menu-toggle {
  display: none;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #2b2b2b;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.menu-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-links a {
  color: #2b2b2b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  color: var(--accent);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 640px;
  padding: 66px 0 78px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.book-column {
  display: flex;
  justify-content: center;
}

.book-link {
  display: block;
  perspective: 1300px;
}

.book-frame {
  position: relative;
  width: min(310px, 100%);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.22));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.book-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(0, 0, 0, 0.35));
  opacity: 0.5;
}

.book-cover {
  display: block;
  border-radius: 4px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  will-change: transform;
}

.book-cover img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .book-link:hover .book-frame,
  .book-link:focus-visible .book-frame {
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
  }

  .book-link:hover .book-cover,
  .book-link:focus-visible .book-cover {
    filter: brightness(1.03);
    transform: rotateY(-18deg);
  }
}

.copy-column h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
}

.copy-column p {
  margin: 0 0 18px;
  font-size: 1.03rem;
}

.price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.button {
  display: inline-block;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 11px 24px;
  border-radius: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

section {
  scroll-margin-top: 100px;
}

.inspired-section {
  position: relative;
  color: #ffffff;
  padding: 84px 0;
  background: #1b1b1b url("./assets/images/bg-feature.jpg") center center / cover no-repeat fixed;
}

.inspired-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.inspired-section .container {
  position: relative;
  z-index: 1;
}

h2 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
}

.sub-title {
  margin: 10px 0 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.feature-card .icon {
  font-size: 1.7rem;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.devices-section {
  padding: 86px 0;
  background: #f8f8f8;
}

.devices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.devices-art {
  position: relative;
  min-height: 360px;
}

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

.device-main {
  width: 90%;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.device-sub {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 78%;
  border-radius: 8px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.24);
}

.devices-copy h2 {
  text-align: left;
  margin-bottom: 20px;
}

.devices-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.devices-copy li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 26px;
  color: var(--muted);
}

.devices-copy li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.author-section {
  padding: 86px 0;
  background: #ffffff;
}

.author-section .sub-title {
  color: #8f8f8f;
}

.author-copy {
  max-width: 940px;
  margin: 0 auto;
  color: #4e4e4e;
  font-size: 1.03rem;
}

.author-copy p {
  margin: 0 0 16px;
}

.section-footer {
  border-top: 1px solid #ececec;
  background: #f5f5f5;
  color: #6b6b6b;
  font-size: 0.95rem;
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 42px;
    min-height: 0;
  }

  .book-frame {
    width: min(290px, 72vw);
  }

  .feature-grid,
  .devices-grid {
    grid-template-columns: 1fr;
  }

  .devices-art {
    min-height: 0;
    max-width: 560px;
    margin: 0 auto 18px;
  }

  .device-main {
    width: 100%;
  }

  .device-sub {
    position: static;
    width: 86%;
    margin: -40px auto 0;
  }

  .devices-copy h2 {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-shell {
    margin: 0;
  }

  .container {
    width: min(1100px, calc(100% - 26px));
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .menu-links.open {
    max-height: 240px;
  }

  .menu-links a {
    display: block;
    padding: 14px 20px;
  }

  .inspired-section {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop {
    animation: none;
    transform: scale(1.03);
  }

  .book-frame,
  .book-cover {
    transition: none;
  }
}
