:root {
  --color-ink: #080808;
  --color-muted: #5f6268;
  --color-line: #e8e5dc;
  --color-soft: #f7f7f3;
  --color-panel: #ffffff;
  --color-accent: #fff1c2;
  --color-accent-strong: #d9b84f;
  --color-blue: #2563eb;
  --color-green: #168a4a;
  --color-red: #c2413b;
  --shadow-lg: 0 24px 70px rgba(8, 8, 8, 0.12);
  --shadow-sm: 0 12px 32px rgba(8, 8, 8, 0.06);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-panel);
  color: var(--color-ink);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
  height: 1em;
  width: 1em;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 0;
  background: rgba(255, 247, 219, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1480px, calc(100% - 32px));
  min-height: 68px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 500;
  letter-spacing: 0;
}

.brand span:last-child {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: url("./assets/yellow-star-logo.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.brand-small .brand-mark {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
  margin: 0 24px 0 auto;
  color: #202124;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-submenu,
.nav-actions,
.mobile-menu {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(234, 220, 169, 0.8);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(8, 8, 8, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 0;
  color: var(--color-ink);
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: var(--color-accent);
  color: var(--color-ink);
}

.nav-item.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links .nav-item.is-open > .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-caret svg {
  width: 12px;
  height: 12px;
}

.nav-links a:not(.button):hover,
.mobile-menu a:not(.button):hover,
.site-footer a:hover {
  color: var(--color-muted);
}

.nav-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: stretch;
  align-items: center;
  gap: 14px;
}

.nav-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-ink);
}

.nav-icon-button svg {
  width: 18px;
  height: 18px;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffbe38;
  color: #ffffff;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  gap: 10px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--color-ink);
  color: #ffffff;
}

.button-dark:hover {
  background: #303030;
}

.button-light {
  border-color: #d6d2c8;
  background: #ffffff;
}

.button-light:hover {
  border-color: var(--color-ink);
}

.button-accent {
  background: var(--color-accent);
  color: var(--color-ink);
}

.button-accent:hover {
  background: #f0dfaa;
}

.button-compact {
  min-height: 40px;
  padding-inline: 18px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--color-ink);
  align-items: center;
  justify-content: center;
}

.menu-close,
.menu-is-open .menu-open {
  display: none;
}

.menu-is-open .menu-close {
  display: block;
}

.mobile-menu {
  display: none;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 58px;
  align-items: center;
  min-height: 760px;
  padding-top: 120px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  min-height: 32px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #eadca9;
  border-radius: 999px;
  background: var(--color-accent);
  color: #3a3219;
  font-size: 0.9rem;
  font-weight: 500;
}

.eyebrow-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  font-size: 0.76rem;
}

.eyebrow-text {
  color: #5f6268;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.24em;
  max-width: 760px;
  margin-bottom: 40px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 4.35rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero h1 span {
  display: inline-block;
  color: #b8962e;
}

.hero h1 .hero-title-main {
  color: var(--color-ink);
  font-size: 1em;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 56px;
  color: var(--color-muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-visual {
  position: relative;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(217, 184, 79, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 241, 194, 0.5), rgba(37, 99, 235, 0.08));
  transform: rotate(-2deg);
}

.terminal-window {
  position: relative;
  overflow: hidden;
  height: 432px;
  border: 1px solid #ddd8cc;
  border-radius: var(--radius);
  background: #fafaf7;
  box-shadow: var(--shadow-lg);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-line);
  background: #f1f0ea;
}

.terminal-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.terminal-topbar span:nth-child(1) {
  background: #e56c62;
}

.terminal-topbar span:nth-child(2) {
  background: #e2b54c;
}

.terminal-topbar span:nth-child(3) {
  background: #5fbf73;
}

.terminal-topbar strong {
  margin-left: 8px;
  color: #676b72;
  font-size: 0.78rem;
  font-weight: 500;
}

.terminal-body {
  height: calc(100% - 48px);
  overflow: auto;
  padding: 22px;
  color: #111827;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.terminal-body::-webkit-scrollbar-track {
  background: #f0eee6;
}

.terminal-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9c4b6;
}

