@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --primary: #5d3bea;
  --primary-dark: #4228b5;
  --accent: #ff8a3d;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.6);
  --bg: #f2f5ff;
  --text: #1f2430;
  --text-muted: #4e5566;
  --border: rgba(93, 59, 234, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(24, 34, 67, 0.12);
  --shadow-light: 0 10px 25px rgba(24, 34, 67, 0.08);
  --transition: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: radial-gradient(circle at top left, rgba(93, 59, 234, 0.12), transparent 45%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary);
}

a[data-href] {
  cursor: default;
  pointer-events: none;
}

a[data-href]:hover,
a[data-href]:focus {
  color: inherit;
}

.container {
  width: min(1400px, 90%);
  margin: 0 auto;
}

main {
  width: min(1400px, 92%);
  margin: 0 auto;
  padding: 64px 0 120px;
}

main section {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px clamp(22px, 4vw, 48px);
  margin: 0 auto 32px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
}

main section:nth-of-type(odd) {
  background: linear-gradient(145deg, rgba(93, 59, 234, 0.08), rgba(255, 255, 255, 0.9));
}

main section h1,
main section h2,
main section h3 {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main section h1 {
  font-size: clamp(32px, 4vw, 44px);
}

main section h2 {
  font-size: clamp(26px, 3.5vw, 32px);
}

main section h3 {
  font-size: clamp(22px, 3vw, 26px);
}

main section p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

main section ul {
  padding-left: 20px;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

main section ul li {
  color: var(--text-muted);
  background: rgba(93, 59, 234, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  list-style: none;
  position: relative;
  overflow: hidden;
}

main section ul li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

main section ul li strong {
  color: var(--primary-dark);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #f5f6ff;
}

th,
td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:nth-child(odd) {
  background: rgba(93, 59, 234, 0.04);
}

tbody tr:hover {
  background: rgba(255, 138, 61, 0.12);
}

blockquote {
  margin: 24px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--accent);
  background: rgba(93, 59, 234, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, rgba(93, 59, 234, 0.95), rgba(66, 40, 181, 0.95));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-cta {
  margin-left: 10px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffb867);
  color: #221f3c;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(21, 28, 64, 0.28);
  border: none;
  transition: var(--transition);
}

.header-button:hover,
.header-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(21, 28, 64, 0.32);
  color: #221f3c;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-nav a.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle-line {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
}

/* Banners */
.banner-section,
.banner-mid {
  background: transparent;
  padding: 0;
  margin: 0 auto 48px;
  border: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.banner-section a,
.banner-mid a {
  display: block;
  transition: var(--transition);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.banner-section a:hover,
.banner-mid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(24, 34, 67, 0.18);
}

.banner-section figure,
.banner-mid figure {
  margin: 0 auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.banner-section img,
.banner-mid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Brands Section */
.brands-section {
  background: linear-gradient(145deg, rgba(93, 59, 234, 0.06), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  padding: 48px clamp(24px, 4vw, 56px);
  margin: 0 auto 48px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
}

.brands-intro {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.brand-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.brand-card:hover,
.brand-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  filter: grayscale(0.2);
  transition: var(--transition);
}

.brand-card:hover img,
.brand-card:focus img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: radial-gradient(circle at top right, rgba(93, 59, 234, 0.28), rgba(32, 39, 76, 0.95));
  color: #f3f4ff;
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: flex-start;
}

.footer-brand {
  display: grid;
  gap: 16px;
  max-width: 320px;
}

.footer-logo {
  width: 80px;
  height: auto;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
}

.footer-caption {
  font-weight: 700;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.footer-cta {
  display: grid;
  gap: 16px;
  max-width: 320px;
}

.footer-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #201f3b;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(34, 30, 63, 0.4);
}

.footer-button:hover,
.footer-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(34, 30, 63, 0.45);
}

.footer-meta {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.footer-disclaimer {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(93, 59, 234, 0.08), rgba(255, 255, 255, 0.92));
}

.author-portrait {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(93, 59, 234, 0.18);
  background: rgba(15, 18, 39, 0.08);
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-intro h1 {
  margin-top: 0;
}

.author-intro p {
  margin-bottom: 0;
}

.error-hero {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(93, 59, 234, 0.08));
}

.error-hero h1 {
  margin-bottom: 0;
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fefefe;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(18, 24, 52, 0.35);
}

.error-link::after {
  content: '↺';
  font-size: 18px;
}

.error-link:hover,
.error-link:focus {
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(18, 24, 52, 0.4);
  transform: translateY(-2px);
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: linear-gradient(140deg, rgba(255, 138, 61, 0.95), rgba(93, 59, 234, 0.95));
  color: #0f1538;
  font-size: 24px;
  display: grid;
  place-items: center;
  box-shadow: 0 22px 34px rgba(14, 18, 48, 0.35);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  z-index: 25;
}

.scroll-top:hover,
.scroll-top:focus {
  box-shadow: 0 28px 40px rgba(14, 18, 48, 0.4);
  transform: translateY(0);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-icon {
  font-weight: 700;
}

.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92%);
  padding: 16px clamp(16px, 3.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(16, 20, 54, 0.95), rgba(67, 49, 152, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 46px rgba(10, 14, 34, 0.45);
  border-radius: 20px 20px 0 0;
  backdrop-filter: blur(14px);
  color: #f5f6ff;
  z-index: 40;
}

.bottom-banner-text {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  font-weight: 600;
  flex: 1;
}

.bottom-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffc36e);
  color: #221f3c;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(12, 16, 44, 0.4);
}

.bottom-banner-button:hover,
.bottom-banner-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(12, 16, 44, 0.5);
}

