:root {
  --orange: #faa536;
  --ink: #20170d;
  --white: #fffdf8;
  --shadow: rgba(89, 49, 4, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--orange);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  min-height: 100vh;
}

.banner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  line-height: 0;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) 0 48px;
  text-align: center;
}

.intro {
  max-width: 720px;
  margin: 0 auto clamp(28px, 5vw, 44px);
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.intro strong {
  color: var(--white);
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(100, 50, 0, 0.18);
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 clamp(28px, 5vw, 44px);
}

.highlights p {
  display: flex;
  align-items: center;
  min-height: 130px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #3b260e;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.videos {
  margin: 0 0 clamp(28px, 5vw, 44px);
}

.videos h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 0 rgba(100, 50, 0, 0.18);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(180px, 9fr);
  align-items: start;
  gap: 16px;
}

.video-frame {
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: #1b130c;
  box-shadow: 0 14px 34px var(--shadow);
}

.video-frame--wide {
  aspect-ratio: 16 / 9;
}

.video-frame--short {
  aspect-ratio: 9 / 16;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contract-card {
  margin-bottom: clamp(28px, 5vw, 44px);
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 34px var(--shadow);
  text-align: left;
}

.contract-label {
  display: block;
  margin: 0 0 10px 2px;
  color: #75501f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid #ecd2a8;
  border-radius: 12px;
  background: #fff7e9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button,
.x-link {
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  background: #3c2b18;
  transform: translateY(-1px);
}

button:focus-visible,
.x-link:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 0 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(89, 49, 4, 0.12);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.x-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(89, 49, 4, 0.2);
}

.x-link svg {
  width: 18px;
  fill: currentColor;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .content {
    width: min(100% - 24px, 760px);
    padding-top: 32px;
  }

  .contract-card {
    padding: 14px;
    border-radius: 16px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .highlights p {
    min-height: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-frame--short {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .contract-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-row code {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
