/* ==========================================================================
   Calopic marketing site
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--mid) var(--ease), border-color var(--mid) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(11, 13, 18, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* The landing page keeps its navigation inside the first screen: it sits on
   top of the hero and scrolls away with it, instead of trailing the reader
   through the whole page. */
body[data-nav="overlay"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-nav="overlay"] .site-header[data-scrolled="true"] {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-nav="overlay"] .hero {
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 88px));
}

:root[data-theme="light"] .site-header[data-scrolled="true"] {
  background: rgba(246, 247, 251, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  flex: none;
  transition: opacity var(--mid) var(--ease);
}
.brand:hover {
  opacity: 0.88;
}

.brand-mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 10px rgba(232, 112, 42, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 16px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 550;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-icon {
  display: none;
}
:root[data-theme="dark"] .theme-icon-sun,
:root:not([data-theme]) .theme-icon-sun {
  display: block;
}
:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding-inline: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-dim);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  cursor: pointer;
}

.lang-switch:hover,
.lang-switch:focus-within {
  background: var(--surface-2);
  border-color: var(--border);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
  flex: none;
  pointer-events: none;
}

.lang-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  outline: none;
  max-width: 92px;
}

.lang-select option {
  background: var(--surface);
  color: var(--text);
}

.header-cta {
  gap: 7px;
  margin-inline-start: 4px;
}
.header-cta .icon {
  width: 15px;
  height: 15px;
}

.menu-toggle {
  display: none;
}
.menu-icon {
  display: block;
}
.menu-icon-close {
  display: none;
}
.site-header.nav-open .menu-icon-open {
  display: none;
}
.site-header.nav-open .menu-icon-close {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  animation: mobile-nav-in var(--mid) var(--ease);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: 10px 16px;
}

.mobile-nav-inner a {
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 550;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-inner a:last-child {
  border-bottom: 0;
}

.mobile-nav-inner a:hover {
  color: var(--text);
}

@keyframes mobile-nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -340px -12% auto;
  height: 900px;
  z-index: -2;
  background:
    radial-gradient(640px 420px at 18% 34%, rgba(232, 112, 42, 0.3), transparent 62%),
    radial-gradient(560px 400px at 76% 26%, rgba(201, 161, 138, 0.18), transparent 64%),
    radial-gradient(420px 300px at 52% 8%, rgba(166, 166, 172, 0.12), transparent 66%);
  filter: blur(6px);
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

:root[data-theme="light"] .hero::after {
  background-image: radial-gradient(rgba(16, 24, 40, 0.09) 1px, transparent 1px);
}



.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 590px;
  animation: rise-in var(--slow) var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(21, 26, 38, 0.6);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 550;
  color: var(--text-dim);
}

:root[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.72);
}

.hero-badge .badge-logo {
  width: 20px;
  height: 20px;
  flex: none;
  filter: drop-shadow(0 1px 5px rgba(232, 112, 42, 0.45));
}

.hero-badge .badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-badge .badge-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(36px, 4.7vw, 58px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero-sub {
  margin-top: 20px;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
}

.hero-stage {
  position: relative;
  animation: rise-in var(--slow) 40ms var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Window / app mockup
   -------------------------------------------------------------------------- */
.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2), 0 40px 120px rgba(0, 0, 0, 0.45);
}

.app-window-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0.28;
  filter: blur(26px);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding-inline: 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.35;
}

.traffic i:nth-child(1) {
  background: #f87171;
  opacity: 0.8;
}
.traffic i:nth-child(2) {
  background: #fbbf24;
  opacity: 0.8;
}
.traffic i:nth-child(3) {
  background: #34d399;
  opacity: 0.8;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-inline: auto;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.app-title img {
  width: 14px;
  height: 14px;
}

.app-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 342px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  background: var(--bg-soft);
  border-inline-end: 1px solid var(--border);
}

.side-new {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 112, 42, 0.3);
  color: #F2C4A5;
  font-size: 11.5px;
  font-weight: 600;
}

:root[data-theme="light"] .side-new {
  color: var(--accent);
}

.side-new svg {
  width: 13px;
  height: 13px;
}

.side-label {
  padding: 6px 10px 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-item svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.82;
}

.side-item.active {
  background: var(--surface-2);
  color: var(--text);
}

.side-item.active svg {
  color: var(--accent-2);
  opacity: 1;
}

.side-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.credits-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 112, 42, 0.28);
  font-size: 10.5px;
  color: var(--text);
}

.credits-pill svg {
  width: 12px;
  height: 12px;
  color: #C9A18A;
}

.credits-pill b {
  margin-inline-start: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(420px 200px at 70% 0%, rgba(232, 112, 42, 0.06), transparent 70%),
    var(--surface);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
}

.mode-chips {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.mode-chip {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-faint);
}

.mode-chip.active {
  border-color: rgba(232, 112, 42, 0.45);
  background: var(--accent-soft);
  color: #F2C4A5;
}

:root[data-theme="light"] .mode-chip.active {
  color: var(--accent);
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
}

.msg {
  display: flex;
  gap: 9px;
  max-width: 92%;
}

.msg p {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.msg-user {
  margin-inline-start: auto;
}

.msg-user p {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-end-end-radius: 4px;
}

.msg-ai {
  max-width: 100%;
}

.msg-ai .ai-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--accent);
}

.msg-ai .ai-avatar img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.msg-ai p {
  padding: 0;
  color: var(--text-dim);
}

.ai-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 12px;
  margin-inline-start: 2px;
  vertical-align: -2px;
  background: var(--accent-2);
  animation: caret-blink 1s steps(2) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.chat-tool {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  font-size: 10.5px;
  color: var(--text-faint);
  width: fit-content;
}

.chat-tool svg {
  width: 12px;
  height: 12px;
  color: var(--success);
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 16px 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 11px;
}

.chat-composer .composer-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.chat-composer .composer-send svg {
  width: 13px;
  height: 13px;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(21, 26, 38, 0.86);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  font-size: 11px;
  color: var(--text-dim);
}

:root[data-theme="light"] .float-card {
  background: rgba(255, 255, 255, 0.92);
}

.float-card .float-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.float-card .float-value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.float-card .float-value span {
  font-size: 11px;
  font-weight: 550;
  color: var(--text-faint);
}

.float-card-credits {
  inset-block-end: 26px;
  inset-inline-start: -34px;
  animation: none;
}

.float-card-lines {
  inset-block-start: 92px;
  inset-inline-end: -22px;
  animation: none;
}



.float-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 10px;
  font-weight: 600;
}

.float-trend svg {
  width: 11px;
  height: 11px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 46px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .section-subtitle {
  margin-inline: auto;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head .eyebrow {
  margin-bottom: 2px;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 84px);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
}

.feature-row.reverse .feature-visual {
  order: 2;
}

.feature-copy h3 {
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.feature-copy > p {
  margin-top: 16px;
  max-width: 460px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.feature-list li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--accent-2);
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}

.feature-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--fast) var(--ease);
}

.feature-cta:hover svg {
  transform: translateX(3px);
}

[dir="rtl"] .feature-cta:hover svg {
  transform: translateX(-3px);
}

.feature-visual {
  position: relative;
  min-width: 0;
}

/* chat feature reuses app-window */
.feature-visual .app-window {
  box-shadow: var(--shadow-2);
}

/* computer control mock */
.control-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.control-body {
  padding: 16px;
  background:
    radial-gradient(420px 240px at 20% 0%, rgba(201, 161, 138, 0.08), transparent 70%),
    var(--surface);
}

.screen-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0e0e10;
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}

.screen-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.screen-topbar .traffic i {
  width: 7px;
  height: 7px;
}

.screen-title {
  margin-inline: auto;
  font-size: 9px;
  color: rgba(232, 236, 245, 0.45);
}

.screen-desktop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.screen-card {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 236, 245, 0.72);
  font-size: 9.5px;
}

.screen-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #e8ecf5;
}

.screen-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-top: 4px;
}

.screen-bars i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #F08140, rgba(232, 112, 42, 0.25));
}

.screen-cursor {
  position: absolute;
  inset-block-start: 46%;
  inset-inline-start: 62%;
  width: 16px;
  height: 16px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: none;
}

@keyframes cursor-move {
  0%,
  100% {
    transform: translate(0, 0);
  }
  40% {
    transform: translate(-38px, 24px);
  }
  70% {
    transform: translate(14px, 38px);
  }
}

.consent-card {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 14px;
  width: 190px;
  transform: translateY(-50%);
  padding: 12px;
  border: 1px solid rgba(232, 112, 42, 0.4);
  border-radius: 11px;
  background: rgba(17, 21, 34, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #e8ecf5;
  font-size: 9.5px;
  line-height: 1.5;
}

.consent-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
}

.consent-head svg {
  width: 13px;
  height: 13px;
  color: #C9A18A;
}

.consent-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.consent-actions span {
  flex: 1;
  padding: 5px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
}

.consent-allow {
  background: linear-gradient(135deg, #E8702A, #C9A18A);
  color: #fff;
}

.consent-deny {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(232, 236, 245, 0.7);
}

.action-log {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  font-size: 10.5px;
  color: var(--text-dim);
}

.action-row svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--success);
}

.action-row .action-time {
  margin-inline-start: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.emergency-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding: 5px 10px;
  border: 1px solid rgba(217, 107, 94, 0.4);
  border-radius: var(--radius-pill);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
}

.emergency-stop svg {
  width: 11px;
  height: 11px;
}

/* --------------------------------------------------------------------------
   CaloCode IDE mock
   -------------------------------------------------------------------------- */
.ide-mock {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 152px;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  min-height: 372px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0C0C0E;
  color: #c7d0dd;
  box-shadow: var(--shadow-2);
  font-size: 10.5px;
}

.ide-sidebar {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  background: #101012;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.07);
}

.ide-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7d8b9e;
}

.ide-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  color: #8b98a9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ide-file svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.ide-file.active {
  background: rgba(232, 112, 42, 0.18);
  color: #fff;
}

.ide-file.nested {
  padding-inline-start: 17px;
}

.ide-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ide-tabs {
  display: flex;
  align-items: center;
  background: #101012;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ide-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 9.5px;
  color: #7d8b9e;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}

.ide-tab.active {
  color: #e8ecf5;
  background: #0C0C0E;
  box-shadow: inset 0 1px 0 #C9A18A;
}

.ide-tab .unsaved {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D9A441;
}

.ide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 9px;
  color: #6b7788;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-code {
  overflow: hidden;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 9.6px;
  line-height: 1.75;
}

.code-line {
  display: flex;
  gap: 12px;
  padding-inline: 12px;
  white-space: pre;
  direction: ltr;
  text-align: left;
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.025);
}