.terminal-muted {
  margin-bottom: 8px;
  color: #8a8f98;
}

.terminal-command {
  margin-bottom: 18px;
}

.terminal-progress {
  margin-bottom: 6px;
  color: var(--color-blue);
}

.terminal-success {
  margin-bottom: 0;
  color: var(--color-green);
  font-weight: 500;
}

.terminal-typing-caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.14em;
  animation: terminal-caret-blink 820ms steps(2, end) infinite;
}

@keyframes terminal-caret-blink {
  50% {
    opacity: 0;
  }
}

pre {
  overflow-x: auto;
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #262a30;
  scrollbar-width: none;
}

pre::-webkit-scrollbar {
  width: 0;
  height: 0;
}

pre.terminal-code-pending {
  display: none;
}

.section {
  padding: 92px 0;
}

main > .section:not(.hero),
.cta-section,
.site-footer {
  font-family: Helvetica, Arial, sans-serif;
}

.section-muted {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 247, 219, 0.74) 18%, var(--color-soft) 38%),
    var(--color-soft);
}

.section-muted::before,
.section-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 0;
  width: min(1180px, calc(100% - 24px));
  height: 190px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.2) 22%, rgba(255, 216, 96, 0.72) 48%, rgba(22, 138, 74, 0.18) 73%, rgba(37, 99, 235, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 194, 0.4) 52%, rgba(247, 247, 243, 0));
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.92;
  transform: translateX(-50%);
}

.section-muted::before {
  top: -92px;
}

.section-muted::after {
  bottom: -102px;
  transform: translateX(-50%) scaleY(-1);
}

.section-muted#pricing::after {
  opacity: 0;
}

.section-muted > * {
  position: relative;
  z-index: 1;
}

#features .section-heading,
#features .feature-grid {
  z-index: 4;
}

#features {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 250, 232, 0.44) 11%, rgba(250, 250, 247, 0.96) 30%, rgba(250, 250, 247, 0.94) 74%, rgba(255, 250, 232, 0.24) 91%, rgba(255, 255, 255, 0.82) 100%),
    #fafaf7;
}

#features::after {
  bottom: -92px;
  width: min(1240px, calc(100vw + 80px));
  height: 138px;
  background:
    linear-gradient(90deg, rgba(255, 241, 194, 0) 0%, rgba(255, 241, 194, 0.16) 22%, rgba(255, 252, 238, 0.36) 50%, rgba(255, 241, 194, 0.14) 78%, rgba(255, 241, 194, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 232, 0.24) 52%, rgba(255, 255, 255, 0));
  filter: blur(20px);
  opacity: 0.54;
}

#workflow {
  position: relative;
  isolation: isolate;
}

#workflow::before {
  content: "";
  position: absolute;
  top: -58px;
  left: 50%;
  z-index: 0;
  width: min(1420px, calc(100vw + 140px));
  height: 98px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 241, 194, 0.32) 0%, rgba(255, 250, 232, 0.26) 46%, rgba(255, 255, 255, 0) 80%);
  filter: blur(15px);
  opacity: 0.5;
  transform: translateX(-50%);
}

#workflow > * {
  position: relative;
  z-index: 1;
}

.floral-edge {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: min(1420px, calc(100vw + 140px));
  height: 90px;
  pointer-events: none;
  transform: translateX(-50%);
}

.floral-edge::before,
.floral-edge::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.floral-edge::before {
  inset: 16px -24px 16px;
  background:
    linear-gradient(90deg, rgba(255, 241, 194, 0) 0%, rgba(255, 241, 194, 0.28) 16%, rgba(255, 252, 238, 0.44) 50%, rgba(255, 241, 194, 0.26) 84%, rgba(255, 241, 194, 0) 100%);
  filter: blur(13px);
  opacity: 0.36;
}

.floral-edge::after {
  display: none;
}

.floral-edge-top {
  top: -22px;
}

