@font-face {
  font-family: "TiemposText";
  src: url("./assets/fonts/TiemposText/TiemposText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TiemposText";
  src: url("./assets/fonts/TiemposText/TiemposText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "StyreneA";
  src: url("./assets/fonts/StyreneA/StyreneA-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "StyreneA";
  src: url("./assets/fonts/StyreneA/StyreneA-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --paper-deep: #f0ede3;
  --paper-soft: #fffefa;
  --ink: #191919;
  --ink-soft: #3d3929;
  --muted: #696760;
  --muted-light: #928f86;
  --line: rgba(204, 120, 92, 0.16);
  --line-strong: rgba(201, 100, 66, 0.32);
  --accent: #cc785c;
  --accent-strong: #c96442;
  --accent-dark: #9f553d;
  --sage: #7a8b73;
  --panel: rgba(255, 254, 250, 0.72);
  --panel-strong: rgba(255, 254, 250, 0.92);
  --shadow: 0 26px 70px rgba(61, 57, 41, 0.13);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "TiemposText", Georgia, "Times New Roman", serif;
  --sans: "StyreneA", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}

body {
  height: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 162, 127, 0.2), transparent 30rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper) 34%, #f7f4ec 100%);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(204, 120, 92, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 120, 92, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 74%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 22% 18%, rgba(122, 139, 115, 0.1), transparent 18rem),
    radial-gradient(circle at 82% 72%, rgba(204, 120, 92, 0.11), transparent 22rem);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.paper-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    repeating-linear-gradient(0deg, rgba(25, 25, 25, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(201, 100, 66, 0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  height: 72px;
  border-bottom: 1px solid rgba(204, 120, 92, 0.12);
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 32px;
  background: var(--ink);
  -webkit-mask: url("./assets/Mer3ylogo.svg") center / contain no-repeat;
  mask: url("./assets/Mer3ylogo.svg") center / contain no-repeat;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.8vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  border: 1px solid rgba(201, 100, 66, 0.35);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  background: rgba(255, 254, 250, 0.58);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.login-link:hover {
  border-color: var(--accent-strong);
  color: #fff;
  background: var(--accent-strong);
}

.aether-logo-fixed {
  position: fixed;
  top: 36%;
  left: 50%;
  z-index: 0;
  width: clamp(300px, 33vw, 430px);
  aspect-ratio: 799 / 752;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 560ms ease,
    opacity 560ms ease,
    transform 560ms ease,
    top 560ms ease;
}

body:not([data-current="home"]) .aether-logo-fixed {
  top: 50%;
  width: clamp(220px, 25vw, 330px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.aether-symbol-layer {
  position: absolute;
  inset: 0;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 520ms ease;
}

.aether-symbol-layer {
  opacity: 1;
}

body:not([data-current="home"]) .aether-symbol-layer {
  opacity: 0;
  transform: scale(1.14) rotate(8deg);
  filter: blur(8px);
}

.logo-fill,
.logo-ripple {
  position: absolute;
  inset: 0;
}

.logo-fill {
  background: linear-gradient(180deg, #191919 0%, #302b21 62%, #5d4a37 100%);
  -webkit-mask: url("./assets/Mer3ylogo.svg") center / contain no-repeat;
  mask: url("./assets/Mer3ylogo.svg") center / contain no-repeat;
  animation: logo-breathe 7s ease-in-out infinite;
}

.logo-ripple {
  border: 1px solid rgba(204, 120, 92, 0.2);
  border-radius: 50%;
  transform: scale(0.76);
  opacity: 0;
  animation: ripple 5.8s ease-out infinite;
}

.ripple-two {
  animation-delay: 2.4s;
}

.claude-emblem {
  --provider-logo: url("./assets/claude.svg");
  --provider-color: #d97757;
  --provider-glow: rgba(217, 119, 87, 0.34);
  --logo-fill: #d97757;
}

.openai-emblem {
  --provider-logo: url("./assets/openai.svg");
  --provider-color: #191919;
  --provider-glow: rgba(25, 25, 25, 0.22);
  --logo-fill: #191919;
}

.gemini-emblem {
  --provider-logo: url("./assets/gemini.svg");
  --provider-color: #7f6df2;
  --provider-glow: rgba(111, 125, 255, 0.34);
  --logo-fill: linear-gradient(135deg, #4285f4 0%, #7f6df2 46%, #d9659f 100%);
}

.model-emblem {
  position: relative;
  display: grid;
  width: clamp(240px, min(31vw, calc((100svh - 150px) * 0.382)), 400px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
  color: var(--provider-color);
  isolation: isolate;
  pointer-events: none;
}

.section-inner.reverse .model-emblem {
  justify-self: center;
}

.model-emblem.is-active {
  animation: emblem-stage-drift 6.8s ease-in-out infinite;
}

.model-emblem::before,
.model-emblem::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.claude-emblem::before {
  display: none;
}

.claude-emblem::after {
  display: none;
}

.model-emblem .emblem-core,
.model-emblem .emblem-ripple,
.model-emblem .gemini-star,
.model-emblem .gemini-float,
.openai-build-svg {
  position: absolute;
}

.emblem-core {
  inset: 14%;
  z-index: 2;
  display: block;
  transform-origin: center;
}

.model-emblem.is-active .emblem-core {
  animation: provider-breathe 4.2s ease-in-out infinite;
}

.openai-emblem .emblem-core {
  opacity: 0;
}

.openai-build-svg {
  inset: 12%;
  z-index: 2;
  display: block;
  overflow: visible;
  transform-origin: center;
}

.openai-build-frame,
.openai-build-outline {
  fill: none;
  stroke: var(--provider-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--provider-glow));
}

.openai-build-frame {
  stroke-width: 0.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.openai-build-outline {
  stroke-width: 0.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-origin: center;
}

.openai-build-fill {
  fill: var(--logo-fill);
  fill-opacity: 0;
  stroke: var(--logo-fill);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0;
  stroke-width: 0.5;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.openai-emblem.is-active .openai-build-svg {
  animation:
    openai-rotate 25s linear infinite 2.72s,
    provider-breathe 3.5s ease-in-out infinite 2.72s;
}

.openai-emblem.is-active .openai-build-frame {
  animation: openai-draw-frame 1.05s cubic-bezier(0.65, 0, 0.2, 1) forwards;
}

.openai-emblem.is-active .openai-build-outline {
  animation:
    openai-outline-draw 1.72s cubic-bezier(0.65, 0, 0.2, 1) 180ms forwards,
    openai-outline-thicken 480ms cubic-bezier(0.2, 0.72, 0.2, 1) 2.02s forwards;
}

.openai-emblem.is-active .openai-build-fill {
  animation: openai-fill-logo 560ms cubic-bezier(0.2, 0.72, 0.2, 1) 2.2s forwards;
}

.openai-emblem::before {
  inset: 3%;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(25, 25, 25, 0.24) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(25, 25, 25, 0.16) 49% 51%, transparent 52%);
  transform: scale(0.55) rotate(0deg);
}

.openai-emblem.is-active::before {
  animation: openai-construction-grid 2.2s ease-out forwards;
}

.emblem-symbol {
  position: absolute;
  inset: 0;
  display: block;
  -webkit-mask: var(--provider-logo) center / contain no-repeat;
  mask: var(--provider-logo) center / contain no-repeat;
}

.emblem-symbol {
  background: var(--logo-fill);
  opacity: 0.96;
  filter: drop-shadow(0 12px 24px var(--provider-glow));
}

.model-emblem.is-active .emblem-symbol {
  opacity: 0;
  animation: provider-fill-reveal 900ms ease-out 420ms forwards;
}

.emblem-ripple {
  inset: 9%;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--provider-color), transparent 54%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  animation: provider-ripple 4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.claude-emblem .emblem-ripple {
  inset: 14%;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(217, 119, 87, 0.18));
  animation-name: claude-logo-edge;
}

.claude-emblem .emblem-ripple::before,
.claude-emblem .emblem-ripple::after {
  position: absolute;
  inset: 0;
  content: "";
  -webkit-mask: var(--provider-logo) center / contain no-repeat;
  mask: var(--provider-logo) center / contain no-repeat;
}

.claude-emblem .emblem-ripple::before {
  background: var(--logo-fill);
}

.claude-emblem .emblem-ripple::after {
  background: rgba(250, 249, 245, 0.96);
  transform: scale(0.84);
}

.r-two {
  animation-delay: 1.3s;
}

.r-three {
  animation-delay: 2.6s;
}

.model-emblem:not(.is-active) .emblem-ripple,
.model-emblem:not(.is-active) .gemini-star,
.model-emblem:not(.is-active) .gemini-float {
  animation-play-state: paused;
}

.gemini-star {
  width: 10px;
  height: 10px;
  background: var(--logo-fill);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: gemini-twinkle 2.8s ease-in-out infinite;
}

.star-one {
  top: 18%;
  left: 72%;
}

.star-two {
  top: 68%;
  left: 18%;
  width: 8px;
  height: 8px;
  animation-delay: 0.9s;
}

.star-three {
  top: 78%;
  left: 80%;
  width: 6px;
  height: 6px;
  animation-delay: 1.7s;
}

.gemini-float {
  display: block;
  width: 38px;
  aspect-ratio: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 254, 250, 0.95), transparent 42%),
    var(--logo-fill);
  -webkit-mask: var(--provider-logo) center / contain no-repeat;
  mask: var(--provider-logo) center / contain no-repeat;
  filter: drop-shadow(0 0 14px var(--provider-glow));
  transform: translate(-50%, -50%) scale(0.4);
}

.gemini-emblem.is-active .gemini-float {
  animation: gemini-float-field 5.6s ease-in-out infinite;
}

.gf-one {
  top: 10%;
  left: 18%;
  width: 38px;
  animation-delay: 0s;
}

.gf-two {
  top: 16%;
  left: 82%;
  width: 30px;
  animation-delay: 0.7s;
}

.gf-three {
  top: 50%;
  left: 4%;
  width: 28px;
  animation-delay: 1.4s;
}

.gf-four {
  top: 58%;
  left: 96%;
  width: 36px;
  animation-delay: 2.1s;
}

.gf-five {
  top: 88%;
  left: 30%;
  width: 24px;
  animation-delay: 2.8s;
}

.gf-six {
  top: 84%;
  left: 72%;
  width: 44px;
  animation-delay: 3.5s;
}

.gemini-emblem.is-active .emblem-core {
  animation:
    provider-breathe 3.2s ease-in-out infinite,
    gemini-main-shimmer 4.6s ease-in-out infinite;
}

main {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100svh;
  transform: translate3d(0, 0, 0);
  transition: transform 860ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.snap-section .hero-content,
.snap-section .section-copy,
.snap-section .code-stack,
.snap-section .feature-grid {
  opacity: 0;
  transform: translateY(26px);
}

.snap-section .hero-content {
  transform: none;
}

.snap-section.is-active-section .hero-content {
  animation: section-fade 520ms ease 120ms both;
}

.snap-section.is-active-section .section-copy {
  animation: section-rise 720ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms both;
}

.snap-section.is-active-section .code-stack,
.snap-section.is-active-section .feature-grid {
  animation: section-rise 780ms cubic-bezier(0.2, 0.7, 0.2, 1) 280ms both;
}

.snap-section {
  position: relative;
  z-index: 2;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 64px;
}

.hero-section {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(104px, 14vh, 160px);
  text-align: center;
}

.hero-content {
  width: min(920px, 100%);
  max-width: 100%;
}

.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-section h1,
.section-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-section h1 {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  height: 1.18em;
  min-height: 0;
  font-size: clamp(22px, 4.4vw, 54px);
  gap: 0 0.24em;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.welcome-text {
  flex: 0 0 auto;
  line-height: 1;
}

#typewriter {
  display: inline-block;
  height: 1em;
  color: #d97757;
  line-height: 1;
}

.type-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 11.8em;
  height: 1em;
  min-width: 0;
  justify-content: flex-start;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  flex: 0 0 auto;
  color: #d97757;
  line-height: 1;
  animation: blink 1s steps(2, start) infinite;
}

.hero-copy {
  margin: 24px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mobile-copy {
  display: none;
}

.down-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--accent-strong);
  transform: translateX(-50%);
  animation: cue-bounce 1.9s ease-in-out infinite;
}

.down-cue span {
  width: 15px;
  height: 15px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.content-section {
  display: grid;
  align-items: center;
}

.alt-section {
  background:
    linear-gradient(90deg, rgba(240, 237, 227, 0.72), rgba(255, 254, 250, 0.16)),
    transparent;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: clamp(36px, 6vw, 86px);
}

.section-inner.reverse {
  grid-template-columns: minmax(340px, 1.08fr) minmax(0, 0.92fr);
}

.section-inner.reverse .section-copy {
  grid-column: 2;
  grid-row: 1;
}

.section-inner.reverse .code-stack {
  grid-column: 1;
  grid-row: 1;
}

.section-copy h2 {
  max-width: 620px;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.section-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.centered {
  text-align: center;
}

.centered h2,
.centered p {
  margin-right: auto;
  margin-left: auto;
}

.pill-row,
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill-row span,
.metric-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(204, 120, 92, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  background: rgba(255, 254, 250, 0.6);
}

.pill-row.muted span {
  border-color: rgba(122, 139, 115, 0.25);
  color: var(--sage);
}

.metric-row strong {
  margin-right: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
}

.code-stack {
  display: grid;
  gap: 12px;
}

.content-section .code-stack {
  height: min(690px, calc(100svh - 150px));
  grid-template-rows: 38.2% minmax(0, 61.8%);
  gap: clamp(14px, 2.4vh, 22px);
  align-items: center;
  align-self: center;
}

.stack-cards {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  align-self: stretch;
  gap: 12px;
  min-height: 0;
}

.stack-cards .switcher {
  justify-self: center;
}

.stack-cards .code-window {
  width: 100%;
}

.switcher {
  position: relative;
  z-index: 4;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 430px);
  padding: 4px;
  border: 1px solid rgba(204, 120, 92, 0.16);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.7);
  box-shadow: 0 10px 28px rgba(61, 57, 41, 0.06);
}

.switcher button {
  pointer-events: auto;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.switcher button.is-active {
  color: #fff;
  background: var(--accent-strong);
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(204, 120, 92, 0.17);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.code-window.large {
  min-height: 220px;
}

.code-window.compact {
  width: min(420px, 100%);
  justify-self: end;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(204, 120, 92, 0.12);
  color: var(--muted);
  font-size: 12px;
  background: rgba(250, 249, 245, 0.84);
}

.window-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-bar button {
  min-width: 52px;
  height: 28px;
  border: 1px solid rgba(204, 120, 92, 0.25);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 254, 250, 0.78);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.window-bar button:hover,
.window-bar button.is-copied {
  border-color: var(--accent-strong);
  color: #fff;
  background: var(--accent-strong);
}

pre {
  margin: 0;
  padding: clamp(14px, 1.8vw, 20px);
  overflow-x: auto;
  color: #332f23;
  font-family: var(--mono);
  font-size: clamp(12px, 1.35vw, 14px);
  line-height: 1.62;
  white-space: pre;
}

.code-pane {
  display: none;
}

.code-pane.is-active {
  display: block;
}

.env-window pre {
  font-size: clamp(13px, 1.6vw, 16px);
}

.feature-section {
  display: grid;
  align-items: center;
}

.features-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.feature-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(204, 120, 92, 0.17);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.76);
  box-shadow: 0 18px 48px rgba(61, 57, 41, 0.09);
}

.feature-card h3 {
  margin: 42px 0 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.status.done {
  color: #496044;
  background: rgba(122, 139, 115, 0.14);
}

.status.progress {
  color: var(--accent-dark);
  background: rgba(204, 120, 92, 0.13);
}

.scroll-dots {
  position: fixed;
  top: 50%;
  right: max(22px, calc((100vw - 1260px) / 2));
  z-index: 40;
  display: grid;
  gap: 16px;
  transform: translateY(-50%);
}

.scroll-dots a {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(201, 100, 66, 0.55);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.84);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.scroll-dots a.is-active {
  background: var(--accent-strong);
  transform: scale(1.25);
}

.scroll-dots span {
  position: absolute;
  top: 50%;
  right: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(204, 120, 92, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 254, 250, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.scroll-dots a:hover span {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes logo-breathe {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: scale(0.74);
  }
  18% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes provider-fill-reveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes provider-ripple {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  16% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(2.24);
  }
}

@keyframes emblem-stage-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.035);
  }
}

@keyframes claude-logo-edge {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  18% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: scale(1.52);
  }
}

@keyframes openai-draw-frame {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  12% {
    opacity: 1;
  }
  86% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.18;
  }
}

@keyframes openai-outline-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
    filter: blur(2px) drop-shadow(0 0 5px var(--provider-glow));
  }
  12% {
    opacity: 0.92;
  }
  84% {
    opacity: 0.92;
    stroke-dashoffset: 0;
    filter: blur(0) drop-shadow(0 0 5px var(--provider-glow));
  }
  100% {
    opacity: 0.86;
    stroke-dashoffset: 0;
    filter: blur(0) drop-shadow(0 0 5px var(--provider-glow));
  }
}

@keyframes openai-outline-thicken {
  0% {
    opacity: 0.86;
    stroke-width: 0.5;
    transform: scale(1);
  }
  58% {
    opacity: 0.9;
    stroke-width: 1.25;
    transform: scale(1.006);
  }
  100% {
    opacity: 0.16;
    stroke-width: 2.05;
    transform: scale(1.012);
  }
}

@keyframes openai-fill-logo {
  0% {
    fill-opacity: 0;
    stroke-opacity: 0;
    stroke-width: 0.5;
    transform: scale(0.98);
  }
  24% {
    fill-opacity: 0;
    stroke-opacity: 0.72;
    stroke-width: 1.35;
  }
  58% {
    fill-opacity: 0.42;
    stroke-opacity: 0.9;
    stroke-width: 2.28;
    transform: scale(1.004);
  }
  84% {
    fill-opacity: 0.9;
    stroke-opacity: 0.64;
    stroke-width: 2.45;
    transform: scale(1.002);
  }
  100% {
    fill-opacity: 1;
    stroke-opacity: 0;
    stroke-width: 2.45;
    transform: scale(1);
  }
}

@keyframes openai-construction-grid {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-20deg);
  }
  28% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.24) rotate(35deg);
  }
}

