:root {
  --ink: #073f55;
  --ink-deep: #052f40;
  --blue: #2998d0;
  --blue-bright: #40b8ed;
  --cloud: #eef7fa;
  --paper: #fbfcfa;
  --white: #ffffff;
  --muted: #58717c;
  --line: rgba(7, 63, 85, 0.14);
  --shadow: 0 22px 54px rgba(7, 63, 85, 0.12);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  color: var(--white);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand img {
  width: 118px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.brand-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.35);
}

.brand-section,
.header-note {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-note {
  color: rgba(255, 255, 255, 0.62);
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(64, 184, 237, 0.23), transparent 29%),
    linear-gradient(132deg, var(--ink-deep), var(--ink) 64%, #07536c);
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -6vw;
  bottom: -30vw;
  width: 58vw;
  height: 58vw;
  min-width: 630px;
  min-height: 630px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 178px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 23px;
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: var(--blue-bright);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 6.15rem);
  font-weight: 360;
  letter-spacing: -0.064em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--blue-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin: 32px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.68;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 180ms ease, gap 180ms ease;
}

.hero-link:hover {
  gap: 18px;
  border-color: var(--blue-bright);
}

.hero-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-proof {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(3, 42, 56, 0.38);
  backdrop-filter: blur(12px);
}

.proof-number {
  min-width: 48px;
  color: var(--blue-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  line-height: 0.9;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.73rem;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(64, 184, 237, 0.18);
  border-radius: 50%;
}

.hero-orbit::before {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(64, 184, 237, 0.8);
  content: "";
}

.hero-orbit-one {
  top: 100px;
  right: -160px;
  width: 560px;
  height: 560px;
}

.hero-orbit-one::before {
  top: 102px;
  left: 52px;
}

.hero-orbit-two {
  top: 184px;
  right: -76px;
  width: 390px;
  height: 390px;
}

.hero-orbit-two::before {
  right: 46px;
  bottom: 68px;
}

.library {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 108px 0 120px;
}

.library-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 60px;
  align-items: end;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--blue);
}

.library-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.library-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 260px;
  gap: 12px;
  align-items: center;
  margin-top: 58px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.search-box {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 152, 208, 0.13);
}

.search-box svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: #80949d;
}

kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #708892;
  font-family: inherit;
  font-size: 0.72rem;
}

.clear-button,
.secondary-button {
  border: 0;
  cursor: pointer;
}

.category-control {
  position: relative;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.category-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 152, 208, 0.13);
}

.category-label {
  color: #80949d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-trigger {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.category-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-trigger svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.category-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.category-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 320px;
  gap: 3px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 63, 85, 0.18);
}

.category-menu[hidden] {
  display: none;
}

.category-option {
  position: relative;
  width: 100%;
  padding: 10px 34px 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

.category-option:hover,
.category-option:focus-visible {
  outline: 0;
  background: var(--cloud);
}

.category-option[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.category-option[aria-selected="true"]::after {
  position: absolute;
  top: 50%;
  right: 12px;
  content: "✓";
  color: var(--blue-bright);
  font-size: 0.82rem;
  transform: translateY(-50%);
}

.results-meta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.clear-button {
  padding: 4px 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.demo-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 rgba(7, 63, 85, 0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.demo-card:hover {
  border-color: rgba(41, 152, 208, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card-visual {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: var(--ink);
}

.card-preview-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.card-preview-link:focus-visible {
  position: relative;
  z-index: 4;
  outline: 3px solid var(--blue-bright);
  outline-offset: -3px;
}

.card-preview-link .preview-frame {
  transition: opacity 280ms ease, filter 180ms ease, transform 220ms ease;
}

.card-preview-link:hover .preview-frame,
.card-preview-link:focus-visible .preview-frame {
  filter: brightness(0.9);
  transform: scale(0.405);
}

.card-visual::before,
.card-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
  transition: opacity 240ms ease;
}

.card-visual::before {
  top: -100px;
  right: -54px;
  width: 230px;
  height: 230px;
}

.card-visual::after {
  right: 64px;
  bottom: -90px;
  width: 170px;
  height: 170px;
}

.preview-frame {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 250%;
  height: 250%;
  border: 0;
  opacity: 0;
  background: var(--white);
  pointer-events: none;
  transform: scale(0.4);
  transform-origin: top left;
  transition: opacity 280ms ease;
}

.preview-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  transition: opacity 220ms ease;
}

.card-visual.is-loaded .preview-frame {
  opacity: 1;
}

.card-visual.is-loaded .preview-placeholder,
.card-visual.is-loaded::before,
.card-visual.is-loaded::after {
  opacity: 0;
}

.card-visual.is-loaded::after {
  z-index: 2;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: linear-gradient(180deg, rgba(3, 42, 56, 0.42), transparent);
  pointer-events: none;
}

.visual-number,
.visual-mark {
  position: absolute;
  z-index: 3;
}

.visual-number {
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.46);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.visual-mark {
  right: 24px;
  bottom: 18px;
  width: 94px;
  height: 94px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 16px rgba(2, 38, 53, 0.2));
}

.demo-card[data-accent="1"] .card-visual {
  background: linear-gradient(135deg, #07546b, #087c99);
}

.demo-card[data-accent="2"] .card-visual {
  background: linear-gradient(135deg, #093d57, #235f89);
}

.demo-card[data-accent="3"] .card-visual {
  background: linear-gradient(135deg, #124a55, #168184);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 23px 21px;
}

.card-category {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 6px 9px;
  border: 1px solid rgba(41, 152, 208, 0.14);
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.demo-card h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.featured-badge {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 42, 56, 0.45);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.empty-state {
  padding: 76px 24px;
  border: 1px dashed rgba(7, 63, 85, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.empty-mark {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
}

.empty-state h3 {
  margin: 7px 0;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

.secondary-button {
  padding: 11px 17px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.closing-note {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) minmax(240px, auto);
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  gap: 26px;
  margin: 0 auto 90px;
  color: var(--muted);
}

.closing-note p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.closing-line {
  height: 1px;
  background: var(--line);
}

.closing-note span {
  font-size: 0.78rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 24px;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer img {
  width: 24px;
  height: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
  }

  .hero-proof {
    right: 24px;
  }

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

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

  .search-box {
    width: 100%;
  }

  .closing-note {
    grid-template-columns: auto 1fr;
  }

  .closing-note > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-copy,
  .library,
  .closing-note {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding-top: 20px;
  }

  .header-note,
  .brand-divider,
  .brand-section {
    display: none;
  }

  .brand img {
    width: 92px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 145px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  .hero-intro {
    font-size: 0.98rem;
  }

  .hero-proof {
    right: 16px;
    bottom: 36px;
    left: 16px;
  }

  .library {
    padding: 78px 0 88px;
  }

  .library-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toolbar {
    margin-top: 40px;
  }

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

  .demo-card {
    min-height: 286px;
  }

  .closing-note {
    margin-bottom: 62px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
