:root {
  --blue: #001b4d;
  --blue-soft: #07366f;
  --orange: #f26b21;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #10213f;
  --muted: #5e6b80;
  --shadow: 0 24px 60px rgba(0, 27, 77, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 107, 33, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.viewer-open {
  overflow: hidden;
}

.page-shell {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.65rem, 3.2vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button {
  min-height: 48px;
  padding: 0 20px;
}

.button:hover,
.tool-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 15px 30px rgba(242, 107, 33, 0.28);
}

.secondary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 15px 30px rgba(0, 27, 77, 0.22);
}

.card {
  overflow: hidden;
  border: 1px solid rgba(0, 27, 77, 0.14);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button img {
  display: block;
  width: 100%;
  height: auto;
}

.zoom-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  box-shadow: 0 15px 34px rgba(242, 107, 33, 0.34);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(0, 12, 36, 0.96);
}

.viewer[hidden] {
  display: none;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  color: #fff;
  background: rgba(0, 27, 77, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.tool-button {
  min-width: 44px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tool-button.wide {
  min-width: 106px;
}

.tool-button.link {
  background: var(--orange);
}

.tool-button.close {
  background: #ffffff;
  color: var(--blue);
}

.zoom-level {
  min-width: 64px;
  text-align: center;
  font-weight: 900;
}

.viewer-stage {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.10), transparent 24rem),
    radial-gradient(circle at 82% 80%, rgba(242, 107, 33, 0.12), transparent 22rem),
    rgba(0, 12, 36, 0.98);
}

.viewer-stage.dragging {
  cursor: grabbing;
}

.viewer-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  width: min(94vw, 1700px);
  height: auto;
  transform-origin: 0 0;
  user-select: none;
  will-change: transform;
}

.viewer-help {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 27, 77, 0.62);
  font-size: 0.88rem;
  pointer-events: none;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .button {
    flex: 1 1 220px;
  }

  .card {
    border-radius: 18px;
  }

  .zoom-badge {
    right: 10px;
    bottom: 10px;
    padding: 10px 13px;
    font-size: 0.88rem;
  }

  .viewer-toolbar {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .viewer-image {
    width: 1350px;
  }

  .viewer-help {
    display: none;
  }
}
