:root {
  --bg: #f4f2ec;
  --surface: #fffefb;
  --surface-2: #f8f1e5;
  --ink: #151515;
  --ink-soft: #4f4a44;
  --line: #d8d1c4;
  --accent: #ff6b2b;
  --accent-soft: #ffd7be;
  --signal: #139da0;
  --signal-soft: #d9f3f3;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 16px 32px rgba(15, 18, 19, 0.08);
  --shadow-strong: 0 24px 54px rgba(15, 18, 19, 0.16);
  --glass: rgba(255, 255, 255, 0.76);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 105% -12%, #ffd8c0 0%, transparent 56%),
    radial-gradient(860px 640px at -8% 10%, #def5ef 0%, transparent 52%),
    linear-gradient(180deg, #f8f6f1 0%, #f3efe7 100%),
    var(--bg);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 96%, rgba(18, 18, 18, 0.04) 96%),
    linear-gradient(90deg, transparent 96%, rgba(18, 18, 18, 0.035) 96%);
  background-size: 24px 24px;
  opacity: 0.08;
  z-index: -1;
}

a,
button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0ea5a866;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 40;
  background: #111;
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.45rem;
  padding: 0.78rem 3.6vw;
  backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(180deg, #f5f4efdd 0%, #f4f2ecbe 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(17, 18, 20, 0.06);
}

.site-header::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(19, 157, 160, 0.32) 38%, rgba(255, 107, 43, 0.4) 62%, transparent 100%);
  transform: translateY(0.36rem);
  pointer-events: none;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: fit-content;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #ffaf7f);
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 52px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  white-space: nowrap;
}

.main-nav {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.3rem;
  border: 1px solid rgba(19, 157, 160, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(115% 120% at 0% -10%, rgba(255, 166, 123, 0.28) 0%, transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 250, 250, 0.94));
  box-shadow: 0 10px 24px rgba(12, 34, 35, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  color: #201f1d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.015em;
  border-radius: 999px;
  padding: 0.48rem 0.66rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover {
  background: rgba(18, 18, 20, 0.055);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  color: #053e40;
  background: linear-gradient(135deg, #b7f3f3, #def9f9);
  border: 1px solid rgba(19, 157, 160, 0.2);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(9, 76, 77, 0.14);
}

.header-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.18rem 0.2rem 0.18rem 0.62rem;
  border: 1px solid rgba(19, 157, 160, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #ecf7f7 100%);
  box-shadow: 0 10px 22px rgba(14, 71, 72, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lang-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(14, 71, 72, 0.18);
  border-color: rgba(19, 157, 160, 0.38);
}

.lang-switch:focus-within {
  border-color: rgba(19, 157, 160, 0.5);
  box-shadow: 0 0 0 3px rgba(19, 157, 160, 0.12), 0 14px 26px rgba(14, 71, 72, 0.16);
}

.lang-switch::after {
  content: "";
  position: absolute;
  right: 0.88rem;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid #0c3d3f;
  border-bottom: 2px solid #0c3d3f;
  transform: translateY(-58%) rotate(45deg);
  pointer-events: none;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  color: #123335;
  border-radius: 999px;
  min-width: 6.9rem;
  padding: 0.36rem 1.5rem 0.36rem 0.1rem;
  line-height: 1.1;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch select::-ms-expand {
  display: none;
}

.translate-link {
  text-decoration: none;
  color: var(--signal);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(19, 157, 160, 0.08);
  transition: transform 180ms ease, background-color 180ms ease;
}

.translate-link:hover {
  transform: translateY(-1px);
  background: rgba(19, 157, 160, 0.16);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(19, 157, 160, 0.26);
  background: linear-gradient(135deg, #ffffff 0%, #edf8f8 100%);
  color: #0c3d3f;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(14, 71, 72, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(14, 71, 72, 0.2);
}

.menu-btn::before {
  content: "";
  width: 0.86rem;
  height: 0.64rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-sizing: border-box;
}

.menu-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, #d8f4f4 0%, #bde9e9 100%);
}

.menu-btn[aria-expanded="true"]::before {
  border-top-color: transparent;
  border-bottom-color: transparent;
  position: relative;
}

.menu-btn[aria-expanded="true"]::after {
  content: "x";
  font-weight: 800;
  line-height: 1;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(9, 12, 16, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 18;
}

.nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121212;
  color: #fff;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 1.8rem;
  padding: 0.58rem 0;
  white-space: nowrap;
  animation: ticker-slide 20s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.layout-main {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.section {
  padding: 3.2rem 0;
}

.section-lede {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 72ch;
}

.hero-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-main,
.hero-feature {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #fffefb 0%, #fff8f0 100%);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.hero-main::after,
.hero-feature::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: -60px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 152, 96, 0.22) 0%, rgba(255, 152, 96, 0) 74%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-main h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.05rem, 5vw, 3.8rem);
  line-height: 1.03;
  max-width: 16ch;
}

.hero-main p {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.03rem;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff9660);
  color: #181818;
  box-shadow: 0 10px 20px rgba(255, 107, 43, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #1f1d1a;
  background: var(--surface);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(16, 17, 20, 0.12);
}

.hero-feature h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.14;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
}

.hero-feature p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.ad-slot {
  border: 1px dashed #bfb5a3;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, #fffbf6, #fff2e3);
  padding: 0.9rem;
  min-height: 110px;
  color: #786e62;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.ad-slot-wide {
  margin-top: 0.6rem;
  min-height: 250px;
}

.ad-slot ins.adsbygoogle {
  min-height: 90px;
}

.ad-fallback {
  display: block;
  margin-top: 0.5rem;
}

ins.adsbygoogle[data-ads-initialized="1"] + .ad-fallback {
  display: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.text-link {
  color: var(--signal);
  text-decoration: none;
  font-weight: 700;
}

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

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

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

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 220px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: #c5beaf;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  margin: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.2rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.provider-tag {
  margin: 0;
  border-radius: 999px;
  background: var(--signal-soft);
  color: #0b5d5f;
  padding: 0.2rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.meta {
  margin: 0;
  color: #6a625a;
  font-size: 0.82rem;
}

.news-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.18;
  font-size: 1.08rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  margin: 0;
  color: var(--ink-soft);
}

.news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-link {
  color: var(--signal);
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease;
}

.story-link:hover {
  border-color: currentColor;
}

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

.provider-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, #fffefb 0%, #fef5eb 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.provider-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.provider-card p {
  margin: 0;
  color: var(--ink-soft);
}

.provider-card a {
  width: fit-content;
  text-decoration: none;
  color: var(--signal);
  font-weight: 700;
}

.listing-head h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}

.listing-head p {
  color: var(--ink-soft);
}

.controls-grid {
  padding-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.82rem;
}

.search-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefb;
  border-radius: 12px;
  padding: 0.8rem 0.92rem;
  box-shadow: inset 0 1px 1px rgba(12, 14, 18, 0.04);
}

.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.sort-box select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefb;
  padding: 0.44rem 0.58rem;
}