.floral-edge-bottom {
  bottom: -24px;
  transform: translateX(-50%) rotate(180deg);
}

.floral-vine {
  position: absolute;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(153, 118, 21, 0.12));
  opacity: var(--vine-opacity, 0.96);
  transform-origin: var(--vine-origin, 50% 22%);
  animation: vine-sway var(--vine-speed, 7s) ease-in-out infinite;
  animation-delay: var(--vine-delay, 0s);
}

.vine-main {
  left: -34px;
  top: 18px;
  width: 1060px;
  height: 260px;
  --vine-rotate: -1deg;
  --vine-speed: 7.8s;
  background-image: url("./assets/art-nouveau-vine.svg");
}

.vine-flower {
  left: 35%;
  top: 62px;
  width: 820px;
  height: 214px;
  --vine-rotate: 2deg;
  --vine-delay: -2.3s;
  --vine-speed: 8.6s;
  --vine-opacity: 0.74;
  background-image: url("./assets/art-nouveau-vine.svg");
}

.vine-trail {
  right: -88px;
  top: 0;
  width: 640px;
  height: 188px;
  --vine-rotate: 3deg;
  --vine-delay: -4.6s;
  --vine-speed: 6.8s;
  --vine-opacity: 0.78;
  background-image: url("./assets/art-nouveau-vine.svg");
}

@keyframes vine-sway {
  0%,
  100% {
    transform: rotate(calc(var(--vine-rotate) - 1deg)) translateY(0);
  }

  50% {
    transform: rotate(calc(var(--vine-rotate) + 1deg)) translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floral-vine {
    animation: none;
  }
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.dashboard-copy h2,
.cta-inner h2 {
  margin-bottom: 14px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.dashboard-copy p,
.cta-inner p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.03rem;
}

.section-heading p {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

#pricing .section-heading p {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.pricing-card,
.workflow-step,
.metric-card,
.market-chart,
.log-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.feature-card {
  padding: 28px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: rgba(255, 241, 194, 0.7);
  color: var(--color-ink);
  font-size: 1.45rem;
}

.feature-card h3,
.workflow-step h3,
.pricing-card h3 {
  margin-bottom: 10px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.feature-card p,
.workflow-step p,
.pricing-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
}

.workflow-step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  height: 100%;
  min-height: 218px;
  padding: 24px;
}

.feature-card,
.workflow-step {
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    border-color 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.feature-grid.is-reveal-ready .feature-card,
.workflow-grid.is-reveal-ready .workflow-step {
  opacity: 0;
  transform: translateY(22px);
}

.feature-grid.is-reveal-ready .feature-card.is-visible,
.workflow-grid.is-reveal-ready .workflow-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workflow-step span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-accent-strong);
  font-weight: 500;
}

.dashboard-section {
  position: relative;
  z-index: 6;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: center;
}

.dashboard-copy,
.dashboard-preview {
  position: relative;
  z-index: 2;
}

.dashboard-copy {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

.dashboard-copy ul,
.pricing-card ul {
  padding: 0;
  margin: 26px 0 28px;
  list-style: none;
}

.dashboard-copy li,
.pricing-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: #34363a;
}

.dashboard-copy li::before,
.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--color-muted);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ddd8cc;
  border-radius: var(--radius);
  background: #f7f7f3;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  box-shadow: var(--shadow-lg);
}

.dashboard-preview.is-dashboard-live {
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(217, 184, 79, 0.1),
    0 24px 70px rgba(37, 99, 235, 0.08);
}

.market-chart {
  padding: 18px 20px 16px;
}