.line-no {
  width: 16px;
  flex: none;
  text-align: end;
  color: #45505f;
  user-select: none;
}

.tok-keyword {
  color: #e8702a;
}
.tok-fn {
  color: #d9b98a;
}
.tok-str {
  color: #a8b89a;
}
.tok-comment {
  color: #6e6e75;
}
.tok-tag {
  color: #d98b6b;
}
.tok-attr {
  color: #e6c08a;
}
.tok-var {
  color: #e8a87c;
}
.tok-plain {
  color: #a6a6ac;
}

.ide-agent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #101012;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
}

.agent-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d8b9e;
}

.agent-title img {
  width: 12px;
  height: 12px;
}

.agent-card {
  padding: 8px;
  border: 1px solid rgba(232, 112, 42, 0.3);
  border-radius: 8px;
  background: rgba(232, 112, 42, 0.1);
  font-size: 9px;
  line-height: 1.5;
  color: #b9c4d4;
}

.agent-card strong {
  display: block;
  margin-bottom: 3px;
  color: #e8ecf5;
  font-size: 9.5px;
}

.agent-diff {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.agent-diff .add {
  color: var(--success);
  background: rgba(121, 181, 142, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.agent-diff .del {
  color: var(--danger);
  background: rgba(217, 107, 94, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.agent-actions {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.agent-actions span {
  flex: 1;
  padding: 4px 0;
  border-radius: 5px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 600;
}

.agent-accept {
  background: linear-gradient(135deg, #E8702A, #C9A18A);
  color: #fff;
}

.agent-reject {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #9ba6b6;
}

.ide-terminal {
  grid-column: 2 / 4;
  padding: 7px 12px 9px;
  background: #0A0A0C;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  color: #7d8b9e;
  direction: ltr;
  text-align: left;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminal-prompt {
  color: #C9A18A;
}

.terminal-ok {
  color: var(--success);
}

.terminal-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: #c7d0dd;
  animation: caret-blink 1.1s steps(2) infinite;
}

/* --------------------------------------------------------------------------
   Credits / billing section
   -------------------------------------------------------------------------- */
.billing-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(560px 300px at 8% 0%, rgba(232, 112, 42, 0.12), transparent 65%),
    radial-gradient(460px 300px at 92% 100%, rgba(201, 161, 138, 0.1), transparent 65%),
    var(--surface);
}

.billing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(232, 112, 42, 0.18);
  pointer-events: none;
}

.billing-copy h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.billing-copy > p {
  margin-top: 16px;
  max-width: 480px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.billing-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.billing-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.billing-points svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent-2);
  margin-top: 2px;
}

.billing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
}

.billing-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--mid) var(--ease);
}

.billing-link:hover svg {
  transform: translateX(3px);
}

[dir="rtl"] .billing-link:hover svg {
  transform: translateX(-3px) scaleX(-1);
}

[dir="rtl"] .billing-link svg {
  transform: scaleX(-1);
}

.meter-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.meter-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.meter-head img {
  width: 16px;
  height: 16px;
}

.meter-head .badge {
  margin-inline-start: auto;
}

.meter-body {
  padding: 16px;
}

.meter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.meter-row + .meter-row {
  border-top: 1px dashed var(--border);
}

.meter-row strong {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.meter-bar {
  height: 8px;
  margin: 12px 0 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.meter-bar span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(201, 161, 138, 0.4);
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.meter-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 112, 42, 0.25);
}

.meter-total span {
  font-size: 12px;
  color: var(--text-dim);
}

.meter-total strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.meter-note {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pricing cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease),
    box-shadow var(--mid) var(--ease);
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.price-card.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent) border-box;
  box-shadow: var(--shadow-glow);
}

.price-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 112, 42, 0.4);
}

.price-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.price-amount .currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dim);
}

.price-amount .value {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-amount .period {
  font-size: 12px;
  color: var(--text-faint);
}

.price-credits {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.price-credits svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
}

.price-card.popular .price-credits {
  background: var(--accent-soft);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 20px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.price-features svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--success);
}

.price-card .btn {
  margin-top: auto;
}

.price-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--mid) var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent-2);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: transform var(--mid) var(--ease), background-color var(--mid) var(--ease),
    color var(--mid) var(--ease);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.faq-answer {
  padding: 0 20px 18px;
  max-width: 92%;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 20px 0 clamp(56px, 7vw, 96px);
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(620px 320px at 50% -20%, rgba(232, 112, 42, 0.22), transparent 70%),
    radial-gradient(420px 260px at 88% 110%, rgba(201, 161, 138, 0.16), transparent 70%),
    var(--surface);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

:root[data-theme="light"] .cta-card::before {
  background-image: radial-gradient(rgba(16, 24, 40, 0.08) 1px, transparent 1px);
}

.cta-card > * {
  position: relative;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 600;
}

.cta-card p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cta-note {
  margin-top: 18px !important;
  font-size: 12px !important;
  color: var(--text-faint) !important;
}

/* --------------------------------------------------------------------------
   Subpage hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -320px 0 auto;
  height: 640px;
  z-index: -1;
  background:
    radial-gradient(520px 320px at 30% 60%, rgba(232, 112, 42, 0.22), transparent 65%),
    radial-gradient(460px 300px at 72% 50%, rgba(201, 161, 138, 0.14), transparent 65%);
  filter: blur(4px);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.page-hero p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: 16.5px;
  line-height: 1.7;
}

.page-body {
  padding: 16px 0 clamp(56px, 7vw, 88px);
}

/* --------------------------------------------------------------------------
   Docs
   -------------------------------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--border);
}

.docs-sidebar-title {
  padding: 6px 10px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--text);
  background: var(--surface-2);
}

.docs-sidebar a.active {
  box-shadow: inset 2px 0 0 var(--accent-2);
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
  min-width: 0;
}

.doc-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.doc-step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(232, 112, 42, 0.3);
  background: var(--accent-soft);
  color: #F2C4A5;
  font-size: 15px;
  font-weight: 600;
}

:root[data-theme="light"] .doc-step-num {
  color: var(--accent);
}

.doc-step h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.doc-step > div > p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.doc-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-2);
}

.callout {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

.callout strong {
  color: var(--text);
}

.callout a {
  color: var(--accent-2);
  font-weight: 600;
}

.code-block {
  margin-top: 14px;
  padding: 13px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}

.code-block .c-comment {
  color: var(--text-faint);
}
.code-block .c-key {
  color: #F2C4A5;
}
.code-block .c-str {
  color: #C9A18A;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mode-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mode-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.mode-card h3 svg {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
}

.mode-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--border);
}

.legal-toc a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.legal-toc a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.legal-content {
  max-width: 800px;
  min-width: 0;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.legal-intro {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.75;
}

.legal-section {
  margin-top: 36px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.legal-section h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.legal-section p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.legal-section ul {
  margin-top: 10px;
  padding-inline-start: 20px;
  list-style: disc;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.legal-section ul li::marker {
  color: var(--accent-2);
}

.legal-section a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-card h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.contact-card > p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.contact-email svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--accent-2);
}

.contact-email .copy-btn {
  margin-inline-start: auto;
  flex: none;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.contact-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.contact-meta svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--text-faint);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Utility pages (verify email, reset password, checkout)
   -------------------------------------------------------------------------- */
.utility-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.utility-header {
  padding: 20px 0;
}

.utility-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 20px 64px;
}

.utility-main::before {
  content: "";
  position: absolute;
  inset: -240px 0 auto;
  height: 700px;
  z-index: -1;
  background:
    radial-gradient(520px 340px at 28% 40%, rgba(232, 112, 42, 0.2), transparent 65%),
    radial-gradient(480px 320px at 74% 30%, rgba(201, 161, 138, 0.13), transparent 65%);
}

.utility-card {
  width: 100%;
  max-width: 480px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-align: center;
  animation: rise-in var(--slow) var(--ease) both;
}

.utility-card.wide {
  max-width: 560px;
}

.utility-card h1 {
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.utility-card > p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.utility-card .field {
  margin-top: 18px;
  text-align: start;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
}

.status-icon svg {
  width: 28px;
  height: 28px;
}

.status-icon.success {
  border-color: rgba(121, 181, 142, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.status-icon.error {
  border-color: rgba(217, 107, 94, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.status-icon.info {
  border-color: rgba(232, 112, 42, 0.35);
  background: var(--accent-soft);
  color: #F2C4A5;
}

.status-icon.loading {
  color: var(--accent-2);
}

.utility-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.utility-actions .btn {
  width: 100%;
}

.utility-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.65;
}

.utility-note a {
  color: var(--accent-2);
}

.utility-note code {
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 4px;
}

.utility-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.utility-alert svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: var(--text-faint);
}

.utility-alert.error {
  border-color: rgba(217, 107, 94, 0.32);
  background: var(--danger-soft);
  color: var(--danger);
}

.utility-alert.error svg {
  color: var(--danger);
}

.utility-alert.success {
  border-color: rgba(121, 181, 142, 0.32);
  background: var(--success-soft);
  color: var(--success);
}

.utility-alert.success svg {
  color: var(--success);
}

.utility-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  text-align: start;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-inline-end: 44px;
}

.password-toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-faint);
}

.password-toggle:hover {
  color: var(--text);
  background: var(--surface-3);
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

.password-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-faint);
}

.password-hint .strength {
  display: inline-block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.password-hint .strength span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: width var(--mid) var(--ease), background-color var(--mid) var(--ease);
}

.order-summary {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  text-align: start;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  font-size: 13px;
  color: var(--text-dim);
}

.order-row + .order-row {
  border-top: 1px solid var(--border);
}

.order-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.order-row.order-total {
  background: var(--accent-soft);
}

.order-row.order-total strong {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0 42px;
}

.footer-brand {
  max-width: 300px;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-byline {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 12px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color var(--fast) var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */
.download-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(300px 200px at 50% 0%, rgba(232, 112, 42, 0.22), transparent 70%),
    radial-gradient(260px 200px at 80% 100%, rgba(201, 161, 138, 0.14), transparent 70%),
    var(--surface-2);
  box-shadow: var(--shadow-2);
}

.download-art img {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 8px 32px rgba(232, 112, 42, 0.45));
}

.download-art-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-art-name span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0;
  margin-inline-start: 6px;
}

.download-art-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 550;
}

.download-art-platform svg {
  color: var(--accent-2);
}

[data-download-status][data-state="available"] {
  color: var(--success);
  border-color: rgba(121, 181, 142, 0.32);
  background: var(--success-soft);
}

[data-download-status][data-state="unavailable"] {
  color: var(--warning);
  border-color: rgba(217, 164, 65, 0.32);
  background: var(--warning-soft);
}