.provider-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.prompt-filters-stack {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.72rem;
}

.prompt-language-filters {
  margin-top: 0.4rem;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.73rem;
  background: #fffefb;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 18, 19, 0.12);
}

.filter-chip.active {
  border-color: transparent;
  background: linear-gradient(130deg, #0ea5a8, #52d3d4);
  color: #082627;
}

.filter-chip[aria-current="page"] {
  border-color: transparent;
  background: linear-gradient(130deg, #0ea5a8, #52d3d4);
  color: #082627;
}

.empty-state {
  color: var(--ink-soft);
}

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

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: #c5beaf;
}

.video-link {
  display: grid;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(18, 18, 20, 0.08), rgba(18, 18, 20, 0.02));
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.72);
  box-shadow: 0 16px 34px rgba(15, 18, 19, 0.22);
}

.video-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 14px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translateX(2px);
}

.video-body {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.video-body h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.18;
  font-size: 1.02rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.prompt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.prompt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prompt-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.prompt-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.prompt-code {
  margin: 0;
  padding: 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(19, 157, 160, 0.16);
  background: linear-gradient(180deg, #f8fdfd 0%, #f5fbfb 100%);
  color: #163437;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-code code {
  font: inherit;
}

.prompt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prompt-tag {
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  border: 1px solid rgba(19, 157, 160, 0.22);
  background: rgba(19, 157, 160, 0.08);
  color: #0f4d4f;
}

.prompt-copy-btn {
  border: 1px solid rgba(19, 157, 160, 0.28);
  border-radius: 10px;
  padding: 0.42rem 0.66rem;
  background: linear-gradient(135deg, #ffffff 0%, #ecf7f7 100%);
  color: #083f41;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.prompt-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(14, 71, 72, 0.16);
}

.prompt-copy-btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.benchmark-panel {
  padding-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 1rem;
}

.benchmark-chart-card,
.benchmark-info-card,
.benchmark-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
}

.benchmark-chart-card {
  padding: 1rem;
}

.benchmark-info-card {
  padding: 1rem;
}

.benchmark-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.benchmark-chart-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.benchmark-live {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(19, 157, 160, 0.12);
  color: #075455;
  font-size: 0.82rem;
  font-weight: 700;
}

.pulse-dot {
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
  animation: pulse-dot 1.35s ease-out infinite;
}

.benchmark-chart-shell {
  margin-top: 0.72rem;
  position: relative;
}

.benchmark-chart {
  width: 100%;
  height: auto;
  display: block;
}

.benchmark-tooltip {
  position: absolute;
  min-width: 210px;
  max-width: min(280px, calc(100% - 1.2rem));
  border: 1px solid rgba(19, 157, 160, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 26px rgba(12, 24, 36, 0.2);
  backdrop-filter: blur(6px);
  padding: 0.62rem 0.68rem;
  z-index: 5;
  pointer-events: none;
}

.benchmark-tooltip-time {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4f4a43;
}

.benchmark-tooltip-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.46rem;
  font-size: 0.8rem;
  color: #201f1c;
}

.benchmark-tooltip-row + .benchmark-tooltip-row {
  margin-top: 0.2rem;
}

.benchmark-tooltip-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86);
}