.market-chart > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.market-chart span,
.metric-card span,
.log-title {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.market-chart strong {
  color: var(--color-green);
  font-weight: 500;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 160px;
}

.bar-chart span {
  flex: 1;
  min-width: 14px;
  height: 100%;
  border-radius: 6px 6px 0 0;
  background: #dedbd1;
  transform: scaleY(var(--bar-scale));
  transform-origin: center bottom;
  will-change: transform;
}

.bar-chart span.active {
  background: var(--color-ink);
}

.bar-chart span:nth-child(3),
.bar-chart span:nth-child(5),
.bar-chart span:nth-child(8) {
  background: var(--color-accent-strong);
}

.metric-grid {
  display: grid;
  gap: 16px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
  font-weight: 500;
}

.metric-positive strong {
  color: var(--color-green);
}

.metric-warning strong {
  color: #986a12;
}

.log-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.log-title {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.log-row {
  display: grid;
  grid-template-columns: 88px 86px minmax(98px, 1fr) 104px;
  gap: 16px;
  align-items: center;
  min-height: 28px;
  color: #565b63;
  font-size: 0.8rem;
}

.log-row strong {
  font-weight: 500;
  white-space: nowrap;
}

.log-row span {
  min-width: 0;
  white-space: nowrap;
}

.log-type-buy {
  color: var(--color-green);
}

.log-type-sell {
  color: var(--color-red);
}

.log-type-api {
  color: var(--color-blue);
}

.log-type-signal,
.log-type-sync,
.log-type-backtest {
  color: var(--color-blue);
}

.log-type-quote,
.log-type-hedge,
.log-type-rebalance {
  color: #986a12;
}

.log-type-risk,
.log-type-alert,
.log-type-cancel {
  color: var(--color-red);
}

.pricing-card {
  border: 0;
  box-shadow: 0 12px 28px rgba(8, 8, 8, 0.075);
  padding: 28px;
}

.pricing-card.is-featured {
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(153, 118, 21, 0.14);
}

.pricing-card > strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.pricing-card ul {
  margin-bottom: 0;
}

.cta-section {
  padding: 92px 20px;
  background: var(--color-ink);
  color: #ffffff;
  text-align: center;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.cta-inner p {
  color: #babdc3;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.cta-form input {
  width: min(330px, 100%);
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
}

.cta-form input:focus {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 4px rgba(255, 241, 194, 0.22);
}

.form-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--color-accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .menu-is-open .mobile-menu {
    display: grid;
  }

  .mobile-menu .nav-item,
  .mobile-menu .nav-link {
    justify-content: space-between;
    font-size: 0.93rem;
    font-weight: 500;
  }

  .mobile-menu .nav-item {
    display: grid;
  }

  .mobile-menu .nav-submenu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-download {
    margin-top: 10px;
    min-height: 48px;
    border-radius: 999px;
  }
}

@media (max-width: 1040px) {
  .hero,
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .product-visual {
    width: 100%;
  }

  .feature-grid,
  .pricing-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .section,
  .site-footer,
  .mobile-menu {
    width: min(100% - 28px, 1120px);
  }

  .section,
  .section-muted,
  .cta-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .floral-edge {
    width: calc(100vw + 92px);
    height: 78px;
  }

  .floral-edge-top {
    top: -18px;
  }

  .floral-edge-bottom {
    bottom: -20px;
  }

  .floral-edge::before {
    inset: 14px -18px 14px;
  }

  .floral-edge::after {
    display: none;
  }

  .vine-main {
    left: -158px;
    top: 34px;
    width: 680px;
    height: 168px;
  }

  .vine-flower {
    left: 72px;
    top: 68px;
    width: 420px;
    height: 132px;
    opacity: 0.54;
  }

  .vine-trail {
    display: none;
  }

  .hero {
    gap: 34px;
    padding-top: 100px;
  }

  .hero h1 {
    display: block;
    max-width: 620px;
    font-size: clamp(2.7rem, 13vw, 3.8rem);
    white-space: normal;
  }

  .hero h1 span {
    display: block;
  }

  .hero-actions,
  .cta-form {
    flex-direction: column;
  }

  .button,
  .cta-form input {
    width: 100%;
  }

  .terminal-window {
    height: 440px;
  }

  .feature-grid,
  .pricing-grid,
  .workflow-grid,
  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 74px 82px 1fr;
  }

  .log-row span:last-child {
    grid-column: 3;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
