:root {
  --bg-main: #2f3136;
  --ink: #ffe2be;
  --ink-soft: #ffe2be;
  --accent: #c16b2f;
  --accent-soft: #f8e2cb;
  --line: rgba(255, 226, 190, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background: linear-gradient(
    to bottom,
    #b33a2f 0%,
    #aa352f 26%,
    #9d302f 58%,
    #4f171d 100%
  );
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
  
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
  opacity: 0.6;
}



.top-ribbon {
  width: min(1100px, 92vw);
  margin: 1.2rem auto 0;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255, 226, 190, 0.35);
  border-radius: 999px;
  background: #2f3136;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  text-align: center;
}

.top-ribbon p {
  margin: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  text-shadow:
    0 0 4px rgba(255, 226, 190, 0.92),
    0 0 10px rgba(243, 205, 160, 0.82),
    0 0 16px rgba(214, 164, 110, 0.72);
  animation: ledBlink 2.1s infinite steps(1, end);
}

.top-ribbon p:nth-child(2) {
  animation-delay: 0.2s;
}

.top-ribbon p:nth-child(3) {
  animation-delay: 0.4s;
}

.hero,
main {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-content {
  text-align: center;
}

.led-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 6.6vw, 4.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Franklin Gothic Demi", "Arial Narrow", sans-serif;
  color: #ffe2be;
  text-shadow:
    0 0 6px rgba(255, 226, 190, 0.96),
    0 0 14px rgba(243, 205, 160, 0.9),
    0 0 24px rgba(214, 164, 110, 0.78),
    0 0 44px rgba(178, 127, 72, 0.68);
  animation: ledBlink 1.8s infinite steps(1, end);
}

h1,
h2 {
  line-height: 1.2;
  margin-top: 0;
  color: var(--ink);
}

h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.9vw, 2.2rem);
}

.hero-content > h1:not(.led-title) {
  font-size: clamp(1.2rem, 2.8vw, 2.1rem);
}

.intro {
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

main {
  display: grid;
  gap: 2.4rem;
  padding-bottom: 4.5rem;
}

main > * {
  min-width: 0;
}

.section {
  padding: 2rem;
}

.card,
.quote-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.section + .section {
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.section-grid > * {
  min-width: 0;
}

.hero-image-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 2px solid #e6b890;
  border-radius: 16px;
  overflow: hidden;
  background: #f8e8d3;
}

.section-image-wrap {
  align-self: stretch;
  border: 2px solid #e6b890;
  border-radius: 14px;
  overflow: hidden;
  background: #f8e8d3;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image-wrap .protected-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.protected-media {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.75rem;
}

.image-placeholder {
  min-height: 230px;
  border: 2px dashed #d9a67f;
  border-radius: 14px;
  background: repeating-linear-gradient(
    -45deg,
    #fff3e3,
    #fff3e3 12px,
    #fde8d1 12px,
    #fde8d1 24px
  );
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.image-placeholder span {
  font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  color: #8a4f2a;
  letter-spacing: 0.03em;
}

.quote-card blockquote {
  margin: 1rem 0 1.5rem;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 1.04rem;
  color: #4b2b1a;
}

.quote-card > h2 {
  text-align: center;
}

.wide {
  min-height: 180px;
}

.standards-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.4rem 0.4rem 0.2rem;
}

.standards-strip article {
  border: 1px solid #e8ceb9;
  border-radius: 12px;
  background: rgba(255, 245, 232, 0.75);
  padding: 1rem;
}

.standards-strip p {
  margin: 0;
  color: #000;
}

.standards-strip h3 {
  color: #000;
}

.about-callout {
  padding: 0.4rem 0 0.6rem;
}

.about-callout blockquote {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.4rem 1.25rem 1.6rem;
  border: 1px solid #e7c39f;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 243, 225, 0.92), rgba(249, 224, 191, 0.9));
  color: #3f2617;
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: center;
}

.cta-panel {
  margin-top: 0.8rem;
  padding: 1.8rem;
  border: 1px solid #e3b790;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 236, 212, 0.92), rgba(253, 226, 194, 0.92));
  text-align: center;
}

.cta-panel p {
  margin: 0.8rem auto 1.2rem;
  max-width: 64ch;
  color: #000;
}

.cta-panel h2 {
  color: #000;
}

.cta-button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #a95b2d;
  background: #c96f37;
  color: #fff3e8;
  text-decoration: none;
  font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(132, 64, 31, 0.24);
  background: #b95f2f;
}

.reviews-carousel {
  margin-top: 0.5rem;
  padding: 1.7rem 0 0.5rem;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.reviews-carousel h2 {
  margin: 0 0 0.45rem;
  text-align: center;
}

.reviews-intro {
  margin: 0 auto 1.2rem;
  text-align: center;
  color: var(--ink-soft);
  max-width: 72ch;
}

.reviews-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 0.4rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.reviews-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: reviewsScroll 34s linear infinite;
  will-change: transform;
}

.review-card {
  flex: 0 0 min(360px, 76vw);
  border: 1px solid #dce3ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  padding: 0.95rem 1rem 1rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d8dfeb;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
}

.review-meta {
  min-width: 0;
}

.review-text {
  margin: 0;
  color: #1b1f24;
  font-size: 0.95rem;
  line-height: 1.45;
}

.review-author {
  margin: 0;
  color: #0f1419;
  font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

.review-role {
  margin: 0.12rem 0 0;
  color: #5f6672;
  font-size: 0.8rem;
}

.review-stars {
  margin: 0 0 0.55rem;
  color: #f5b301;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid #e6cdb5;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.footer-dev {
  font-family: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

.eg-highlight {
  color: #00e5ff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 220ms;
}

@keyframes ledBlink {
  0%,
  16%,
  20%,
  42%,
  100% {
    opacity: 1;
    filter: brightness(1.2);
  }

  18%,
  44% {
    opacity: 0.68;
    filter: brightness(0.8);
  }

  19%,
  43% {
    opacity: 0.35;
    filter: brightness(0.45);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@media (max-width: 900px) {
  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .top-ribbon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.7rem;
    border-radius: 24px;
  }

  .top-ribbon p {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
  }

  .standards-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 1.4rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .site-footer p {
    order: 1;
  }

  .site-footer .footer-dev {
    order: 2;
  }

  .image-placeholder {
    min-height: 200px;
  }

  .reviews-track {
    animation-duration: 30s;
  }

  .review-card {
    flex-basis: min(320px, 82vw);
  }

  .review-avatar {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .top-ribbon {
    padding: 0.8rem 0.55rem;
    gap: 0.35rem;
  }

  .top-ribbon p {
    font-size: 0.8rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }

  .reviews-track {
    animation-duration: 28s;
  }

  .review-card {
    flex-basis: min(300px, 86vw);
  }
}