[data-download].is-unavailable {
  opacity: 0.72;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Shared compact pieces
   -------------------------------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.check-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--success);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spec-table th {
  padding: 10px 14px;
  text-align: start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table td:last-child {
  text-align: end;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card .info-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  background: var(--accent-soft);
  color: #F2C4A5;
}

:root[data-theme="light"] .info-card .info-icon {
  color: var(--accent);
}

.info-card .info-icon svg {
  width: 17px;
  height: 17px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.info-card p {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .float-card-credits {
    inset-inline-start: -12px;
  }
  .float-card-lines {
    inset-inline-end: -10px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-stage {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .feature-row.reverse .feature-visual {
    order: 0;
  }
  .feature-copy > p {
    max-width: 620px;
  }
  .billing-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-sidebar,
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 0 14px;
    border-inline-start: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .docs-sidebar-title {
    width: 100%;
    padding-bottom: 4px;
  }
  .docs-sidebar a.active {
    box-shadow: inset 0 -2px 0 var(--accent-2);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .mode-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }
  .header-inner {
    gap: 12px;
  }
  .header-cta {
    display: none;
  }
  .lang-switch {
    padding-inline: 4px;
  }
  .lang-select {
    max-width: 74px;
    font-size: 12px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-sub {
    font-size: 15.5px;
  }
  .float-card {
    display: none;
  }
  .app-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .app-sidebar {
    display: none;
  }
  .chat-stream {
    padding: 14px;
  }
  .ide-mock {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 330px;
  }
  .ide-sidebar {
    grid-row: 1;
  }
  .ide-agent {
    display: none;
  }
  .ide-terminal {
    grid-column: 2;
  }
  .ide-tabs .ide-tab:not(.active) {
    display: none;
  }
  .billing-panel {
    padding: 24px 18px;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .price-card {
    padding: 22px 16px 18px;
  }
  .price-amount .value {
    font-size: 30px;
  }
  .price-features li {
    font-size: 11.5px;
  }
  .section {
    padding: 56px 0;
  }
  .footer-main {
    gap: 28px;
    padding: 40px 0 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .doc-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .doc-step-num {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen-desktop {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen-card:nth-child(2) {
    display: none;
  }
  .consent-card {
    width: 160px;
  }
  .utility-card {
    padding: 26px 20px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lang-switch {
    padding-inline: 4px;
  }
  .lang-select {
    max-width: 64px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-meta {
    gap: 6px 14px;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .utility-header .brand-word {
    display: none;
  }
}

@media (max-width: 360px) {
  .header-inner .brand-word {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   RTL adjustments
   -------------------------------------------------------------------------- */
[dir="rtl"] .hero-badge {
  padding: 6px 8px 6px 13px;
}

[dir="rtl"] .code-line,
[dir="rtl"] .code-block,
[dir="rtl"] .ide-terminal,
[dir="rtl"] .spec-table td:first-child {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .site-nav,
[dir="rtl"] .header-actions {
  margin-inline-start: auto;
}

[dir="rtl"] .site-nav {
  margin-inline-end: 16px;
}

[dir="rtl"] .hero h1 {
  letter-spacing: -0.02em;
}



/* ==========================================================================
   Liquid Glass v2 —site overrides (BRAND.md)
   ========================================================================== */
.site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header[data-scrolled="true"] {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-bottom-color: var(--stroke);
  box-shadow: inset 0 1px 0 var(--stroke-top);
}
.site-nav a {
  border-radius: var(--radius-pill);
  color: var(--text-dim);
}
.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-nav {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
}
.lang-select option,
.select option {
  background: var(--bg-soft);
  color: var(--text);
}

/* Hero —neutral background with one very soft orange glow */
.hero::before {
  inset: -200px 0 auto;
  height: 680px;
  background: radial-gradient(860px 480px at 50% -6%, rgba(232, 112, 42, 0.1), transparent 70%);
  filter: none;
  animation: none;
}
.hero::after {
  display: none;
}
.hero-badge {
  background: var(--glass);
  border-color: var(--stroke);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--stroke-top);
}
.hero h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}
.float-card {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-strong);
  animation: none;
}
.float-card .float-value {
  font-weight: 600;
}

/* App window mock */
.app-window,
.control-window {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-strong);
}
.app-window-glow::before,
.hero-stage::before,
.hero-stage::after {
  display: none;
}
.app-titlebar {
  background: rgba(0, 0, 0, 0.16);
  border-bottom-color: var(--stroke);
}
:root[data-theme="light"] .app-titlebar {
  background: rgba(255, 255, 255, 0.4);
}
.app-sidebar {
  background: rgba(0, 0, 0, 0.12);
  border-inline-end-color: var(--stroke);
}
:root[data-theme="light"] .app-sidebar {
  background: rgba(255, 255, 255, 0.35);
}
.app-main {
  background: transparent;
}
.msg-user p {
  background: var(--surface);
  border-color: var(--stroke);
}
.msg-ai .ai-avatar {
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.msg-ai .ai-avatar img {
  filter: none;
}
.side-new {
  background: var(--accent-soft);
  border-color: rgba(232, 112, 42, 0.28);
  color: var(--accent);
  border-radius: var(--radius-pill);
}
.credits-pill {
  background: var(--glass);
  border-color: var(--stroke);
  border-radius: var(--radius-pill);
}
.credits-pill svg {
  color: var(--accent);
}
.chat-tool {
  background: var(--surface);
  border-color: var(--stroke);
  border-radius: var(--radius-pill);
}
.chat-tool svg {
  color: var(--accent);
}
.chat-composer {
  background: var(--well);
  border-color: var(--stroke);
  border-radius: var(--radius);
}
.chat-composer .composer-send {
  background: var(--accent);
  border-radius: 50%;
}
.mode-chip {
  border-color: var(--stroke);
  background: var(--surface);
  border-radius: var(--radius-pill);
}
.mode-chip.active {
  border-color: rgba(232, 112, 42, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}
.traffic i:nth-child(1),
.traffic i:nth-child(2),
.traffic i:nth-child(3) {
  background: var(--text-faint);
  opacity: 0.35;
}
.traffic i:nth-child(1) {
  opacity: 0.55;
}

/* Computer-control mock */
.control-body {
  background: transparent;
}
.screen-frame {
  background: #0e0e10;
  border-color: var(--stroke);
}
.screen-frame::before {
  display: none;
}
.screen-topbar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: var(--stroke);
}
.screen-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke);
}
.screen-bars i {
  background: var(--accent);
  opacity: 0.85;
}
.screen-bars i:nth-child(2n) {
  opacity: 0.35;
}
.consent-card {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: rgba(232, 112, 42, 0.35);
  color: var(--text);
}
.consent-head svg {
  color: var(--accent);
}
.consent-allow {
  background: var(--accent);
}
.consent-deny {
  border-color: var(--stroke);
}

/* CaloCode mock */
.ide-mock {
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  box-shadow: var(--glass-shadow-strong);
}
.ide-sidebar,
.ide-tabs,
.ide-agent,
.ide-terminal {
  background: transparent;
  border-color: var(--stroke);
}
.ide-tabs {
  background: rgba(0, 0, 0, 0.2);
}
.ide-tab.active {
  box-shadow: inset 0 1px 0 var(--accent);
}
.ide-file.active {
  background: var(--accent-soft);
  color: var(--text);
}
.ide-terminal {
  background: rgba(0, 0, 0, 0.25);
}
.tok-keyword {
  color: #e8702a;
}
.tok-fn {
  color: #d9b98a;
}
.tok-str {
  color: #a8b89a;
}
.tok-comment {
  color: #6e6e75;
}
.tok-tag {
  color: #d98b6b;
}
.tok-attr {
  color: #e6c08a;
}
.tok-var {
  color: #e8a87c;
}
.tok-plain {
  color: #a6a6ac;
}
.agent-card {
  background: var(--accent-soft);
  border-color: rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-sm);
}
.agent-card strong {
  color: var(--text);
}
.agent-accept {
  background: var(--accent);
}
.agent-reject {
  border-color: var(--stroke);
}
.agent-title svg,
.agent-title img {
  filter: none;
}
.terminal-prompt {
  color: var(--accent);
}

/* Billing / credits panel */
.billing-panel {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}
.billing-panel::before {
  display: none;
}
.billing-panel .eyebrow::before {
  background: var(--accent);
}
.billing-link {
  color: var(--accent);
}
.meter-card {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-strong);
}
.meter-head {
  background: rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--stroke);
}
:root[data-theme="light"] .meter-head {
  background: rgba(255, 255, 255, 0.35);
}
.meter-bar span {
  background: var(--accent);
  box-shadow: none;
}
.meter-total {
  background: var(--accent-soft);
  border-color: rgba(232, 112, 42, 0.24);
}
.meter-total strong {
  font-weight: 600;
}

/* Pricing cards */
.price-card {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.price-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--glass-shadow-strong);
}
.price-card.popular {
  background: var(--glass);
  border-color: rgba(232, 112, 42, 0.55);
  box-shadow: var(--glass-shadow);
}
.price-popular-badge {
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(232, 112, 42, 0.18);
}
.price-amount .value {
  font-weight: 600;
}
.price-credits {
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.price-card.popular .price-credits {
  background: var(--accent-soft);
}
.price-credits svg {
  color: var(--accent);
}
.price-features svg {
  color: var(--success);
}
.price-name {
  letter-spacing: 0.01em;
}

/* FAQ */
.faq-item {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-icon {
  background: var(--surface);
  border-color: var(--stroke);
}
.faq-item[open] .faq-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

/* CTA */
.cta-card {
  background: radial-gradient(620px 320px at 50% -20%, rgba(232, 112, 42, 0.09), transparent 70%),
    var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}
.cta-card::before {
  display: none;
}

/* Subpages */
.page-hero::before {
  inset: -240px 0 auto;
  height: 560px;
  background: radial-gradient(720px 380px at 50% 0%, rgba(232, 112, 42, 0.09), transparent 70%);
  filter: none;
}
.page-hero h1 {
  font-weight: 600;
}
.docs-sidebar,
.legal-toc {
  border-inline-start-color: var(--stroke);
}
.docs-sidebar a:hover,
.docs-sidebar a.active {
  background: var(--surface);
}
.docs-sidebar a.active {
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
[dir="rtl"] .docs-sidebar a.active {
  box-shadow: inset -2px 0 0 var(--accent);
}
.doc-step-num {
  background: var(--accent-soft);
  border-color: rgba(232, 112, 42, 0.3);
  color: var(--accent);
  border-radius: var(--radius-sm);
}
.callout {
  background: var(--glass);
  border-color: var(--stroke);
  border-inline-start-color: var(--accent);
  border-radius: var(--radius-sm);
}
.callout a,
.legal-section a,
.contact-email a,
.billing-link,
.docs-sidebar a.active {
  color: var(--accent);
}
.mode-card,
.info-card,
.contact-card,
.legal-intro {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.contact-email {
  background: var(--well);
  border-color: var(--stroke);
}
.spec-table {
  background: var(--glass);
  border-color: var(--stroke);
}
.spec-table th {
  background: var(--surface);
}
.download-art {
  background: radial-gradient(300px 200px at 50% 0%, rgba(232, 112, 42, 0.08), transparent 70%),
    var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  box-shadow: var(--glass-shadow-strong);
}
[data-download-status][data-state="available"] {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(121, 181, 142, 0.32);
}
[data-download-status][data-state="unavailable"] {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: rgba(217, 164, 65, 0.32);
}

/* Utility flow pages */
.utility-main::before {
  inset: -260px 0 auto;
  height: 640px;
  background: radial-gradient(760px 400px at 50% 0%, rgba(232, 112, 42, 0.09), transparent 70%);
}
.utility-card {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-color: var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-strong);
}
.status-icon {
  background: var(--surface);
  border-color: var(--stroke);
}
.status-icon.success {
  color: var(--success);
  border-color: rgba(121, 181, 142, 0.32);
  background: var(--success-soft);
}
.status-icon.error {
  color: var(--danger);
  border-color: rgba(217, 107, 94, 0.32);
  background: var(--danger-soft);
}
.status-icon.info {
  color: var(--accent);
  border-color: rgba(232, 112, 42, 0.32);
  background: var(--accent-soft);
}
.utility-alert {
  background: var(--surface);
  border-color: var(--stroke);
}
.utility-alert.error {
  background: var(--danger-soft);
  border-color: rgba(217, 107, 94, 0.32);
}
.utility-alert.success {
  background: var(--success-soft);
  border-color: rgba(121, 181, 142, 0.32);
}
.order-summary {
  background: var(--well);
  border-color: var(--stroke);
  border-radius: var(--radius);
}
.order-row.order-total {
  background: var(--accent-soft);
}
.password-hint .strength span {
  background: var(--danger);
}
.utility-note code {
  background: var(--surface);
}

/* Footer */
.site-footer {
  background: transparent;
  border-top-color: var(--stroke);
}
.footer-col a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

/* Small glass polish */
.pricing-grid,
.results,
.panel {
  border-radius: var(--radius-lg);
}
.price-card,
.faq-item,
.contact-card,
.info-card,
.download-art,
.utility-card {
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}


/* Liquid Glass v2 polish */
.hero h1 {
  font-size: clamp(34px, 4.3vw, 52px);
  letter-spacing: -0.02em;
}
.price-card,
.faq-item,
.info-card,
.contact-card,
.meter-card,
.billing-panel,
.download-art {
  border-radius: var(--radius-lg);
}


/* ==========================================================================
   Platform features: Skills and Knowledge Base
   ========================================================================== */
.platform-section {
  position: relative;
}

.platform-section::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto;
  height: 520px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(640px 320px at 50% 0%, rgba(232, 112, 42, 0.06), transparent 70%);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.platform-visual {
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--stroke);
}

.platform-copy {
  padding: 20px 22px 22px;
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.platform-badge.subtle {
  border-color: var(--stroke);
  background: var(--well);
  color: var(--text-faint);
}

.platform-tagline {
  margin-top: 8px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}

.platform-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.platform-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
}

.platform-points svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 550;
  transition: color 160ms ease, gap 160ms ease;
}

.platform-link svg {
  width: 13px;
  height: 13px;
}

.platform-link:hover {
  color: var(--accent);
  gap: 9px;
}

.platform-foot {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Shared illustrated mini-UI */
.viz {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    radial-gradient(220px 120px at 20% 0%, var(--accent-soft), transparent 70%),
    var(--well);
  direction: ltr;
}

.viz-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.viz-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 112, 42, 0.55);
}

.viz-label {
  color: var(--text-dim);
  text-transform: uppercase;
}

.viz-pill {
  margin-inline-start: auto;
  padding: 2px 7px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 600;
}

.viz-line {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
}

.viz-line.short {
  width: 62%;
}

/* Shared workspace visuals */
.viz-room {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  padding-top: 10px;
}

.viz-people {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.viz-person {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: var(--glass);
  color: var(--text-faint);
  font-size: 8px;
  white-space: nowrap;
}

.viz-avatar {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 6.5px;
  font-weight: 700;
}

.viz-avatar-ai {
  background: var(--accent-soft);
}

.viz-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.viz-board-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 74px;
  padding: 5px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.viz-column-title {
  display: block;
  width: 52%;
  height: 3px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.55;
}

.viz-note {
  display: block;
  height: 18px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: var(--glass);
}

.viz-note.short {
  height: 12px;
  width: 78%;
}

.viz-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  margin-top: 9px;
  padding: 0 5px 0 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
}

.viz-input-line {
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.4;
}

.viz-send {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

/* Hosting card visuals */
.viz-tier-chips {
  display: flex;
  gap: 3px;
  margin-inline-start: auto;
}

.viz-tier-chips span {
  padding: 2px 6px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  font-size: 7.5px;
  font-weight: 600;
}

.viz-tier-chips .on {
  border-color: rgba(232, 112, 42, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}

.viz-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
}

.viz-storage-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.viz-storage-icon,
.viz-site-icon,
.viz-doc-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: var(--glass);
  position: relative;
}

.viz-storage-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.65;
}

.viz-storage-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  color: var(--text-faint);
}

.viz-storage-pct {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.viz-storage-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.viz-storage-bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(232, 112, 42, 0.55));
}

.viz-site-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: var(--glass);
  color: var(--text-faint);
}

.viz-site-row .viz-line {
  flex: 1;
}

.viz-status {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.viz-terminal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.viz-prompt {
  color: var(--accent);
}

.viz-ok {
  margin-inline-start: auto;
  color: var(--accent);
}

/* Skills */
.viz-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
}

.viz-skill {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: var(--glass);
  color: var(--text-faint);
}

.viz-skill svg {
  width: 16px;
  height: 16px;
}

.viz-skill:nth-child(2) {
  border-color: rgba(232, 112, 42, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}

.viz-skill-add {
  border-style: dashed;
  color: var(--accent);
  font-size: 18px;
  font-weight: 300;
}

.viz-toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 6px 8px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: var(--glass);
  color: var(--text-faint);
}

.viz-toggle-row .viz-line {
  flex: 1;
}

.viz-switch {
  width: 23px;
  height: 13px;
  flex: none;
  padding: 2px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  justify-content: flex-end;
}

.viz-switch span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

/* Knowledge Base */
.viz-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text-faint);
}