@keyframes provider-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.045);
    filter: brightness(1.08);
  }
}

@keyframes openai-rotate {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes gemini-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }
  45% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes gemini-float-field {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(12px) scale(0.35);
  }
  16% {
    opacity: 0.78;
  }
  48% {
    opacity: 0.42;
    transform: translate(-50%, -50%) translateY(-18px) scale(1.08);
  }
  72% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-34px) scale(0.58);
  }
}

@keyframes gemini-main-shimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(204, 120, 92, 0));
  }
  45% {
    filter: drop-shadow(0 0 28px rgba(204, 120, 92, 0.36));
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 9px);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 66px;
  }

  .header-inner {
    width: min(100% - 24px, 760px);
    gap: 14px;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 0 2px;
    scrollbar-width: none;
  }

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

  .login-link {
    min-width: 58px;
  }

  .aether-logo-fixed {
    top: 31%;
    width: min(74vw, 300px);
  }

  body:not([data-current="home"]) .aether-logo-fixed {
    left: 50%;
    top: 30%;
    width: min(60vw, 240px);
    opacity: 0;
  }

  .snap-section {
    height: 100svh;
    min-height: 100svh;
    padding: 82px 20px 40px;
  }

  .hero-section {
    padding-bottom: 78px;
  }

  .hero-section h1 {
    font-size: clamp(22px, 5vw, 40px);
    line-height: 1;
  }

  .type-wrap {
    flex-basis: 11.8em;
  }

  .hero-copy {
    max-width: calc(100vw - 52px);
    font-size: 15px;
    line-height: 1.72;
    word-break: break-all;
  }

  .section-inner,
  .section-inner.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    max-height: calc(100svh - 122px);
  }

  .content-section .code-stack {
    height: auto;
    grid-template-rows: auto auto;
  }

  .section-inner.reverse .section-copy,
  .section-inner.reverse .code-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .model-emblem,
  .section-inner.reverse .model-emblem {
    width: min(58vw, 250px);
    justify-self: center;
    margin-bottom: 10px;
  }

  .section-copy h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .section-copy p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .code-window.compact {
    width: 100%;
    justify-self: stretch;
  }

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

  .feature-card {
    min-height: 180px;
  }

  .scroll-dots {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 20px);
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 28px;
    height: 27px;
  }

  .nav-links {
    max-width: 50vw;
    font-size: 13px;
  }

  .login-link {
    display: none;
  }

  .hero-section {
    align-items: flex-end;
    padding-bottom: 74px;
  }

  .hero-section h1 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .type-wrap {
    flex-basis: 11.25em;
  }

  .hero-content {
    padding-top: 36vh;
  }

  .content-section .section-inner,
  .content-section .section-inner.reverse {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .content-section .code-stack {
    order: 1;
    width: 100%;
    height: auto;
    grid-template-rows: auto;
    justify-items: center;
  }

  .content-section .section-copy {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .content-section .section-copy h2 {
    width: 100%;
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(23px, 6.4vw, 28px);
    line-height: 1.14;
    word-break: break-word;
  }

  .content-section .section-copy p:not(.eyebrow),
  .content-section .pill-row,
  .content-section .metric-row,
  .content-section .switcher,
  .content-section .code-window {
    display: none;
  }

  .content-section .model-emblem,
  .content-section .section-inner.reverse .model-emblem {
    width: min(74vw, 300px);
    margin-bottom: 18px;
  }

  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .switcher {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .switcher button {
    border-radius: 6px;
  }

  pre {
    font-size: 12px;
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .snap-section {
    padding-top: 86px;
    padding-bottom: 34px;
  }

  .section-copy h2 {
    font-size: clamp(32px, 4.2vw, 52px);
  }

  .section-copy p:not(.eyebrow) {
    margin-top: 18px;
    line-height: 1.7;
  }

  .content-section .code-stack {
    height: min(570px, calc(100svh - 126px));
    grid-template-rows: 38.2% minmax(0, 61.8%);
  }

  .model-emblem {
    width: clamp(230px, min(24vw, calc((100svh - 126px) * 0.42)), 300px);
  }

  .claude-code + .code-window,
  .code-window.compact {
    display: none;
  }

  .code-window.large {
    min-height: 198px;
  }
}

@media (max-height: 760px) and (max-width: 900px) {
  .snap-section {
    padding-top: 74px;
    padding-bottom: 28px;
  }

  .section-inner,
  .section-inner.reverse {
    gap: 14px;
    max-height: calc(100svh - 102px);
  }

  .section-copy p:not(.eyebrow),
  .pill-row,
  .metric-row {
    display: none;
  }

  .model-emblem,
  .section-inner.reverse .model-emblem {
    width: min(56vw, 220px);
  }

  .code-stack {
    gap: 10px;
  }

  .code-window.large {
    min-height: auto;
  }

  pre {
    padding: 12px;
    line-height: 1.45;
  }

  .feature-grid {
    gap: 10px;
    margin-top: 22px;
  }

  .feature-card {
    min-height: auto;
    padding: 16px;
  }

  .feature-card h3 {
    margin-top: 18px;
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