.benchmark-cursor-hint {
  margin-top: 0.5rem;
}

.benchmark-chart-bg {
  fill: #f7fcfc;
  stroke: rgba(19, 157, 160, 0.16);
}

.benchmark-grid-line {
  stroke: rgba(19, 157, 160, 0.18);
  stroke-width: 1;
}

.benchmark-axis-label,
.benchmark-end-label,
.benchmark-legend-label {
  fill: #5d5a54;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.benchmark-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px rgba(10, 10, 12, 0.16));
}

.benchmark-end-dot {
  stroke: #ffffff;
  stroke-width: 2;
}

.benchmark-cursor-line {
  stroke: rgba(9, 30, 38, 0.6);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
}

.benchmark-cursor-dot {
  stroke: #ffffff;
  stroke-width: 2.4;
  filter: drop-shadow(0 5px 9px rgba(8, 17, 24, 0.25));
}

.benchmark-pointer-capture {
  cursor: crosshair;
  pointer-events: all;
}

.benchmark-leaderboard {
  display: grid;
  gap: 0.58rem;
  margin-top: 0.8rem;
}

.benchmark-rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.62rem;
  border: 1px solid rgba(19, 157, 160, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 251, 251, 0.88));
  padding: 0.58rem 0.66rem;
}

.benchmark-rank-index {
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.15);
  color: #7d3313;
  min-width: 2.05rem;
  text-align: center;
  padding: 0.18rem 0.48rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.benchmark-rank-score {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
}

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

.benchmark-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.benchmark-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.benchmark-card h3 {
  margin: 0.14rem 0 0;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.benchmark-score-wrap {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.benchmark-score-value {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.benchmark-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.benchmark-delta {
  font-weight: 800;
}

.benchmark-delta.up-strong,
.benchmark-delta.up {
  color: #0f7d4a;
}

.benchmark-delta.down-strong,
.benchmark-delta.down {
  color: #a53f3f;
}

.benchmark-delta.flat {
  color: #6d665c;
}

.benchmark-metric-grid {
  display: grid;
  gap: 0.48rem;
}

.benchmark-metric-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.58rem;
  font-size: 0.84rem;
}

.benchmark-metric-bar {
  width: 100%;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(19, 157, 160, 0.13);
  overflow: hidden;
}

.benchmark-metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #13a0a3 0%, #6fe2e3 100%);
}

.video-skeleton {
  pointer-events: none;
}

.video-skeleton .video-thumb {
  background: linear-gradient(90deg, rgba(18, 18, 20, 0.06), rgba(18, 18, 20, 0.02), rgba(18, 18, 20, 0.06));
  background-size: 200% 100%;
  animation: skeleton-sheen 1.1s ease-in-out infinite;
}

.skeleton-line {
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 18, 20, 0.06), rgba(18, 18, 20, 0.02), rgba(18, 18, 20, 0.06));
  background-size: 220% 100%;
  animation: skeleton-sheen 1.1s ease-in-out infinite;
}

.skeleton-line + .skeleton-line {
  width: 78%;
}

.breadcrumb {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #6d645a;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: inherit;
}

.post-layout {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #fffefb 0%, #fff8f0 100%);
  box-shadow: var(--shadow-strong);
  padding: 1.35rem;
}