.viz-search-icon {
  width: 10px;
  height: 10px;
  flex: none;
  border: 1.5px solid var(--text-faint);
  border-radius: 50%;
  position: relative;
}

.viz-search-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 1.5px;
  right: -2px;
  bottom: -1px;
  background: var(--text-faint);
  transform: rotate(45deg);
}

.viz-search .viz-line {
  width: 50%;
  color: var(--text-faint);
}

.viz-docs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}

.viz-doc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: var(--glass);
  color: var(--text-faint);
}

.viz-doc .viz-line {
  flex: 1;
}

.viz-doc.active {
  border-color: rgba(232, 112, 42, 0.3);
  background: var(--accent-soft);
}

.viz-doc-icon::after {
  content: "";
  position: absolute;
  inset: 4px 5px;
  border-top: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  opacity: 0.7;
}

.viz-answer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
  padding: 8px 9px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text-faint);
}

.viz-citations {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.viz-citations span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(232, 112, 42, 0.3);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 7px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Features page
   -------------------------------------------------------------------------- */
.features-hero {
  padding-bottom: clamp(30px, 4vw, 48px);
}

.features-hero h1 {
  max-width: 1100px;
  text-wrap: balance;
}

.features-hero p {
  max-width: 680px;
}

.features-hero .features-intro {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 13.5px;
}

.features-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.feature-detail {
  padding: clamp(36px, 5vw, 56px) 0;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-detail-grid.reverse .detail-copy {
  order: 2;
}

.feature-detail-grid.reverse .detail-visual {
  order: 1;
}

.detail-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.detail-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.detail-value {
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.detail-body {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.detail-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.detail-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

.point-num {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
}

.detail-note {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
}

.detail-visual {
  position: relative;
}

.detail-visual .viz {
  min-height: 320px;
  padding: 16px;
  box-shadow: var(--glass-shadow);
}

.detail-visual .viz-room {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
}

.detail-visual .viz-board-col {
  min-height: 138px;
  padding: 8px;
  gap: 7px;
}

.detail-visual .viz-note {
  height: 32px;
}

.detail-visual .viz-note.short {
  height: 22px;
}

.detail-visual .viz-input {
  height: 34px;
  margin-top: 14px;
}

.detail-visual .viz-person {
  padding: 6px 7px;
  font-size: 9px;
}

.detail-visual .viz-avatar {
  width: 18px;
  height: 18px;
  font-size: 7px;
}

.detail-visual .viz-skill {
  height: 58px;
}

.detail-visual .viz-skill svg {
  width: 20px;
  height: 20px;
}

.detail-visual .viz-box {
  gap: 9px;
  padding-top: 14px;
}

.detail-visual .viz-site-row {
  padding: 9px;
}

.detail-visual .viz-terminal {
  padding: 9px 10px;
  font-size: 9.5px;
}

.detail-visual .viz-docs {
  gap: 7px;
}

.detail-visual .viz-doc {
  padding: 9px 10px;
}

.detail-visual .viz-answer {
  padding: 10px 11px;
}

@media (max-width: 1020px) {
  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-detail-grid,
  .feature-detail-grid.reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-detail-grid.reverse .detail-copy,
  .feature-detail-grid.reverse .detail-visual {
    order: initial;
  }
  .detail-visual .viz {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .platform-copy {
    padding: 17px 16px 19px;
  }
  .platform-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .platform-badge {
    white-space: normal;
  }
  .viz {
    min-height: 184px;
  }
  .viz-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .viz-board-col:nth-child(3) {
    display: none;
  }
  .features-hero-actions .btn {
    width: 100%;
  }
  .feature-detail {
    padding: 34px 0;
  }
  .detail-visual .viz {
    min-height: 250px;
  }
}

@media (max-width: 420px) {
  .viz-room {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .viz-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-detail-grid {
    gap: 22px;
  }
}



/* --------------------------------------------------------------------------
   MCP and Calopic 3D
   -------------------------------------------------------------------------- */
.platform-grid {
  align-items: stretch;
}

.viz-mcp .viz-bar,
.viz-3d .viz-bar {
  margin-bottom: 10px;
}

.viz-gear {
  width: 12px;
  height: 12px;
  margin-inline-start: auto;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
  position: relative;
  opacity: 0.65;
}

.viz-gear::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
}

.mcp-servers {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mcp-server {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: var(--glass);
}

.mcp-server.active {
  border-color: rgba(232, 112, 42, 0.26);
}

.mcp-status {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.55;
}

.mcp-server.active .mcp-status {
  background: var(--success);
  opacity: 1;
}

.mcp-line {
  display: block;
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.3;
}

.mcp-line.short {
  max-width: 52%;
}

.mcp-toggle {
  width: 22px;
  height: 12px;
  flex: none;
  padding: 2px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--well);
}

.mcp-toggle.on {
  justify-content: flex-end;
  border-color: rgba(232, 112, 42, 0.36);
  background: var(--accent-soft);
}

.mcp-toggle::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.mcp-toggle.on::after {
  margin-inline-start: auto;
  background: var(--accent);
}

.mcp-tools {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.mcp-tool {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--glass);
}

.mcp-tool span {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-faint);
  border-radius: 2px;
  opacity: 0.6;
}

.viz-formats {
  margin-inline-start: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.threed-stage {
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.035) 96%) 0 0 / 100% 18px,
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.035) 96%) 0 0 / 18px 100%,
    var(--well);
  color: var(--accent);
}

.threed-stage svg {
  width: 94px;
  height: 72px;
}

.threed-params {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.threed-param {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
}

.threed-param .viz-line {
  flex: 1;
}

.threed-value {
  display: block;
  width: 23px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.5;
}

.detail-mcp {
  min-height: 300px;
  padding: 16px;
}

.detail-mcp .mcp-servers {
  gap: 7px;
  margin-top: 4px;
}

.detail-mcp .mcp-server {
  padding: 10px;
}

.detail-mcp .mcp-tools {
  gap: 7px;
  margin-top: 12px;
}

.detail-mcp .mcp-tool {
  width: 34px;
  height: 34px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shot-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background:
    radial-gradient(140px 90px at 20% 0%, var(--accent-soft), transparent 70%),
    var(--glass);
  box-shadow: var(--glass-shadow);
}

.shot-slot figcaption {
  color: var(--text-faint);
  font-size: 9.5px;
  line-height: 1.4;
  text-align: center;
}

.shot-viewport {
  align-items: center;
  color: var(--accent);
}

.shot-viewport svg {
  width: 76%;
  height: auto;
}

.shot-parameters {
  gap: 7px;
}

.shot-param {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shot-param .viz-line {
  flex: 1;
}

.shot-value {
  display: block;
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.55;
}

.shot-exchange {
  align-items: center;
  gap: 6px;
}

.shot-format {
  display: block;
  width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--glass);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.shot-format:nth-child(2) {
  border-color: rgba(232, 112, 42, 0.3);
  color: var(--accent);
}

@media (max-width: 1020px) {
  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-placeholder {
    aspect-ratio: 16 / 9;
  }
}


/* --------------------------------------------------------------------------
   Creative pipeline — animation & Game Studio inside Calopic 3D
   -------------------------------------------------------------------------- */
.creative-block {
  grid-column: 1 / -1;
  order: 3;
  margin-top: 32px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
}
.creative-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.creative-mark {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.creative-head h3 {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.creative-body {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}
.creative-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  max-width: 820px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.creative-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.creative-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 9px 16px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: background 140ms, border-color 140ms;
}
.creative-cta:hover { background: var(--surface-2); border-color: var(--text-dim); }

@media (max-width: 760px) {
  .creative-points { grid-template-columns: minmax(0, 1fr); }
}


/* --------------------------------------------------------------------------
   Hero keyword flip
   -------------------------------------------------------------------------- */
.hero {
  --hero-flip-alt: #93aaa3;
}

.hero-line-one {
  position: relative;
}

.hero-flip {
  display: inline-block;
  position: relative;
  width: var(--hero-flip-width, 8em);
  height: 1em;
  margin-inline: 0.03em;
  vertical-align: -0.075em;
  perspective: 800px;
}

.hero-flip-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.78, 0.2, 1);
  will-change: transform;
}

.hero-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: color 0.35s var(--ease);
}

.hero-flip-front {
  transform: translateZ(1px);
}

.hero-flip-back {
  transform: rotateX(180deg) translateZ(1px);
}

.hero-flip.is-flipping .hero-flip-cube {
  transform: rotateX(180deg);
}

.hero-flip.is-alt .hero-flip-face {
  color: var(--hero-flip-alt);
}

@media (prefers-reduced-motion: reduce) {
  .hero-flip-cube {
    transition: none;
  }
  .hero-flip-face {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Footer official accounts
   -------------------------------------------------------------------------- */
.footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-social-head h4 {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social-head p {
  max-width: 400px;
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-social-link {
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text-dim);
  font-size: 12px;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}

.footer-social-link:hover {
  border-color: rgba(232, 112, 42, 0.4);
  background: var(--glass-strong);
  color: var(--text);
}

.footer-social-name {
  color: var(--text);
  font-weight: 600;
}

.footer-social-handle {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 760px) {
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.hero-flip-measure {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
}


/* --------------------------------------------------------------------------
   UI polish pass
   -------------------------------------------------------------------------- */
.section-title {
  font-size: clamp(30px, 3.9vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-dim);
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.page-hero p {
  font-size: 16px;
  line-height: 1.72;
}

.platform-card,
.price-card,
.info-card,
.contact-card,
.download-art,
.utility-card,
.faq-item {
  border-color: var(--stroke);
}

.platform-card:hover,
.price-card:hover,
.info-card:hover,
.contact-card:hover,
.download-art:hover,
.utility-card:hover,
.faq-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glass-shadow-strong);
}

.platform-card:hover,
.price-card:hover,
.download-art:hover {
  transform: translateY(-2px);
}

.info-card,
.contact-card,
.download-art,
.utility-card {
  border-radius: var(--radius-lg);
}

.btn {
  letter-spacing: -0.006em;
}

@media (max-width: 760px) {
  .section-title {
    font-size: clamp(27px, 7vw, 34px);
  }
  .section-head {
    margin-bottom: 34px;
  }
  .section-subtitle {
    font-size: 14.5px;
  }
  .page-hero p {
    font-size: 15px;
  }
}


/* ==========================================================================
   Visual upgrade: atmosphere, motion, depth
   Scoped to the home and features pages. All motion uses transform/opacity.
   ========================================================================== */
.home-page,
.features-page {
  --pointer-x: 0;
  --pointer-y: 0;
}

.home-page .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 106px);
}

.home-page .hero > .container {
  position: relative;
  z-index: 3;
}

.home-page .hero::before {
  opacity: 0.55;
}

.hero-atmosphere {
  position: absolute;
  inset: -18% -10%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x) * -8px), calc(var(--pointer-y) * -8px), 0);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.aurora {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.5;
  will-change: transform;
  animation: aurora-drift-a 20s ease-in-out infinite alternate;
}