.banner-visible .scroll-top {
  bottom: 100px;
}

.banner-visible .site-footer {
  margin-bottom: 0;
  padding-bottom: 90px;
}

/* Responsive */
@media (max-width: 1024px) {
  main {
    width: min(100%, 92%);
    padding: 52px 0 96px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(15, 18, 39, 0.92);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 40px 24px;
    width: 100%;
    min-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-nav a {
    font-size: 18px;
    padding: 10px 0;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    width: 100%;
    margin-left: 0;
  }

  .header-button {
    width: 100%;
    justify-content: center;
  }

  .author-hero {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 24px;
  }

  .error-hero {
    padding: 36px 26px;
  }

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .bottom-banner {
    width: min(540px, 94%);
    gap: 16px;
    padding: 14px 20px;
  }

  .scroll-top {
    right: 20px;
    bottom: 24px;
    width: 52px;
    height: 52px;
  }

  .banner-visible .scroll-top {
    bottom: 110px;
  }

  .banner-visible .site-footer {
    margin-bottom: 0;
    padding-bottom: 100px;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
    justify-items: center;
  }

  .footer-logo {
    width: 70px;
  }

  .footer-cta {
    max-width: 100%;
    justify-items: center;
  }

  .footer-button {
    width: 100%;
    max-width: 280px;
  }

  .footer-meta {
    margin-top: 36px;
    padding-top: 20px;
    font-size: 15px;
  }

  .footer-disclaimer {
    font-size: 13px;
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  main {
    padding: 42px 0 80px;
  }

  main section {
    padding: 32px 20px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  th,
  td {
    min-width: 180px;
  }

  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .author-intro h1 {
    margin-top: 24px;
  }

  .error-hero {
    padding: 32px 20px;
  }

  .brands-section {
    padding: 36px 16px;
  }

  .brands-intro {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 100%;
  }

  .brand-card img {
    padding: 16px;
  }

  .bottom-banner {
    flex-direction: column;
    text-align: center;
    width: min(340px, 96%);
    padding: 10px 12px;
    gap: 8px;
  }

  .bottom-banner-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .bottom-banner-button {
    width: 100%;
    padding: 8px 18px;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(12, 16, 44, 0.3);
  }

  .banner-visible .site-footer {
    margin-bottom: 0;
    padding-bottom: 85px;
  }

  .banner-visible .scroll-top {
    bottom: 110px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
    justify-items: center;
  }

  .footer-brand p {
    font-size: 15px;
  }

  .footer-logo {
    width: 64px;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links ul {
    gap: 8px;
  }

  .footer-cta {
    max-width: 100%;
    justify-items: center;
  }

  .footer-cta p {
    font-size: 15px;
  }

  .footer-button {
    width: 100%;
    max-width: 260px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .footer-meta {
    margin-top: 32px;
    padding-top: 18px;
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 10px;
  }

  .scroll-top {
    right: 18px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