.post-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.provider-pill {
  border-radius: 999px;
  background: var(--signal-soft);
  color: #0a585a;
  padding: 0.26rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-layout h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.08;
  font-size: clamp(1.8rem, 4.1vw, 3rem);
}

.post-meta {
  color: #6a6259;
  margin: 0.8rem 0 0;
}

.post-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 64ch;
}

.post-content p {
  margin: 0.95rem 0;
  color: #242321;
  max-width: 72ch;
}

.source-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff6ea 0%, #f9efe3 100%);
  padding: 0.88rem;
  margin-top: 1.1rem;
}

.source-box h2 {
  margin: 0;
  font-size: 1rem;
  font-family: "Sora", sans-serif;
}

.source-box p {
  margin: 0.4rem 0;
  color: #60584e;
}

.source-box a {
  color: var(--signal);
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 2.6rem 0 3.2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0) 0%, rgba(255, 252, 246, 0.78) 70%);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0.24rem 0 0;
  color: #615951;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer nav a {
  color: #615951;
  text-decoration: none;
}

.guide-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.guide-toggle {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5a8, #40d0d3);
  color: #082728;
  font-weight: 800;
  padding: 0.72rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.guide-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.guide-panel {
  width: min(330px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #fff7ee 100%);
  box-shadow: var(--shadow-strong);
  padding: 0.95rem;
  display: none;
  transform-origin: bottom right;
}

.guide-widget.open .guide-panel {
  display: block;
  animation: guide-panel-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.guide-widget.auto-open .guide-panel {
  animation: guide-panel-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.guide-close {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: #7d7468;
  float: right;
}

.guide-panel h3 {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
}

.guide-panel p {
  margin: 0;
  color: #595146;
}

.guide-panel ul {
  margin: 0.78rem 0 0;
  padding-left: 1.05rem;
}

.guide-panel li {
  margin: 0.42rem 0;
  color: #595146;
}

.not-found {
  width: min(760px, 92vw);
  margin: 8rem auto;
  text-align: center;
}

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

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-32%);
  }
}

@keyframes guide-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(14, 165, 168, 0.28);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.36);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@keyframes guide-panel-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .ticker-track {
    animation: none;
  }

  .pulse-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .guide-widget.open .guide-panel,
  .guide-widget.auto-open .guide-panel {
    animation: none;
  }
}

@keyframes skeleton-sheen {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (max-width: 1360px) {
  .translate-link {
    display: none;
  }
}

@media (max-width: 1280px) {
  .main-nav a {
    font-size: 0.8rem;
    padding: 0.44rem 0.58rem;
  }

  .lang-switch select {
    min-width: 5.9rem;
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .news-grid,
  .wide-grid,
  .compact-grid,
  .provider-grid,
  .video-grid,
  .prompts-grid,
  .benchmark-panel,
  .benchmark-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .site-header::after {
    display: none;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: calc(64px + 1rem);
    right: 4vw;
    width: min(86vw, 360px);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    border: 1px solid rgba(19, 157, 160, 0.25);
    border-radius: 18px;
    background:
      radial-gradient(130% 110% at 100% 0%, rgba(255, 200, 168, 0.36) 0%, transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 252, 252, 0.98) 100%);
    box-shadow: 0 26px 54px rgba(8, 16, 23, 0.28);
    flex-direction: column;
    align-items: stretch;
    padding: 0.82rem;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 21;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.66rem 0.78rem;
    font-size: 0.94rem;
    background: rgba(255, 255, 255, 0.78);
  }

  .main-nav a + a {
    margin-top: 0.3rem;
  }

  .main-nav a:hover {
    transform: none;
    background: rgba(221, 246, 246, 0.92);
    border-color: rgba(19, 157, 160, 0.22);
  }

  .menu-btn {
    display: inline-flex;
  }

  .header-tools {
    margin-left: auto;
  }

  .lang-switch {
    padding-left: 0.48rem;
  }

  .lang-switch select {
    min-width: 5.6rem;
  }

  .lang-switch span,
  .translate-link {
    display: none;
  }

  .benchmark-chart-head {
    align-items: flex-start;
  }

  .benchmark-rank-row {
    grid-template-columns: auto 1fr;
  }

  .benchmark-rank-score {
    grid-column: 2;
    justify-items: start;
  }

  .benchmark-tooltip {
    min-width: 180px;
    max-width: min(235px, calc(100% - 0.8rem));
  }

  .site-footer {
    flex-direction: column;
  }
}