.aurora-one {
  top: -14%;
  left: -12%;
  width: 58%;
  height: 64%;
  background: radial-gradient(circle at 40% 40%, rgba(232, 112, 42, 0.28), rgba(232, 112, 42, 0) 68%);
}

.aurora-two {
  top: 14%;
  right: -14%;
  width: 52%;
  height: 58%;
  background: radial-gradient(circle at 50% 50%, rgba(132, 145, 158, 0.2), rgba(132, 145, 158, 0) 70%);
  animation-name: aurora-drift-b;
  animation-duration: 24s;
  animation-delay: -6s;
  opacity: 0.36;
}

.aurora-three {
  left: 30%;
  bottom: -26%;
  width: 55%;
  height: 52%;
  background: radial-gradient(circle at 50% 50%, rgba(112, 132, 129, 0.16), rgba(112, 132, 129, 0) 72%);
  animation-name: aurora-drift-c;
  animation-duration: 26s;
  animation-delay: -11s;
  opacity: 0.32;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes aurora-drift-a {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(7%, 5%, 0) scale(1.08); }
}
@keyframes aurora-drift-b {
  0% { transform: translate3d(2%, 3%, 0) scale(1.03); }
  100% { transform: translate3d(-6%, -4%, 0) scale(0.96); }
}
@keyframes aurora-drift-c {
  0% { transform: translate3d(0, 3%, 0) scale(1); }
  100% { transform: translate3d(-5%, -6%, 0) scale(1.06); }
}

.home-page .hero-copy,
.home-page .hero-stage {
  animation: none;
}

.home-page .hero h1 {
  letter-spacing: -0.028em;
  line-height: 1.01;
}

