:root {
  --bg: #f7fbff;
  --bg-soft: #ecf7ff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #25b6f2;
  --brand-dark: #0089c0;
  --accent: #ffff02;
  --card: #ffffff;
  --line: #bae6fd;
  --nav-glass: rgba(255, 255, 255, 0.78);
  --surface-1: #ffffff;
  --surface-2: #f3faff;
  --shadow-soft: 0 14px 32px rgba(2, 8, 23, 0.1);
  --shadow-strong: 0 20px 46px rgba(2, 8, 23, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(37, 182, 242, 0.16), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(255, 255, 2, 0.14), transparent 55%),
    var(--bg);
  padding-top: 92px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(36px);
  opacity: 0.45;
}

body::before {
  width: 300px;
  height: 300px;
  left: -90px;
  top: 18vh;
  background: #25b6f2;
  border-radius: 48% 52% 61% 39% / 46% 43% 57% 54%;
  animation: floatOne 16s ease-in-out infinite;
}

body::after {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 60vh;
  background: #ffff02;
  border-radius: 61% 39% 46% 54% / 48% 52% 43% 57%;
  animation: floatTwo 18s ease-in-out infinite;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.15;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--brand);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--brand);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

p {
  margin-top: 0;
}

.wrapper {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 255, 2, 0.52) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(140deg, rgba(37, 182, 242, 0.08), rgba(255, 255, 255, 0.9) 35%, rgba(0, 137, 192, 0.07));
  border-bottom: 1px solid var(--line);
  padding-bottom: 4.2rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  position: fixed;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 2.5rem));
  z-index: 100;
  background: var(--nav-glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.1);
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.lang-btn {
  border: 1px solid rgba(2, 132, 199, 0.25);
  background: #fff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--accent);
  border-color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  width: 30px;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 4px 14px rgba(2, 8, 23, 0.2);
}

section[id],
footer[id] {
  scroll-margin-top: 104px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.45rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(37, 182, 242, 0.12);
  color: #0369a1;
}

.hero-inner {
  padding-top: 4.6rem;
}

.hero-badge {
  width: 118px;
  max-width: 34%;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 22px rgba(2, 8, 23, 0.22));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.hero-copy {
  color: var(--muted);
  max-width: 68ch;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--accent);
  border-radius: 999px;
  padding: 0.72rem 1.28rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 105, 161, 0.28);
  filter: saturate(1.05);
}

.btn-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
}

.canvas-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.section {
  padding: 4.8rem 0;
  animation: riseIn 0.55s ease both;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(236, 247, 255, 0.7), rgba(236, 247, 255, 0.86));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  color: var(--muted);
  max-width: 72ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.1rem;
  align-items: center;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

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

.book-cover-img {
  width: 243px;
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: var(--shadow-strong);
}

.grid-4 {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.audience-card,
.topic,
.author-card,
.canvas-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover,
.audience-card:hover,
.topic:hover,
.author-card:hover,
.canvas-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 26px 54px rgba(2, 8, 23, 0.2),
    0 0 0 3px rgba(37, 182, 242, 0.2);
  border-color: #7dd3fc;
  border-top-color: #0284c7;
  background: linear-gradient(180deg, #ffffff, #eef9ff);
}

.card-icon {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 0.7rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(186, 230, 253, 0.85);
}

.audience-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.topic-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: 0.6rem;
  margin-bottom: 0.7rem;
}

.canvas-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}

.author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 96px;
  border: 2px solid rgba(186, 230, 253, 0.9);
}

.author-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.linkedin-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0.2rem;
}

.pr-book {
  width: 170px;
  max-width: 100%;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(2, 132, 199, 0.22);
  margin: 0.4rem 0 1rem;
  box-shadow: var(--shadow-soft);
}

.pr-org-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0.6rem 0 1rem;
}

.audience-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid-2,
.authors,
.canvas-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.footer {
  padding: 3rem 0 4rem;
  background:
    linear-gradient(135deg, #0ea5e9, #0284c7 70%);
  color: #fefda6;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer h2 {
  color: #fffeb1;
}

.canvas-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.canvas-modal.open {
  display: flex;
}

.canvas-modal-inner {
  width: min(1100px, 100%);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 2px solid var(--brand);
  display: grid;
  grid-template-rows: auto 1fr;
}

.canvas-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f6fcff);
}

.canvas-modal-close {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--accent);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

#canvas-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes floatOne {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-24px) translateX(14px) scale(1.05);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(22px) translateX(-10px) scale(1.04);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  body {
    padding-top: 128px;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    top: 0.45rem;
    border-radius: 14px;
  }

  .brand-mark {
    order: 1;
  }

  .lang-switch {
    order: 2;
  }

  .nav-links {
    order: 4;
    width: 100%;
    justify-content: center;
    gap: 0.58rem;
    font-size: 0.89rem;
  }

  .two-col,
  .grid-2,
  .authors,
  .canvas-grid,
  .audience-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 3.2rem;
  }

  .author-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