.home-page .hero h1 .line {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: hero-line-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.home-page .hero h1 .line:nth-child(2) {
  animation-delay: 220ms;
}

.home-page .hero-badge {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: hero-line-in 650ms cubic-bezier(0.22, 1, 0.36, 1) 40ms forwards;
}

.home-page .hero-sub,
.home-page .hero-actions,
.home-page .hero-meta {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: hero-line-in 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-page .hero-sub { animation-delay: 310ms; }
.home-page .hero-actions { animation-delay: 390ms; }
.home-page .hero-meta { animation-delay: 460ms; }

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* The product window: a restrained 3D plane with an edge glow. */
.home-page .hero-stage {
  position: relative;
  z-index: 2;
  perspective: 1100px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.home-page .hero-stage::before {
  content: "";
  position: absolute;
  inset: 9% -7% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 112, 42, 0.26), rgba(232, 112, 42, 0) 68%);
  filter: blur(42px);
  opacity: 0.8;
  pointer-events: none;
  display: block;
}

.home-page .hero-stage .app-window {
  position: relative;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 140ms ease-out, box-shadow 500ms ease;
  box-shadow: var(--glass-shadow-strong), 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 56px rgba(232, 112, 42, 0.1);
  will-change: transform;
}

.home-page .hero-stage .app-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 24%, transparent 72%, rgba(232, 112, 42, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 15%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.home-page .hero-stage .app-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(232, 112, 42, 0.22);
  pointer-events: none;
}

/* Chat playback: messages arrive once, with a readable rhythm. */
.home-page [data-chat-reveal] {
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.home-page [data-chat-reveal].is-hidden {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.home-page .typing-caret {
  animation: caret-pulse 1s steps(2, end) infinite;
}

@keyframes caret-pulse {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Scroll narrative */
.scroll-reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), translate 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, translate;
}

.scroll-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.scroll-label {
  opacity: 0;
  translate: 0 9px;
  transition: opacity 560ms var(--ease), translate 560ms var(--ease);
}

.scroll-label.is-visible {
  opacity: 1;
  translate: 0 0;
}

.feature-visual,
.detail-visual {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.features-page .detail-visual .viz,
.features-page .shot-slot {
  box-shadow: var(--glass-shadow-strong), 0 20px 70px rgba(232, 112, 42, 0.06);
}

/* Microinteractions */
.home-page .btn,
.features-page .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-page .btn::after,
.features-page .btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 76%);
  transform: translate3d(-130%, 0, 0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .btn:hover::after,
.features-page .btn:hover::after {
  transform: translate3d(130%, 0, 0);
}

.home-page .btn:hover,
.features-page .btn:hover {
  transform: translateY(-2px);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
  pointer-events: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

[dir="rtl"] .site-nav a::after {
  transform-origin: right;
}

.home-page .platform-card,
.home-page .price-card,
.home-page .info-card,
.home-page .contact-card,
.home-page .cta-card,
.features-page .detail-visual .viz,
.features-page .shot-slot {
  position: relative;
}

.home-page .platform-card::before,
.home-page .price-card::before,
.home-page .info-card::before,
.home-page .contact-card::before,
.home-page .cta-card::before,
.features-page .detail-visual .viz::before,
.features-page .shot-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.12), transparent 26%, transparent 70%, rgba(232, 112, 42, 0.09));
  opacity: 0;
  transition: opacity 360ms var(--ease);
}

.home-page .platform-card:hover::before,
.home-page .price-card:hover::before,
.home-page .info-card:hover::before,
.home-page .contact-card:hover::before,
.home-page .cta-card:hover::before,
.features-page .detail-visual .viz:hover::before,
.features-page .shot-slot:hover::before {
  opacity: 1;
}

.home-page .platform-card:hover,
.home-page .price-card:hover,
.home-page .info-card:hover,
.home-page .contact-card:hover {
  transform: translateY(-3px);
}

/* Cursor glow is created by site.js on fine pointers only. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(232, 112, 42, 0.1), rgba(232, 112, 42, 0.025) 38%, transparent 70%);
  transform: translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0);
  transition: opacity 260ms ease;
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* Footer and section separators receive a quiet finish. */
.home-page .site-footer,
.features-page .site-footer {
  background:
    radial-gradient(700px 300px at 50% 100%, rgba(232, 112, 42, 0.05), transparent 70%),
    var(--bg-soft);
}

.home-page .section + .section::before,
.features-page .section + .section::before {
  content: "";
  position: absolute;
  inset: 0 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-top), transparent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .home-page .hero-atmosphere {
    transform: none;
    transition: none;
  }
  .home-page .hero-stage {
    perspective: none;
    transform-style: flat;
  }
  .home-page .hero-stage .app-window {
    transform: none;
  }
  .home-page .hero-stage::before {
    opacity: 0.55;
    filter: blur(34px);
  }
  .home-page .hero-atmosphere .aurora {
    animation: none;
    opacity: 0.3;
    filter: blur(56px);
  }
  .feature-visual,
  .detail-visual {
    transform: none;
  }
  .cursor-glow {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
  .home-page .hero-stage .app-window {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-atmosphere,
  .home-page .hero-stage .app-window,
  .home-page .hero h1 .line,
  .home-page .hero-badge,
  .home-page .hero-sub,
  .home-page .hero-actions,
  .home-page .hero-meta,
  .home-page [data-chat-reveal],
  .scroll-reveal,
  .scroll-label,
  .feature-visual,
  .detail-visual,
  .aurora,
  .typing-caret,
  .cursor-glow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
  }
  .home-page [data-chat-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }
}

.home-page .hero-stage .app-window {
  opacity: 0;
  translate: 0 18px;
  animation: hero-window-in 880ms cubic-bezier(0.22, 1, 0.36, 1) 260ms forwards;
}

@keyframes hero-window-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.home-page .btn::after,
.features-page .btn::after {
  z-index: 1;
}

.home-page .btn > *,
.features-page .btn > * {
  position: relative;
  z-index: 2;
}

/* Keep the changing word flush with the prefix; the fixed box absorbs length changes. */
.home-page .hero-flip-face {
  justify-content: flex-start;
}

.features-page .page-hero h1,
.features-page .page-hero > .container > p,
.features-page .features-hero-actions {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: hero-line-in 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.features-page .page-hero h1 { animation-delay: 80ms; }
.features-page .page-hero > .container > p { animation-delay: 180ms; }
.features-page .features-hero-actions { animation-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  .features-page .page-hero h1,
  .features-page .page-hero > .container > p,
  .features-page .features-hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Keep the product window visible when motion is disabled. */
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-stage .app-window {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }
}

/* CSS-driven chat playback: starts with the product window and needs no JS. */
.home-page [data-chat-reveal] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: chat-message-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page [data-chat-reveal][data-delay="0"] { animation-delay: 1050ms; }
.home-page [data-chat-reveal][data-delay="1"] { animation-delay: 1850ms; }
.home-page [data-chat-reveal][data-delay="2"] { animation-delay: 2650ms; }

@keyframes chat-message-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page [data-chat-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* hero-matrix: dot-matrix backdrop layer */
.hero-matrix{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;opacity:.9;mask-image:radial-gradient(ellipse at 55% 40%,#000 45%,transparent 88%);-webkit-mask-image:radial-gradient(ellipse at 55% 40%,#000 45%,transparent 88%)}
.hero-atmosphere{z-index:0}
.hero-inner{position:relative;z-index:1}



/* ==========================================================================
   Section-specific marketing layouts + dot-matrix bands
   ========================================================================== */
.section-matrix {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 24%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 24%, transparent 82%);
}

.mode-section,
.capacity-section,
.context-section,
.cta-section {
  position: relative;
  overflow: hidden;
}

.mode-section > .container,
.capacity-section > .container,
.context-section > .container,
.cta-section > .container {
  position: relative;
  z-index: 1;
}

.mode-section {
  padding-top: clamp(56px, 7vw, 88px);
}

.mode-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.86fr 1fr;
  gap: 18px;
  align-items: start;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.mode-card:nth-child(1) {
  min-height: 470px;
  margin-top: 0;
}

.mode-card:nth-child(2) {
  min-height: 410px;
  margin-top: 54px;
}

.mode-card:nth-child(3) {
  min-height: 370px;
  margin-top: 110px;
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--glass-shadow-strong);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 30%, transparent 72%, rgba(232, 112, 42, 0.12));
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mode-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mode-rail {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  max-height: 82px;
}

[dir="rtl"] .mode-rail {
  writing-mode: vertical-lr;
}

.mode-art {
  position: relative;
  height: 132px;
  margin: 22px 0 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--well);
}

.mode-art-chat span {
  position: absolute;
  left: 14%;
  height: 7px;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.28;
}

.mode-art-chat span:nth-child(1) { top: 26%; width: 46%; background: var(--accent); opacity: 0.54; }
.mode-art-chat span:nth-child(2) { top: 42%; width: 68%; }
.mode-art-chat span:nth-child(3) { top: 58%; width: 56%; }
.mode-art-chat span:nth-child(4) { top: 74%; width: 38%; background: var(--accent); opacity: 0.35; }

.mode-art-computer span {
  position: absolute;
  top: 26%;
  height: 30%;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--glass);
}

.mode-art-computer span:nth-child(1) { left: 12%; width: 20%; }
.mode-art-computer span:nth-child(2) { left: 38%; width: 48%; border-color: rgba(232, 112, 42, 0.32); }
.mode-art-computer span:nth-child(3) { left: 12%; top: 63%; width: 74%; height: 7px; border: 0; background: var(--text-faint); opacity: 0.26; }
.mode-art-computer i { position: absolute; right: 16%; bottom: 16%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); opacity: 0.55; }

.mode-art-code span {
  position: absolute;
  left: 14%;
  height: 6px;
  border-radius: 999px;
  background: var(--text-faint);
  opacity: 0.25;
}

.mode-art-code span:nth-child(1) { top: 22%; width: 22%; background: var(--accent); opacity: 0.5; }
.mode-art-code span:nth-child(2) { top: 36%; width: 58%; }
.mode-art-code span:nth-child(3) { top: 50%; width: 42%; }
.mode-art-code span:nth-child(4) { top: 64%; width: 72%; }
.mode-art-code span:nth-child(5) { top: 78%; width: 34%; background: var(--accent); opacity: 0.32; }

.mode-card h3 {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.mode-card p {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

.mode-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.mode-link span:last-child {
  transition: transform 250ms var(--ease);
}

.mode-link:hover span:last-child {
  transform: translate(2px, -2px);
}

.feature-lead {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.workflow-viz {
  min-height: 360px;
  box-shadow: var(--glass-shadow-strong), 0 24px 80px rgba(232, 112, 42, 0.09);
}

.workflow-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

[dir="rtl"] .workflow-chip {
  right: auto;
  left: 14px;
}

/* Bento capability grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 12px;
}

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glass-shadow-strong);
}

.bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(rgba(232, 112, 42, 0.28) 0.8px, transparent 0.8px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 25%, #000, transparent 65%);
  mask-image: radial-gradient(ellipse at 75% 25%, #000, transparent 65%);
  transition: opacity 300ms var(--ease);
}

.bento-tile:hover::after {
  opacity: 0.6;
}

.bento-skills {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 310px;
  background:
    radial-gradient(420px 200px at 80% 10%, rgba(232, 112, 42, 0.11), transparent 70%),
    var(--glass);
}

.bento-knowledge {
  grid-column: span 3;
}

.bento-memory {
  grid-column: span 3;
}

.bento-api {
  grid-column: span 2;
}

.bento-print,
.bento-local {
  grid-column: span 2;
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 112, 42, 0.26);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.bento-icon svg {
  width: 17px;
  height: 17px;
}

.bento-kicker {
  margin-top: 22px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento-tile p {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.bento-graphic {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
}

.bento-graphic i {
  display: block;
  width: 18%;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: var(--well);
}

.bento-graphic i:nth-child(1) { height: 22px; }
.bento-graphic i:nth-child(2) { height: 40px; background: var(--accent-soft); }
.bento-graphic i:nth-child(3) { height: 58px; }
.bento-graphic i:nth-child(4) { height: 34px; background: var(--accent-soft); }

/* Context flow */
.context-section {
  padding-top: clamp(48px, 6vw, 76px);
}

.context-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 920px;
  margin: 12px auto 0;
}

.context-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.context-node strong {
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
}

.context-dot {
  width: 7px;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 0 rgba(232, 112, 42, 0);
  animation: context-pulse 3.6s ease-in-out infinite;
}

.context-node-model {
  border-color: rgba(232, 112, 42, 0.36);
  background: linear-gradient(140deg, var(--accent-soft), var(--glass));
}

.context-node-model .context-dot {
  background: var(--accent);
}

.context-link {
  position: relative;
  display: block;
  width: clamp(22px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), rgba(232, 112, 42, 0.4), var(--stroke));
  overflow: visible;
}

.context-link::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  animation: context-travel 3.6s linear infinite;
}

@keyframes context-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 112, 42, 0); }
  50% { box-shadow: 0 0 0 5px rgba(232, 112, 42, 0.08); }
}

@keyframes context-travel {
  from { transform: translateX(0); opacity: 0; }
  20%, 80% { opacity: 0.8; }
  to { transform: translateX(calc(clamp(22px, 4vw, 54px) - 5px)); opacity: 0; }
}

/* CTA + footer matrices */
.cta-section > .section-matrix {
  z-index: 0;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%, #000);
  mask-image: linear-gradient(180deg, transparent, #000 55%, #000);
}

.cta-section .cta-card {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1020px) {
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-card:nth-child(3) {
    grid-column: span 2;
    min-height: 300px;
    margin-top: 0;
  }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-skills,
  .bento-knowledge,
  .bento-api {
    grid-column: span 2;
  }
  .bento-memory,
  .bento-print,
  .bento-local {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .mode-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .mode-card,
  .mode-card:nth-child(1),
  .mode-card:nth-child(2),
  .mode-card:nth-child(3) {
    grid-column: auto;
    min-height: 0;
    margin-top: 0;
  }
  .mode-art {
    height: 108px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bento-skills,
  .bento-knowledge {
    grid-column: span 2;
    grid-row: auto;
    min-height: 190px;
  }
  .bento-tile {
    padding: 16px;
  }
  .bento-kicker {
    margin-top: 14px;
  }
  .context-flow {
    flex-direction: column;
    gap: 0;
  }
  .context-node {
    width: 100%;
    min-height: 58px;
    display: flex;
    gap: 10px;
  }
  .context-dot {
    margin-bottom: 0;
  }
  .context-link {
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, var(--stroke), rgba(232, 112, 42, 0.4), var(--stroke));
  }
  .context-link::after {
    top: 0;
    left: -2px;
    animation: none;
  }
  .feature-lead {
    font-size: 14px;
  }
  .workflow-viz {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-card,
  .bento-tile,
  .context-dot,
  .context-link::after,
  .mode-link span:last-child {
    animation: none !important;
    transition: none !important;
  }
}

.features-hero-matrix {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 26%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 26%, transparent 82%);
}

.features-page .feature-detail {
  position: relative;
  overflow: hidden;
}

.features-page .feature-detail > .container {
  position: relative;
  z-index: 1;
}

.features-page .detail-matrix {
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 85%);
}

.home-page .hero-stage {
  transform-style: preserve-3d;
  animation: hero-float 6s linear infinite alternate;
  will-change: transform;
}

@keyframes hero-float {
  0% { transform: translate3d(0, 0, 0) rotate(-0.22deg); }
  100% { transform: translate3d(0, -9px, 0) rotate(0.36deg); }
}

@media (max-width: 900px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .home-page .hero-stage {
    animation: none !important;
    transform: none !important;
  }
}

.home-page .hero h1 {
  position: relative;
}

.home-page .hero h1::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -58%;
  width: 38%;
  pointer-events: none;
  transform: skewX(-16deg);
  background: linear-gradient(100deg, transparent, rgba(255, 196, 158, 0.16), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  animation: title-shine 7.4s ease-in-out infinite;
}

@keyframes title-shine {
  0%, 74% { opacity: 0; transform: translateX(0) skewX(-16deg); }
  79% { opacity: 0.55; }
  91%, 100% { opacity: 0; transform: translateX(420%) skewX(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero h1::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.bento-orb {
  position: absolute;
  right: 8%;
  top: 22%;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(232, 112, 42, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(232, 112, 42, 0.12), transparent 62%);
  box-shadow: inset 0 0 0 18px rgba(232, 112, 42, 0.025);
  opacity: 0.8;
  pointer-events: none;
}

.bento-orb::before,
.bento-orb::after {
  content: "";
  position: absolute;
  border: 1px solid var(--stroke);
  border-radius: 50%;
}

.bento-orb::before { inset: 24px; }
.bento-orb::after { inset: 48px; border-color: rgba(232, 112, 42, 0.24); }

.bento-orb { animation: bento-breathe 7s ease-in-out infinite; }
@keyframes bento-breathe {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

@media (max-width: 760px) {
  .bento-orb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-orb { animation: none !important; }
}

.cta-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.windows-mark {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.8;
}

/* Keep dot fields legible on phones. */
@media (max-width: 760px) {
  .hero-matrix {
    display: none;
  }
  .section-matrix {
    opacity: 0.16;
  }
  .home-page .hero-stage .app-window {
    background: var(--glass-strong);
  }
}

/* Final layer order: matrix always behind content. */
canvas[data-matrix] {
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.home-page .hero > .container {
  position: relative;
  z-index: 4;
}

.home-page .section,
.features-page .feature-detail {
  isolation: isolate;
}

.home-page .section > .container,
.features-page .detail-copy > .container,
.features-page .feature-detail > .container,
.cta-section > .container,
.site-footer > .container {
  position: relative;
  z-index: 2;
}

.home-page .hero-copy {
  position: relative;
  isolation: isolate;
}

.home-page .hero-copy::before {
  content: "";
  position: absolute;
  inset: -8% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 48%, rgba(8, 10, 14, 0.62), rgba(8, 10, 14, 0.24) 48%, transparent 78%);
  filter: blur(2px);
}

.home-page .section-head,
.features-page .section-head,
.features-page .detail-copy {
  position: relative;
  isolation: isolate;
}

.home-page .section-head::before,
.features-page .section-head::before,
.features-page .detail-copy::before {
  content: "";
  position: absolute;
  inset: -22% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(8, 10, 14, 0.54), transparent 76%);
}

.features-page .hero-copy,
.features-page .page-hero > .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .home-page .hero-copy::before {
    background: radial-gradient(ellipse at 50% 44%, rgba(8, 10, 14, 0.58), transparent 80%);
  }
}

/* Dot-matrix hero title. The real h1 remains for search and assistive tech. */
.hero-type-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-type-canvas {
  position: relative;
  background: radial-gradient(ellipse at 32% 52%, rgba(8, 10, 14, 0.5), transparent 74%);
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 132px;
  margin-top: 22px;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: hero-type-in 820ms cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}

@keyframes hero-type-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.home-page .hero-matrix {
  opacity: 0.42;
}

@media (max-width: 760px) {
  .hero-type-canvas {
    height: 98px;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-type-canvas {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Hero video background, with the dot field as its no-video fallback. */
.hero {
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.62;
  pointer-events: none;
  background: #090b10;
  /* grade the footage toward the Calopic graphite/orange palette */
  filter: saturate(0.55) contrast(1.08) brightness(0.82) hue-rotate(-6deg);
  transform: scale(1.02);
}

.hero.has-video .hero-video {
  animation: heroVideoIn 900ms ease both;
}

@keyframes heroVideoIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 0.62; transform: scale(1.02); }
}

.hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 28%, rgba(232, 112, 42, 0.16), transparent 62%),
    radial-gradient(60% 50% at 82% 18%, rgba(147, 170, 163, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.24), rgba(5, 7, 10, 0.62) 58%, #090b10 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.62), transparent 62%);
}

.hero-atmosphere {
  z-index: 0;
}

.home-page .hero.has-video .hero-atmosphere .hero-matrix {
  opacity: 0;
}

.home-page .hero-matrix {
  opacity: 0.3;
  transition: opacity 500ms ease;
}

.home-page .section-matrix,
.home-page .mode-matrix,
.home-page .cta-matrix,
.home-page .footer-matrix,
.features-page .features-hero-matrix,
.features-page .detail-matrix {
  opacity: 0.26;
}

@media (max-width: 760px) {
  .hero-video {
    opacity: 0.46;
  }
  .home-page .hero-matrix {
    display: block;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 44%, transparent 74%, #000);
    mask-image: linear-gradient(180deg, #000, transparent 44%, transparent 74%, #000);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    opacity: 0.38;
  }
}

/* Closed-beta style gates: keep pages browsable, disable only purchase/download CTAs. */
.soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(232, 112, 42, 0.38);
  border-radius: 999px;
  background: rgba(232, 112, 42, 0.09);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.soon-badge[hidden] {
  display: none !important;
}

.is-unavailable {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.62 !important;
  filter: saturate(0.6);
}

.is-unavailable:hover,
.is-unavailable:focus,
.is-unavailable:active {
  transform: none !important;
  box-shadow: none !important;
}

.hero:not(.has-video) .hero-video-shade {
  opacity: 0.34;
}

.hero:not(.has-video) .hero-matrix {
  opacity: 0.38;
}


/* Hero rotating keyword: vertical slide with a width transition that keeps the line stable. */
.hero-rotate-line { display: block; white-space: nowrap; }
.hero-rotate-prefix, .hero-rotate-suffix { white-space: pre; }
.hero-rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.16em;
  line-height: 1.16;
  vertical-align: bottom;
  transition: width 480ms cubic-bezier(.22, .61, .36, 1);
  will-change: width;
}
.hero-rotator-track { display: block; position: relative; height: 100%; }
.hero-rotator-word {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: inline-block;
  white-space: nowrap;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 480ms cubic-bezier(.22, .61, .36, 1), opacity 300ms ease, color 480ms ease;
  color: var(--accent);
}
.hero-rotator-word.is-current { transform: translateY(0); opacity: 1; }
.hero-rotator-word.is-leaving { transform: translateY(-105%); opacity: 0; }
.hero-rotator-word.word-2 { color: #93aaa3; }
.hero-rotator-word.word-3 { color: #d8b26a; }
.hero-rotator-word.word-4 { color: #8fa7c4; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotator, .hero-rotator-word { transition: none; }
}
@media (max-width: 640px) {
  .hero-rotate-line { white-space: normal; }
  .hero-rotator { height: 1.2em; }
}

/* Mid-width two-column range: the longest rotating phrase ("computer
   control" in EN) used to run past the copy column and hide under the product
   stage. Give the copy more room and scale the headline down just enough that
   "Start with <longest word>." always fits. Below 960px the layout is already
   single-column, above 1280px the default clamp is safe. */
@media (min-width: 961px) and (max-width: 1280px) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(34px, 3.3vw, 44px); }
  .hero-copy { max-width: 640px; }
}

.feature-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-inline-start: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(232, 112, 42, 0.055);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.feature-detail .control-window {
  width: 100%;
}

/* ==========================================================================
   Hero copy legibility over the dark background video (light theme)
   ========================================================================== */
:root[data-theme="light"] .hero.has-video .hero-copy h1,
:root[data-theme="light"] .hero.has-video .hero-copy h1 .line,
:root[data-theme="light"] .hero.has-video .hero-copy .hero-rotate-prefix,
:root[data-theme="light"] .hero.has-video .hero-copy .hero-rotate-suffix {
  color: #f7f2ea;
  text-shadow: 0 2px 24px rgba(9, 11, 16, 0.5);
}

:root[data-theme="light"] .hero.has-video .hero-copy .hero-sub {
  color: rgba(247, 242, 234, 0.8);
  text-shadow: 0 1px 16px rgba(9, 11, 16, 0.42);
}

:root[data-theme="light"] .hero.has-video .hero-copy .hero-meta,
:root[data-theme="light"] .hero.has-video .hero-copy .hero-meta .meta-item {
  color: rgba(247, 242, 234, 0.72);
}

/* =========================================================================
   Product pages (Calo One / Calopic 3D) — self-contained mock visuals
   ========================================================================= */
.product-page .product-hero {
  padding-bottom: 24px;
}
.product-page .product-hero .hero-actions {
  margin-top: 28px;
}
.product-trust {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.detail-index {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.product-feature .detail-body {
  max-width: 46ch;
}

/* App window mock -------------------------------------------------------- */
.product-visual {
  padding: 12px 0 40px;
}
.pv-window {
  border: 1px solid var(--border-strong, rgba(255,255,255,.12));
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  max-width: 960px;
  margin: 0 auto;
}
.pv-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-strong, rgba(255,255,255,.1));
  background: rgba(127,127,127,.06);
}
.pv-dots { display: inline-flex; gap: 6px; }
.pv-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(127,127,127,.4); }
.pv-dots i:first-child { background: #e8702a; }
.pv-url { font-size: 12px; color: var(--text-faint); font-family: var(--mono, ui-monospace, monospace); }
.pv-body { display: grid; grid-template-columns: 172px 1fr; min-height: 360px; }
.pv-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border-right: 1px solid var(--border-strong, rgba(255,255,255,.08));
}
.pv-side-item {
  font-size: 13px;
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 8px;
}
.pv-side-item.active {
  background: rgba(232,112,42,.14);
  color: var(--accent);
}
.pv-main { padding: 28px 30px; }
.pv-title { width: 46%; height: 20px; border-radius: 6px; background: rgba(127,127,127,.22); margin-bottom: 26px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.pv-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: 10px;
  border: 1px solid var(--border-strong, rgba(255,255,255,.1));
}
.pv-card-n { font-size: 26px; font-weight: 600; color: var(--text); }
.pv-card-l { font-size: 12px; color: var(--text-faint); }
.pv-list { display: flex; flex-direction: column; gap: 10px; }
.pv-list span { height: 12px; border-radius: 5px; background: rgba(127,127,127,.13); }
.pv-list span:nth-child(2) { width: 88%; }
.pv-list span:nth-child(3) { width: 94%; }
.pv-list span:nth-child(4) { width: 70%; }

/* 3D viewport mock */
.pv-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background:
    linear-gradient(rgba(127,127,127,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,127,127,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pv-viewport > svg { width: 55%; max-width: 420px; }
.pv-param {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--panel, rgba(20,20,22,.9));
  border: 1px solid var(--border-strong, rgba(255,255,255,.12));
  padding: 8px 12px;
  border-radius: 8px;
}
.pv-viewport .pv-param:nth-of-type(1) { left: 6%; top: 16%; }
.pv-viewport .pv-param:nth-of-type(2) { right: 6%; bottom: 16%; }
.pv-param b { color: var(--text); font-weight: 600; }
.pv-param-track { width: 46px; height: 4px; border-radius: 3px; background: rgba(127,127,127,.28); overflow: hidden; }
.pv-param-track i { display: block; width: 62%; height: 100%; background: var(--accent); }

/* Mini diagrams ---------------------------------------------------------- */
.pv-mini {
  min-height: 220px;
  border: 1px solid var(--border-strong, rgba(255,255,255,.1));
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.pv-mini-doc .pv-doc-line { height: 10px; border-radius: 5px; background: rgba(127,127,127,.2); }
.pv-mini-doc .w80 { width: 80%; } .pv-mini-doc .w60 { width: 60%; }
.pv-mini-doc .w95 { width: 95%; } .pv-mini-doc .w70 { width: 70%; }
.pv-mini-doc .w85 { width: 85%; }
.pv-mini-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-file { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, rgba(232,112,42,.2), rgba(127,127,127,.1)); border: 1px solid var(--border-strong, rgba(255,255,255,.08)); }
.pv-mini-site { padding: 0; overflow: hidden; }
.pv-site-bar { font-size: 11px; color: var(--text-faint); padding: 10px 14px; border-bottom: 1px solid var(--border-strong, rgba(255,255,255,.08)); font-family: var(--mono, monospace); }
.pv-site-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pv-site-body span { height: 14px; border-radius: 5px; background: rgba(127,127,127,.15); }
.pv-site-body span:first-child { width: 60%; height: 22px; background: rgba(232,112,42,.25); }
.pv-site-body span:nth-child(3) { width: 75%; }
.pv-mini-mcp span, .pv-mini-formats .pv-format {
  font-family: var(--mono, monospace);
  font-size: 13px;
  color: var(--accent);
  background: rgba(232,112,42,.1);
  border: 1px solid rgba(232,112,42,.25);
  border-radius: 8px;
  padding: 10px 14px;
}
.pv-mini-formats { flex-direction: row; flex-wrap: wrap; align-items: center; }
.pv-bubble { display: block; max-width: 86%; font-size: 13px; line-height: 1.5; padding: 11px 14px; border-radius: 12px; }
.pv-bubble.you { align-self: flex-end; background: rgba(232,112,42,.16); color: var(--text); }
.pv-bubble.ai { align-self: flex-start; background: rgba(127,127,127,.12); color: var(--text-dim); }
.pv-mini-params { gap: 16px; }
.pro-panel { border-color: rgba(232,112,42,.35); }

/* EDA mock (3D page section 05) */
.pv-mini-eda { gap: 14px; align-items: center; }
.eda-board { display: block; width: 100%; color: var(--accent); }
.eda-board svg { width: 100%; height: auto; }
.eda-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.eda-tags i {
  font-style: normal; font-family: var(--mono, monospace); font-size: 11px;
  color: var(--text-dim); padding: 5px 10px; border-radius: 6px;
  background: rgba(232,112,42,.1); border: 1px solid rgba(232,112,42,.25);
}

@media (max-width: 760px) {
  .pv-body { grid-template-columns: 1fr; }
  .pv-side { display: none; }
  .pv-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile layout
   ========================================================================== */
@media (max-width: 820px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .container { padding-inline: 18px; }

  /* ---- header ---------------------------------------------------------- */
  .header-inner { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .brand { flex: 1 1 auto; }
  .site-nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .header-actions { gap: 6px; }
  .header-actions .btn-lg, .header-actions .header-download { height: 34px; padding-inline: 14px; font-size: 13px; }

  /* ---- hero ------------------------------------------------------------ */
  .hero { min-height: auto; padding: 56px 0 36px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); line-height: 1.16; }
  .hero-sub { font-size: 14.5px; line-height: 1.62; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 9px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* ---- editorial story: swipeable cards -------------------------------- */
  .ed-intro, .story, .eco, .adv { padding-block: 34px; }
  .ed-intro h2, .story h2, .eco h2, .adv h2 { font-size: 24px; }
  .story-grid,
  .story-panels,
  .ed-story,
  .ed-story-grid,
  .eco-grid,
  .adv-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
  }
  .story-grid::-webkit-scrollbar,
  .story-panels::-webkit-scrollbar,
  .ed-story::-webkit-scrollbar,
  .ed-story-grid::-webkit-scrollbar,
  .eco-grid::-webkit-scrollbar,
  .adv-grid::-webkit-scrollbar { display: none; }
  .story-card, .story-panel, .ed-story-card, .eco-card, .adv-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }

  /* ---- generic grids --------------------------------------------------- */
  .feature-grid, .grid-3, .grid-2, .capacity-grid, .context-grid,
  .cards, .feature-detail-grid, .advisor-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .section { padding: 40px 0; }
  .section-title { font-size: 23px; }
  .section-sub { font-size: 14px; }
  .feature-detail-grid.reverse > * { order: initial !important; }

  /* ---- pricing / tables ------------------------------------------------ */
  .pricing-grid, .plan-grid { grid-template-columns: 1fr !important; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  pre { overflow-x: auto; font-size: 12px; }

  /* ---- CTA + footer ---------------------------------------------------- */
  .cta-section { padding: 40px 0; }
  .cta-section h2 { font-size: 23px; }
  .footer-grid, .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 18px; }

  /* ---- sub-page hero --------------------------------------------------- */
  .page-hero { padding: 60px 0 30px; }
  .page-title { font-size: 27px; max-width: 100%; }
  .page-sub { font-size: 14.5px; }
  .page-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 24px; }
  .story-card, .story-panel, .ed-story-card, .eco-card, .adv-card { flex-basis: 90%; }
  .footer-grid, .footer-cols { grid-template-columns: 1fr !important; }
  .header-actions .lang-switch select { max-width: 96px; }
}

@media (hover: none) {
  .card:hover, .feature-card:hover, .eco-card:hover, .adv-card:hover { transform: none; }
}

/* ==========================================================================
   Pricing layout — centred heads, balanced card grids
   ========================================================================== */
.section-head.center {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}
.section-head.center .section-subtitle {
  margin-inline: auto;
}

.pricing-grid.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin-inline: auto;
}
.pricing-grid.pricing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}
.price-card.popular {
  border-color: rgba(232, 112, 42, 0.5);
  box-shadow: 0 0 0 1px rgba(232, 112, 42, 0.18);
}
.price-card .price-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.price-card .price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price-card .price-amount .currency { font-size: 20px; color: var(--text-dim); }
.price-card .price-amount span[data-i18n="one.perMonth"] {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0;
}
.price-card .price-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.price-card .price-credits svg { width: 15px; height: 15px; color: var(--accent); }
.price-card .price-features {
  word-break: normal;
  overflow-wrap: break-word;
  list-style: none;
  margin: 6px 0 10px;
  padding: 0;
  display: grid;
  gap: 9px;
  text-align: start;
  flex: 1;
}
.price-card .price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  white-space: normal;
}
.price-card .price-features li > span { flex: 1; min-width: 0; }
.price-card .price-features li svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--accent);
}
.price-card .btn-block { margin-top: auto; border-radius: 12px; }
.price-card .price-popular-badge {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 112, 42, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.price-footnote {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

@media (max-width: 1000px) {
  .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pricing-grid.pricing-grid-4,
  .pricing-grid.pricing-grid-2 { grid-template-columns: 1fr; }
  .price-card { padding: 22px 18px; }
  .price-card .price-amount { font-size: 34px; }
}

/* header account shortcut */
.header-account {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 140ms, color 140ms;
}
.header-account:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 820px) {
  .header-account { width: 30px; height: 30px; }
}
