/* Code Cruiser homepage redesign — visual layer only. Existing application logic remains untouched. */

:root {
  color-scheme: dark;
  --cc-bg: #071018;
  --cc-bg-deep: #040a10;
  --cc-surface: #0c1722;
  --cc-surface-2: #101e2c;
  --cc-surface-3: #142536;
  --cc-text: #f3f7fb;
  --cc-muted: #91a1b2;
  --cc-muted-strong: #bdc8d4;
  --cc-line: rgba(158, 180, 204, 0.16);
  --cc-line-strong: rgba(158, 180, 204, 0.28);
  --cc-blue: #7798ff;
  --cc-blue-strong: #91acff;
  --cc-cyan: #58d7c5;
  --cc-amber: #f6c66d;
  --cc-danger: #ff8b91;
  --cc-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cc-ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-width: 1240px;
  --bg: var(--cc-bg);
  --bg-elevated: var(--cc-surface);
  --bg-soft: var(--cc-bg-deep);
  --text: var(--cc-text);
  --muted: var(--cc-muted);
  --accent: var(--cc-blue);
  --border: var(--cc-line);
  --border-strong: rgba(119, 152, 255, 0.54);
  --header-bg: rgba(7, 16, 24, 0.74);
  --shadow: var(--cc-shadow);
  --shadow-soft: 0 20px 54px rgba(0, 0, 0, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  background: var(--cc-bg-deep);
}

body {
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--cc-bg);
  background-size: 48px 48px;
  color: var(--cc-text);
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(119, 152, 255, 0.28);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cc-text);
  color: var(--cc-bg);
  font-weight: 700;
  transition: transform 160ms ease-out;
}

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

.container {
  padding-inline: 28px;
}

.site-header {
  height: 76px;
  overflow: visible;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(130%);
  transition: background 180ms ease-out, border-color 180ms ease-out;
}

.site-header.is-scrolled {
  background: rgba(7, 16, 24, 0.92);
  border-bottom-color: var(--cc-line);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 76px;
  padding: 0;
  gap: 26px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  overflow: visible;
  padding-block: 0;
  color: var(--cc-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo-label {
  display: inline-block;
  overflow: visible;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.35;
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  line-height: 0;
}

.brand-mark--compact {
  width: 32px;
  height: 32px;
}

.brand-mark .logo-lockup {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.brand-mark .logo-icon,
.brand-mark svg {
  display: block;
  width: auto;
  height: 44px;
  max-width: none;
  max-height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.brand-mark--compact .logo-icon,
.brand-mark--compact svg {
  width: auto;
  height: 32px;
  max-width: none;
  max-height: 32px;
}

.nav-links {
  gap: 2px;
  color: #9eabba;
  font-size: 13px;
  font-weight: 600;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  transition: color 140ms ease-out, background 140ms ease-out, border-color 140ms ease-out;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible {
  color: var(--cc-text);
  border-color: var(--cc-line);
  background: rgba(255, 255, 255, 0.035);
}

.dropdown-menu {
  top: calc(100% + 8px);
  min-width: 226px;
  padding: 8px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 12px;
  background: rgba(12, 23, 34, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  transform: translateY(4px) scale(0.985);
  transform-origin: top left;
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  transform: translateY(0) scale(1);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s;
}

.dropdown-menu a {
  padding: 10px 11px;
  border-radius: 7px;
  font-size: 13px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .nav-balance-pill,
.nav-actions .badge.nav-balance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 12px;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(88, 215, 197, 0.22);
  border-radius: 9px;
  background: rgba(88, 215, 197, 0.055);
  color: #9fe5d9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.nav-actions .nav-balance-pill strong,
.nav-actions .badge.nav-balance-pill strong {
  margin: 0;
  color: var(--cc-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.nav-actions .nav-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(88, 215, 197, 0.22);
  border-radius: 9px;
  background: rgba(88, 215, 197, 0.055);
  color: var(--cc-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  text-decoration: none;
  cursor: pointer;
}

.nav-actions .nav-user-pill strong {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.nav-actions .nav-download-studio {
  min-height: 40px;
  height: 40px;
  padding-inline: 12px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-download-studio {
  display: none;
}

.lang-switch {
  padding: 3px;
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-btn {
  min-width: 32px;
  min-height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  color: var(--cc-muted);
}

.lang-btn.is-active,
.lang-btn.active {
  background: var(--cc-surface-3);
  color: var(--cc-text);
  box-shadow: none;
}

.btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 15px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: transform 140ms ease-out, background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, box-shadow 140ms ease-out;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cc-blue-strong);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--cc-text);
  color: #09121b;
  border-color: var(--cc-text);
  box-shadow: 0 12px 30px rgba(172, 195, 220, 0.12);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 16px 38px rgba(172, 195, 220, 0.18);
}

.btn-outline,
.btn-ghost {
  border-color: var(--cc-line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cc-muted-strong);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: rgba(158, 180, 204, 0.46);
  background: rgba(255, 255, 255, 0.055);
  color: var(--cc-text);
}

.btn-large {
  min-height: 50px;
  padding-inline: 19px;
  gap: 12px;
  font-size: 14px;
}

.btn-large svg {
  width: 19px;
  height: 19px;
  transition: transform 160ms var(--cc-ease);
}

.btn-large:hover svg {
  transform: translateX(3px);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 106px 0 92px;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(158, 180, 204, 0.13) 16%, rgba(158, 180, 204, 0.13) 84%, transparent);
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  top: -300px;
  left: 45%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 111, 180, 0.20), rgba(7, 16, 24, 0) 66%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 74px;
}

.hero-copy {
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(88, 215, 197, 0.22);
  border-radius: 8px;
  background: rgba(88, 215, 197, 0.055);
  color: #9fe5d9;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc-cyan);
  box-shadow: 0 0 0 4px rgba(88, 215, 197, 0.10);
}

.hero-title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 74px);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-text {
  max-width: 570px;
  margin: 28px 0 0;
  color: #aab7c5;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--cc-line);
}

.hero-fact {
  min-width: 0;
  padding: 18px 16px 0 0;
}

.hero-fact + .hero-fact {
  padding-left: 18px;
  border-left: 1px solid var(--cc-line);
}

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

.hero-fact strong {
  margin-bottom: 5px;
  color: var(--cc-text);
  font-size: 14px;
  font-weight: 750;
}

.hero-fact span {
  color: #738496;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.product-stage {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(158, 180, 204, 0.22);
  border-radius: 16px;
  background: rgba(8, 18, 28, 0.82);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.product-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.stage-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid var(--cc-line);
  background: rgba(255, 255, 255, 0.015);
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots span {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(158, 180, 204, 0.30);
  border-radius: 50%;
}

.stage-label,
.stage-status,
.stage-kicker,
.panel-overline,
.section-index {
  color: #718397;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-status {
  justify-self: end;
  color: #8dbdb5;
}

.stage-status span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--cc-cyan);
}

.stage-body {
  padding: 16px;
}

.stage-prompt {
  padding: 17px 18px;
  border: 1px solid rgba(119, 152, 255, 0.23);
  border-radius: 11px;
  background: rgba(119, 152, 255, 0.055);
}

.stage-prompt p {
  margin: 10px 0 14px;
  color: #d9e4ef;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}

.stage-prompt-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stage-prompt-footer span,
.output-chip {
  padding: 5px 7px;
  border: 1px solid var(--cc-line);
  border-radius: 6px;
  color: #8395a7;
  font-size: 9px;
  font-weight: 700;
}

.build-flow {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.flow-line {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 20px;
  width: 1px;
  background: rgba(158, 180, 204, 0.12);
}

.flow-line span {
  display: block;
  width: 100%;
  height: 52%;
  background: linear-gradient(var(--cc-blue), var(--cc-cyan));
}

.flow-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #708295;
}

.flow-item.is-active {
  border-color: rgba(119, 152, 255, 0.20);
  background: rgba(119, 152, 255, 0.045);
  color: var(--cc-blue-strong);
}

.flow-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(158, 180, 204, 0.19);
  border-radius: 7px;
  background: var(--cc-bg);
  color: #8091a2;
  font-size: 9px;
  font-weight: 800;
}

.flow-item.is-complete .flow-index {
  border-color: rgba(88, 215, 197, 0.26);
  color: var(--cc-cyan);
}

.flow-item strong,
.flow-item small {
  display: block;
}

.flow-item strong {
  color: #ccd8e4;
  font-size: 11px;
  font-weight: 750;
}

.flow-item small {
  margin-top: 2px;
  color: #6f8193;
  font-size: 9px;
}

.flow-item svg {
  width: 17px;
  color: var(--cc-cyan);
}

.flow-loader {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(119, 152, 255, 0.24);
  border-top-color: var(--cc-blue);
  border-radius: 50%;
  animation: cc-spin 1s linear infinite;
}

.flow-state {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stage-output {
  padding: 13px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: #0b1520;
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #8192a4;
  font-size: 9px;
  font-weight: 700;
}

.output-grid {
  display: grid;
  grid-template-columns: 55px 1fr;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(158, 180, 204, 0.11);
  border-radius: 7px;
}

.output-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid rgba(158, 180, 204, 0.10);
  background: #09121b;
}

.output-sidebar span {
  height: 7px;
  border-radius: 2px;
  background: rgba(158, 180, 204, 0.12);
}

.output-sidebar span.is-selected {
  background: rgba(119, 152, 255, 0.42);
}

.output-canvas {
  padding: 11px;
}

.canvas-toolbar {
  width: 40%;
  height: 8px;
  margin-bottom: 11px;
  border-radius: 2px;
  background: rgba(158, 180, 204, 0.16);
}

.canvas-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.canvas-stats span {
  height: 28px;
  border: 1px solid rgba(158, 180, 204, 0.09);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
}

.canvas-table {
  display: grid;
  gap: 5px;
}

.canvas-table i {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: rgba(158, 180, 204, 0.09);
}

@keyframes cc-spin {
  to { transform: rotate(360deg); }
}

.section {
  position: relative;
  padding: 116px 0;
}

.section-index {
  display: inline-block;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  color: var(--cc-text);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--cc-muted);
  font-size: 16px;
  line-height: 1.7;
}

.create-app-section {
  border-top: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line);
  background: rgba(4, 10, 16, 0.42);
}

.create-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 84px;
}

.section-intro {
  position: sticky;
  top: 118px;
}

.section-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--cc-line);
  color: #718397;
}

.section-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.create-app-panel {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 16px;
  background: rgba(12, 23, 34, 0.82);
  box-shadow: var(--cc-shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-head .card-title {
  margin: 8px 0 0;
  color: var(--cc-text);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.panel-state {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(88, 215, 197, 0.20);
  border-radius: 7px;
  color: #8bcfc4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-state i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cc-cyan);
}

.create-app-panel .card-text {
  margin: 10px 0 20px;
  color: var(--cc-muted);
  font-size: 13px;
}

.prompt-shell {
  overflow: hidden;
  border: 1px solid rgba(158, 180, 204, 0.22);
  border-radius: 11px;
  background: #09131e;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.prompt-shell:focus-within {
  border-color: rgba(119, 152, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(119, 152, 255, 0.10);
}

.create-app-panel textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 18px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cc-text);
  font-size: 15px;
  line-height: 1.65;
  box-shadow: none;
}

.create-app-panel textarea:focus-visible {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--cc-line);
  color: #607386;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.panel-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.panel-preset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--cc-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  color: #899bad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 130ms ease-out, border-color 130ms ease-out, background 130ms ease-out;
}

.panel-preset:hover,
.panel-preset:focus-visible {
  border-color: rgba(119, 152, 255, 0.44);
  background: rgba(119, 152, 255, 0.07);
  color: var(--cc-blue-strong);
}

.panel-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--cc-line);
}

.panel-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin: 0;
  color: #738598;
  font-size: 11px;
}

.panel-example {
  border-bottom: 1px solid rgba(158, 180, 204, 0.26);
  color: #9baaba;
  text-decoration: none;
}

.panel-example:hover {
  border-color: var(--cc-blue);
  color: var(--cc-blue-strong);
}

.panel-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.btn.is-disabled,
.btn:disabled {
  transform: none;
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}

.auth-message:empty,
[data-ai-status]:empty {
  display: none;
}

.auth-message,
[data-ai-status] {
  margin-top: 14px;
  border-radius: 8px;
  font-size: 12px;
}

.capability-section {
  background: var(--cc-bg);
}

.capability-head {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.7fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 58px;
}

.capability-head .section-subtitle {
  margin: 0;
}

.capability-list {
  border-top: 1px solid var(--cc-line-strong);
}

.capability-row {
  display: grid;
  grid-template-columns: 54px minmax(260px, 0.9fr) minmax(260px, 1fr) 34px;
  align-items: center;
  gap: 26px;
  min-height: 176px;
  border-bottom: 1px solid var(--cc-line-strong);
  transition: background 180ms ease-out;
}

.capability-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.capability-number {
  align-self: start;
  padding-top: 34px;
  color: #5f7183;
  font-size: 10px;
  font-weight: 800;
}

.capability-copy h3 {
  margin: 0 0 8px;
  color: var(--cc-text);
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.capability-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.65;
}

.capability-arrow {
  width: 24px;
  color: #708294;
  transition: transform 180ms var(--cc-ease), color 180ms ease-out;
}

.capability-row:hover .capability-arrow {
  transform: translateX(4px);
  color: var(--cc-text);
}

.capability-visual {
  position: relative;
  justify-self: stretch;
  height: 86px;
  overflow: hidden;
  border-left: 1px solid var(--cc-line);
}

.capability-visual-nodes span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #72859a;
  border-radius: 50%;
  background: var(--cc-bg);
}

.capability-visual-nodes span:nth-child(1) { left: 16%; top: 18%; }
.capability-visual-nodes span:nth-child(2) { left: 47%; top: 10%; border-color: var(--cc-blue); }
.capability-visual-nodes span:nth-child(3) { left: 68%; top: 57%; border-color: var(--cc-cyan); }
.capability-visual-nodes span:nth-child(4) { left: 28%; top: 67%; }

.capability-visual-nodes i {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: rgba(158, 180, 204, 0.24);
}

.capability-visual-nodes i:nth-of-type(1) { left: 18%; top: 25%; width: 30%; transform: rotate(-3deg); }
.capability-visual-nodes i:nth-of-type(2) { left: 49%; top: 18%; width: 27%; transform: rotate(50deg); }
.capability-visual-nodes i:nth-of-type(3) { left: 30%; top: 70%; width: 40%; transform: rotate(-8deg); }

.capability-visual-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 28px;
}

.capability-visual-links span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--cc-line-strong);
  border-radius: 7px;
  background: var(--cc-bg);
  color: #8799aa;
  font-size: 9px;
  font-weight: 800;
}

.capability-visual-links i {
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: rgba(119, 152, 255, 0.32);
}

.capability-visual-links i:nth-of-type(1) { left: 20%; }
.capability-visual-links i:nth-of-type(2) { right: 18%; }

.capability-visual-roadmap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 28px;
}

.capability-visual-roadmap::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: rgba(158, 180, 204, 0.24);
}

.capability-visual-roadmap span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid #708396;
  border-radius: 50%;
  background: var(--cc-bg);
}

.capability-visual-roadmap span:nth-child(3) {
  border-color: var(--cc-blue);
  box-shadow: 0 0 0 6px rgba(119, 152, 255, 0.08);
}

.principle-section {
  overflow: hidden;
  border-top: 1px solid var(--cc-line);
  background: var(--cc-bg-deep);
}

.principle-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 94px;
}

.principle-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 620;
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.principle-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--cc-muted);
  font-size: 15px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--cc-text);
  font-size: 13px;
  font-weight: 750;
}

.text-link span:last-child {
  transition: transform 160ms var(--cc-ease);
}

.text-link:hover span:last-child {
  transform: translateX(4px);
}

.principle-diagram {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 44px;
}

.diagram-track {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 58px;
  width: 1px;
  background: linear-gradient(var(--cc-blue), var(--cc-cyan));
  opacity: 0.55;
}

.diagram-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 15px 18px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: rgba(12, 23, 34, 0.68);
  transition: transform 180ms var(--cc-ease), border-color 180ms ease-out, background 180ms ease-out;
}

.diagram-step:hover {
  transform: translateX(4px);
  border-color: rgba(119, 152, 255, 0.34);
  background: rgba(15, 29, 42, 0.88);
}

.diagram-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--cc-line-strong);
  border-radius: 8px;
  background: var(--cc-bg-deep);
  color: var(--cc-blue-strong);
  font-size: 9px;
  font-weight: 800;
}

.diagram-step strong {
  color: #dbe5ee;
  font-size: 13px;
  font-weight: 750;
}

.diagram-step small {
  color: #6f8193;
  font-size: 10px;
}

.cta-section {
  padding-top: 100px;
  background: var(--cc-bg);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid rgba(119, 152, 255, 0.30);
  border-radius: 16px;
  background: #0d1925;
  box-shadow: none;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -180px;
  right: 8%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 152, 255, 0.18), transparent 66%);
  pointer-events: none;
}

.cta-signal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 5px;
  width: 58px;
  height: 58px;
  padding: 14px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 12px;
  background: rgba(7, 16, 24, 0.55);
}

.cta-signal span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--cc-blue);
}

.cta-signal span:nth-child(1) { height: 42%; opacity: 0.5; }
.cta-signal span:nth-child(2) { height: 70%; opacity: 0.72; }
.cta-signal span:nth-child(3) { height: 100%; }

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy .section-title {
  font-size: clamp(32px, 3.5vw, 48px);
}

.cta-copy .section-subtitle {
  max-width: 620px;
  font-size: 14px;
}

.cta-card > .btn {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--cc-line);
  background: var(--cc-bg-deep);
  color: #6e8092;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #96a5b5;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.footer-brand .brand-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  line-height: 0;
}

.footer-brand .brand-mark .logo-icon,
.footer-brand .brand-mark svg {
  width: auto;
  height: 30px;
  max-width: none;
  max-height: 30px;
}

.footer-brand .logo-label {
  line-height: 1.35;
}

.footer-top {
  justify-self: end;
  color: #8b9cac;
  font-weight: 700;
}

.footer-top:hover {
  color: var(--cc-text);
}

.footer-requisites {
  grid-column: 1 / -1;
  margin-top: 14px;
  color: #5c6d7e;
  font-size: 9px;
  line-height: 1.55;
}

.footer-requisites p {
  margin: 0;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--cc-ease), transform 600ms var(--cc-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 0;
  }

  .desktop-auth.btn-primary {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(46px, 5.2vw, 64px);
  }

  .create-layout {
    gap: 54px;
  }
}

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

  .nav {
    position: relative;
    flex-wrap: nowrap;
  }

  .desktop-auth {
    display: none !important;
  }

  .nav-actions .nav-download-studio {
    display: none;
  }

  .mobile-download-studio {
    display: block;
  }

  .nav-links {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--cc-line-strong);
    border-radius: 12px;
    background: rgba(9, 20, 30, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  .nav-link {
    padding: 11px 12px;
  }

  .dropdown-menu {
    margin: 0 0 4px;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 76px;
  }

  .hero::before {
    display: none;
  }

  .hero-grid,
  .create-layout,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    max-width: 800px;
    font-size: clamp(50px, 9vw, 72px);
  }

  .product-stage {
    max-width: 720px;
  }

  .section {
    padding: 92px 0;
  }

  .create-layout {
    gap: 42px;
  }

  .section-intro {
    position: static;
  }

  .capability-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .capability-row {
    grid-template-columns: 42px minmax(240px, 1fr) minmax(220px, 0.8fr) 28px;
    gap: 18px;
  }

  .principle-grid {
    gap: 54px;
  }

  .principle-diagram {
    max-width: 720px;
  }

  .cta-card {
    grid-template-columns: auto 1fr;
  }

  .cta-card > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 18px;
  }

  .logo {
    gap: 8px;
    font-size: 18px;
  }

  .brand-mark .logo-lockup {
    height: 40px;
    max-width: 152px;
  }

  .brand-mark {
    width: auto;
    height: auto;
  }

  .brand-mark .logo-icon,
  .brand-mark svg {
    height: 40px;
    max-width: none;
    max-height: 40px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .lang-switch {
    display: none;
  }

  .hero {
    padding-top: 68px;
  }

  .badge {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 58px);
    letter-spacing: -0.06em;
  }

  .hero-text {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 38px;
  }

  .hero-fact,
  .hero-fact + .hero-fact {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--cc-line);
    border-left: 0;
  }

  .hero-fact:first-child {
    border-top: 0;
  }

  .hero-fact strong {
    margin: 0;
  }

  .stage-topbar {
    grid-template-columns: 1fr auto;
  }

  .stage-label {
    display: none;
  }

  .stage-status {
    grid-column: 2;
  }

  .stage-prompt-footer span:nth-child(3) {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-title,
  .principle-copy h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .create-app-panel {
    padding: 17px;
  }

  .panel-head {
    display: block;
  }

  .panel-state {
    display: inline-block;
    margin-top: 12px;
  }

  .create-app-panel textarea {
    min-height: 170px;
    padding: 15px;
    font-size: 14px;
  }

  .prompt-meta span:last-child {
    display: none;
  }

  .panel-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .capability-head {
    margin-bottom: 38px;
  }

  .capability-row {
    grid-template-columns: 30px 1fr 24px;
    min-height: 144px;
    gap: 14px;
    padding: 24px 0;
  }

  .capability-number {
    padding-top: 5px;
  }

  .capability-copy h3 {
    font-size: 24px;
  }

  .capability-visual {
    display: none;
  }

  .capability-arrow {
    grid-column: 3;
  }

  .principle-diagram {
    padding-left: 0;
  }

  .diagram-track {
    left: 34px;
  }

  .diagram-step {
    grid-template-columns: 34px 1fr;
  }

  .diagram-step small {
    grid-column: 2;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }

  .cta-signal {
    width: 50px;
    height: 50px;
  }

  .cta-card > .btn {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }

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

  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

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

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Language switcher is rebuilt dynamically by app.js. */
.lang-switch.lang-dropdown {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lang-trigger {
  min-width: 48px;
  min-height: 34px;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lang-trigger::after {
  content: "⌄";
  margin-left: 5px;
  color: #6f8193;
  transform: translateY(-1px);
}

.lang-trigger:hover {
  border-color: rgba(158, 180, 204, 0.46);
  background: rgba(255, 255, 255, 0.055);
  color: var(--cc-text);
}

.lang-menu {
  top: calc(100% + 8px);
  min-width: 118px;
  padding: 6px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 10px;
  background: rgba(12, 23, 34, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  transform: translateY(4px) scale(0.985);
  transform-origin: top right;
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms;
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu {
  transform: translateY(0) scale(1);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s;
}

.lang-option {
  padding: 8px 9px;
  border-radius: 6px;
  color: #8b9cac;
  font-size: 10px;
  font-weight: 750;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: var(--cc-text);
}

.lang-option.is-active {
  background: rgba(119, 152, 255, 0.10);
  color: var(--cc-blue-strong);
}

.mobile-nav-auth {
  display: none;
}

@media (min-width: 921px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
    gap: 58px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-title {
    font-size: clamp(48px, 4.75vw, 68px);
  }
}

@media (max-width: 920px) {
  .mobile-nav-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 5px;
    padding-top: 12px;
    border-top: 1px solid var(--cc-line);
  }

  .mobile-nav-auth .btn {
    width: 100%;
  }

  .mobile-nav-auth .btn[data-auth-user] {
    grid-column: 1 / -1;
  }
}

/* ========================================================================== */
/* Full-site technical design layer                                           */
/* ========================================================================== */

:root {
  --cc-green: #77e2b7;
  --cc-purple: #a78bfa;
  --cc-cyan-soft: rgba(88, 215, 197, 0.14);
  --cc-blue-soft: rgba(119, 152, 255, 0.13);
  --cc-panel: rgba(12, 23, 34, 0.78);
  --cc-panel-solid: #0c1722;
  --cc-code: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body.page {
  isolation: isolate;
  background-color: var(--cc-bg);
}

body.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -15%, rgba(119, 152, 255, 0.11), transparent 34%),
    radial-gradient(circle at 8% 48%, rgba(88, 215, 197, 0.045), transparent 26%),
    linear-gradient(180deg, transparent 0, rgba(4, 10, 16, 0.38) 100%);
}

.site-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(148, 170, 194, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 194, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient-orb {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.07;
  will-change: transform;
}

.ambient-orb-a {
  top: 12%;
  right: -180px;
  background: var(--cc-blue);
}

.ambient-orb-b {
  top: 58%;
  left: -220px;
  background: var(--cc-cyan);
}

main#main-content {
  position: relative;
  min-height: calc(100vh - 150px);
}

.page:not(.page-home) main#main-content {
  padding-top: 0;
}

.page:not(.page-home) .site-header + .site-ambient + main,
.page:not(.page-home) .site-header ~ main {
  isolation: isolate;
}

.nav-link[aria-current="page"] {
  color: var(--cc-text);
  border-color: rgba(119, 152, 255, 0.26);
  background: rgba(119, 152, 255, 0.075);
}

.section-index {
  display: block;
  margin: 0 0 15px;
  color: #64798c;
  font-family: var(--cc-code);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  padding: 116px 0 88px;
  border-bottom: 1px solid var(--cc-line);
  background: transparent;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.88) 0%, rgba(7, 16, 24, 0.28) 62%, rgba(7, 16, 24, 0.74) 100%),
    radial-gradient(circle at 72% 36%, rgba(119, 152, 255, 0.09), transparent 28%);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: max(28px, calc((100vw - var(--max-width)) / 2 + 28px));
  width: min(46vw, 620px);
  height: 1px;
  background: linear-gradient(90deg, var(--cc-blue), transparent);
  opacity: 0.56;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.page-hero-copy::before {
  content: "CC / MODULE";
  display: block;
  margin-bottom: 24px;
  color: #60768a;
  font-family: var(--cc-code);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.page-hero .badge,
.usecase-hero-card .badge {
  margin-bottom: 24px;
}

.page-title {
  max-width: 820px;
  margin: 0;
  color: var(--cc-text);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.page-subtitle {
  max-width: 660px;
  margin: 28px 0 0;
  color: #94a5b5;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
}

.tech-visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(8, 18, 27, 0.84);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.tech-visual::before {
  content: "";
  position: absolute;
  inset: 42px 0 38px;
  background-image:
    linear-gradient(rgba(133, 162, 187, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 162, 187, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.tech-visual-head,
.tech-visual-foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 16px;
  color: #677c8f;
  font-family: var(--cc-code);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.tech-visual-head {
  border-bottom: 1px solid var(--cc-line);
}

.tech-visual-foot {
  gap: 16px;
  border-top: 1px solid var(--cc-line);
}

.tech-visual-foot b {
  color: #a8b7c4;
  font-weight: 500;
}

.tech-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #91b9a9;
}

.tech-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc-green);
  box-shadow: 0 0 0 5px rgba(119, 226, 183, 0.08);
}

.tech-visual-stage {
  position: relative;
  height: 292px;
}

.tech-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  border: 1px solid rgba(119, 152, 255, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(119, 152, 255, 0.24), transparent 46%),
    #0b1722;
  box-shadow: 0 0 0 16px rgba(119, 152, 255, 0.03), 0 18px 55px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  text-align: center;
}

.tech-core span {
  color: #eaf1f7;
  font-family: var(--cc-code);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.07em;
}

.tech-core small {
  max-width: 88px;
  margin-top: 6px;
  color: #71869a;
  font-family: var(--cc-code);
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  border: 1px solid rgba(119, 152, 255, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a { width: 205px; height: 205px; }
.orbit-b { width: 286px; height: 286px; border-style: dashed; opacity: 0.65; }

.tech-paths {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tech-paths path {
  fill: none;
  stroke: rgba(119, 152, 255, 0.45);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.tech-paths path.tech-path-alt { stroke: rgba(88, 215, 197, 0.42); }

.tech-node {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 84px;
  padding: 9px 11px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 8px;
  background: rgba(11, 24, 35, 0.95);
  color: #9dafbd;
  font-family: var(--cc-code);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.tech-node i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc-blue);
  box-shadow: 0 0 10px rgba(119, 152, 255, 0.62);
}

.node-a { top: 18%; left: 9%; }
.node-b { top: 22%; right: 7%; }
.node-c { right: 9%; bottom: 16%; }
.node-d { left: 9%; bottom: 16%; }
.node-b i { background: var(--cc-cyan); box-shadow: 0 0 10px rgba(88, 215, 197, 0.55); }
.node-c i { background: var(--cc-amber); box-shadow: 0 0 10px rgba(246, 198, 109, 0.52); }
.node-d i { background: var(--cc-green); box-shadow: 0 0 10px rgba(119, 226, 183, 0.52); }

/* Visual variants */
.tech-visual-roadmap .orbit-a { width: 250px; height: 92px; }
.tech-visual-roadmap .orbit-b { width: 340px; height: 156px; }
.tech-visual-support .tech-core,
.tech-visual-sales .tech-core,
.tech-visual-hr .tech-core,
.tech-visual-ops .tech-core { box-shadow: 0 0 0 16px rgba(88, 215, 197, 0.025), 0 18px 55px rgba(0,0,0,.38); }

.page > main .section {
  position: relative;
  padding: 106px 0;
  border-bottom: 1px solid rgba(158, 180, 204, 0.08);
}

.page > main .section.soft-section {
  background: rgba(4, 10, 16, 0.32);
}

.page > main .section.soft-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(119, 152, 255, 0.025), transparent 28%, transparent 72%, rgba(88, 215, 197, 0.018));
}

.page:not(.page-home) .section-title {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--cc-text);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page:not(.page-home) .section-subtitle {
  color: #8fa0b0;
  font-size: 16px;
  line-height: 1.72;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cc-line);
}

.card-grid .card,
.pricing-grid .card,
.dashboard-grid .card,
.doc-card,
.page .panel,
.info-bar,
.timeline-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(11, 23, 34, 0.94);
  box-shadow: none;
}

.card-grid .card {
  min-height: 238px;
  padding: 38px 34px;
}

.card-grid .card::before,
.pricing-grid .card::before,
.dashboard-grid .card::before,
.doc-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 152, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.card-grid .card:hover::before,
.pricing-grid .card:hover::before,
.dashboard-grid .card:hover::before,
.doc-card:hover::before,
.timeline-item:hover::before { opacity: 1; }

.card-grid .card::after,
.doc-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(119, 152, 255, 0.08);
  border-radius: 50%;
  transition: transform 450ms var(--cc-ease), border-color 180ms ease-out;
}

.card-grid .card:hover::after,
.doc-card:hover::after {
  border-color: rgba(119, 152, 255, 0.18);
  transform: scale(1.18);
}

.card-code {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 42px;
  color: #566d80;
  font-family: var(--cc-code);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.card-code::before {
  content: "";
  width: 18px;
  height: 1px;
  margin-right: 9px;
  background: #425c72;
}

.card-title {
  margin: 0 0 16px;
  color: #e7eef5;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.card-text {
  margin: 0;
  color: #8497a8;
  font-size: 14px;
  line-height: 1.7;
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid var(--cc-line-strong);
  border-radius: 10px;
  background: rgba(119, 152, 255, 0.06);
  color: var(--cc-blue-strong);
  font-family: var(--cc-code);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  align-items: start;
  gap: clamp(55px, 8vw, 120px);
}

.page .panel,
.info-bar {
  border: 1px solid var(--cc-line-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 25%),
    rgba(10, 22, 32, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.page .panel { padding: 34px; }

.info-bar {
  padding: 28px 30px;
  color: #9babb9;
  font-family: var(--cc-code);
  font-size: 12px;
  line-height: 1.75;
}

.info-bar::before {
  content: "SYSTEM NOTE";
  display: block;
  margin-bottom: 14px;
  color: var(--cc-blue-strong);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 20px;
  color: #8ea0b0;
  font-size: 13px;
}

.list li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--cc-blue);
  font-family: var(--cc-code);
}

input,
textarea,
select {
  border: 1px solid var(--cc-line-strong);
  border-radius: 9px;
  background: rgba(4, 12, 19, 0.68);
  color: var(--cc-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
  transition: border-color 150ms ease-out, background 150ms ease-out, box-shadow 150ms ease-out;
}

input:hover,
textarea:hover,
select:hover { border-color: rgba(158, 180, 204, 0.39); }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(119, 152, 255, 0.7);
  background: rgba(4, 12, 19, 0.9);
  box-shadow: 0 0 0 4px rgba(119, 152, 255, 0.08);
  outline: 0;
}

input::placeholder,
textarea::placeholder { color: #526779; }

.form-field > span {
  color: #8194a5;
  font-family: var(--cc-code);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 17px;
  background: var(--cc-line);
}

.pricing-grid .card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 40px 34px 34px;
}

.pricing-grid .card:nth-child(2) {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 0, rgba(119, 152, 255, 0.15), transparent 35%),
    #0d1b28;
}

.pricing-grid .card:nth-child(2)::after {
  content: "RECOMMENDED";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--cc-blue-strong);
  font-family: var(--cc-code);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 34px 0 25px;
}

.price-value {
  color: #f0f5fa;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 680;
  letter-spacing: -0.055em;
}

.price-period {
  color: #708598;
  font-family: var(--cc-code);
  font-size: 10px;
}

.pricing-grid .card .card-text { min-height: 96px; }
.pricing-grid .card .btn { width: 100%; margin-top: auto; }

.payment-grid { display: grid; gap: 14px; }
.payment-grid input { width: 100%; min-height: 50px; padding: 0 15px; }

/* Roadmap */
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 17px;
  background: var(--cc-line);
}

.timeline-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(119,152,255,.34), transparent);
  pointer-events: none;
}

.timeline-item {
  min-height: 250px;
  padding: 42px 40px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 48px;
  right: 38px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cc-blue);
  border-radius: 50%;
  background: #0b1722;
  box-shadow: 0 0 0 7px rgba(119,152,255,.055);
}

.timeline-item h3 {
  max-width: 420px;
  margin: 44px 0 15px;
  color: #e7eef5;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

/* Documentation */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 17px;
  background: var(--cc-line);
}

.doc-card {
  min-height: 330px;
  padding: 40px;
}

.doc-card .card-code { margin-bottom: 50px; }

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  width: min(620px, calc(100% - 48px));
  min-height: auto;
  margin: 70px auto 110px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cc-line-strong);
  border-radius: 18px;
  background: var(--cc-line);
  box-shadow: 0 36px 110px rgba(0,0,0,.36);
}

.auth-layout .auth-tech-visual {
  display: none;
}

.form-card {
  display: flex;
  width: auto;
  max-width: none;
  min-height: auto;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(42px, 6vw, 72px);
  border: 0;
  border-radius: 0;
  background: #0c1823;
  box-shadow: none;
}

.form-card h1 {
  margin: 0 0 12px;
  color: #edf3f8;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 690;
  letter-spacing: -0.055em;
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 28px 0 24px;
  padding: 3px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: rgba(4,12,19,.48);
}

.auth-toggle-btn {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #73889a;
  font-family: var(--cc-code);
  font-size: 10px;
  font-weight: 600;
}

.auth-toggle-btn.is-active {
  background: #142536;
  color: #e1e9f0;
  box-shadow: none;
}

.form-card form { display: grid; gap: 17px; }
.form-field { display: grid; gap: 8px; }
.form-field input { min-height: 49px; padding: 0 14px; }
.form-field-help { color: #5d7386; font-size: 11px; }
.form-card form > .btn { width: 100%; min-height: 48px; margin-top: 5px; }

.auth-sso { margin-top: 24px; }
.auth-sso-title, .auth-sso-note, .form-footer { color: #62778a; font-size: 11px; line-height: 1.6; }
.auth-sso-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auth-sso-btn { width: 100%; padding-inline: 8px; font-family: var(--cc-code); font-size: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #53697c; font-family: var(--cc-code); font-size: 9px; }
.auth-divider::before, .auth-divider::after { content:""; height:1px; flex:1; background:var(--cc-line); }

/* Dashboard */
.dashboard-layout {
  padding: 78px 0 120px;
}

.dashboard-layout > .container > .section-title {
  max-width: none;
  font-size: clamp(38px, 5vw, 64px);
}

.dashboard-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 34px 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 12px;
  background: rgba(10,22,32,.82);
}

.dashboard-command > div:first-child { display: grid; gap: 3px; }
.command-label { color: #607689; font-family: var(--cc-code); font-size: 8px; letter-spacing: .12em; }
.dashboard-command strong { color: #dce6ee; font-size: 15px; }
.command-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.command-metrics span { padding: 7px 9px; border: 1px solid var(--cc-line); border-radius: 7px; color:#74899b; font-family:var(--cc-code); font-size:8px; }
.command-metrics i { display:inline-block; width:5px; height:5px; margin-right:6px; border-radius:50%; background:var(--cc-green); box-shadow:0 0 9px rgba(119,226,183,.6); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: var(--cc-line);
}

.dashboard-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 34px;
}

.dashboard-grid .card > .btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.card-actions .btn {
  width: 100%;
  justify-content: center;
}

.balance-card {
  background:
    radial-gradient(circle at 82% 20%, rgba(119,152,255,.15), transparent 30%),
    #0c1925 !important;
}

.balance-value {
  margin: 25px 0 18px;
  color: #edf4fa;
  font-family: var(--cc-code);
  font-size: clamp(58px, 7vw, 86px);
  line-height: 1;
  letter-spacing: -.08em;
}

.apps-source-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 6px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 12px;
  background: rgba(4, 12, 19, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.apps-source-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7f95a8;
  font-family: var(--cc-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.apps-source-tab:hover:not(.is-active) {
  color: #b8c8d6;
}

.apps-source-tab.is-active {
  color: #edf3f8;
  background: linear-gradient(180deg, rgba(119, 152, 255, 0.2), rgba(119, 152, 255, 0.08));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(119, 152, 255, 0.24);
}

.apps-source-tab:active {
  transform: scale(0.985);
}

[data-apps-status] {
  min-height: 1.5em;
  margin: 0 0 18px;
  transition: opacity 220ms ease;
}

[data-apps-status].is-empty {
  min-height: 0;
  margin-bottom: 0;
  opacity: 0;
}

.apps-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 13px;
  background: var(--cc-line);
  transition: opacity 220ms ease, transform 220ms ease;
}

.apps-list.is-switching {
  opacity: 0;
  transform: translateY(8px);
}
.app-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 20px; align-items:center; padding:23px 24px !important; background:#0b1722 !important; }
.app-card .card-code { display:none; }
.app-card strong { color:#dfe8ef; font-size:15px; }
.app-card .app-meta { grid-column:1; }
.app-actions { grid-row:1 / span 2; grid-column:2; display:flex; gap:8px; }

.btn-destructive {
  border-color: rgba(255,139,145,.28);
  background: rgba(255,139,145,.055);
  color: #e99aa0;
}
.btn-destructive:hover { border-color: rgba(255,139,145,.48); background:rgba(255,139,145,.09); }

/* Use cases */
.usecase-hero .hero-stack { display:block; }
.usecase-hero-card { max-width:none; padding:0; border:0; background:transparent; box-shadow:none; }
.usecase-hero .page-hero-copy { max-width:650px; }
.page-usecase-support .section .panel,
.page-usecase-sales .section .panel,
.page-usecase-hr .section .panel,
.page-usecase-ops .section .panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 46px;
}
.center-actions { justify-content:flex-end; }

/* Enterprise */
.page-enterprise .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.page-enterprise .card-grid .card { min-height:290px; }

/* Modals */
.modal {
  background: rgba(2, 7, 12, 0.78);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  padding: 28px 32px 32px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 17px;
  background: #0d1a26;
  box-shadow: 0 36px 110px rgba(0,0,0,.48);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header .section-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.modal-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #8da0af;
}

.modal-content .section-subtitle {
  margin-top: 0;
}

.modal-content--plans {
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 22px 22px 24px;
}

.modal-content--plans .section-subtitle {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.plan-shared-hint {
  margin: 0 0 12px;
  color: #8da0af;
  font-size: 0.82rem;
  line-height: 1.35;
}

.modal-content--plans .modal-header .section-title {
  font-size: clamp(20px, 2.2vw, 26px);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plan-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 42%),
    #0b1722;
  transition: border-color 160ms ease, background 160ms ease;
}

.plan-option:hover {
  border-color: rgba(119, 152, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(119, 152, 255, .05), transparent 48%),
    #101f2d;
}

.plan-option-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.plan-option-price {
  color: #f3f7fb;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.plan-option-text {
  margin: 0;
  color: #8da0af;
  font-size: 0.78rem;
  line-height: 1.35;
}

.plan-option .btn {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  justify-content: center;
}

.plan-option.is-export {
  border-color: rgba(119, 152, 255, 0.28);
}

.package-option { border:0; border-radius:0; background:#0b1722; }
.package-option:hover { background:#101f2d; }

@media (max-width: 560px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .modal-content--plans {
    padding: 18px 16px 18px;
    max-height: 92vh;
  }
}

/* Placeholder resources */
.page-resources-blog main > .section .card,
.page-resources-discord main > .section .card,
.page-resources-hire-partner main > .section .card {
  max-width: 760px;
  min-height: 330px;
  margin: 0 auto;
  padding: 56px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 30%),
    #0b1722;
}

.page-resources-blog main > .section .card::after,
.page-resources-discord main > .section .card::after,
.page-resources-hire-partner main > .section .card::after {
  content: "PENDING / RELEASE";
  position: absolute;
  right: 30px;
  bottom: 28px;
  color: #506779;
  font-family: var(--cc-code);
  font-size: 9px;
  letter-spacing: .11em;
}

/* Footer full site */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(4, 10, 16, 0.75);
}

/* Pointer spotlight progressive enhancement */
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(119,152,255,.085), transparent 58%);
  transition: opacity 180ms ease-out;
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight] > * { position:relative; z-index:1; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .tech-orbit.orbit-b { animation: cc-orbit 28s linear infinite; }
  .tech-core { animation: cc-core-breathe 5.5s ease-in-out infinite; }
  .tech-node { animation: cc-node-float 5s ease-in-out infinite; }
  .tech-node.node-b { animation-delay: -1.4s; }
  .tech-node.node-c { animation-delay: -2.8s; }
  .tech-node.node-d { animation-delay: -4.2s; }
  .tech-paths path { stroke-dasharray: 5 8; animation: cc-path 12s linear infinite; }
  .ambient-orb-a { animation: cc-ambient-a 18s ease-in-out infinite alternate; }
  .ambient-orb-b { animation: cc-ambient-b 22s ease-in-out infinite alternate; }
}

@keyframes cc-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cc-core-breathe { 50% { box-shadow: 0 0 0 20px rgba(119,152,255,.022), 0 20px 60px rgba(0,0,0,.42); } }
@keyframes cc-node-float { 50% { transform: translateY(-5px); } }
@keyframes cc-path { to { stroke-dashoffset: -80; } }
@keyframes cc-ambient-a { to { transform: translate(-80px, 90px) scale(1.15); } }
@keyframes cc-ambient-b { to { transform: translate(110px, -60px) scale(.88); } }

/* Responsive */
@media (max-width: 1100px) {
  .page-hero-shell { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap:48px; }
  .tech-visual-foot span:nth-child(2) { display:none; }
  .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-enterprise .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .page-hero { min-height:auto; padding:90px 0 72px; }
  .page-hero-shell { grid-template-columns:1fr; gap:54px; }
  .page-title { font-size:clamp(46px, 10vw, 72px); }
  .tech-visual { min-height:340px; }
  .tech-visual-stage { height:252px; }
  .page > main .section { padding:82px 0; }
  .split { grid-template-columns:1fr; gap:42px; }
  .auth-layout { grid-template-columns:1fr; width:min(620px, calc(100% - 32px)); margin:42px auto 80px; }
  .form-card { min-height:auto; padding:50px 38px; }
  .dashboard-grid { grid-template-columns:1fr; }
  .dashboard-command { align-items:flex-start; flex-direction:column; }
  .command-metrics { justify-content:flex-start; }
  .pricing-grid { grid-template-columns:1fr; }
  .pricing-grid .card { min-height:410px; }
  .timeline-grid { grid-template-columns:1fr; }
  .timeline-grid::after { display:none; }
  .docs-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  .container { padding-inline:20px; }
  .page-hero { padding:74px 0 58px; }
  .page-title { font-size:clamp(42px, 13vw, 58px); }
  .page-subtitle { margin-top:20px; font-size:16px; }
  .page-hero-copy::before { margin-bottom:17px; }
  .tech-visual { min-height:304px; border-radius:13px; }
  .tech-visual-stage { height:218px; }
  .tech-visual-foot { justify-content:flex-start; }
  .tech-visual-foot span:nth-child(3) { display:none; }
  .tech-core { width:102px; height:102px; }
  .tech-core span { font-size:25px; }
  .orbit-a { width:168px; height:168px; }
  .orbit-b { width:230px; height:230px; }
  .node-a { top:25px; left:16px; }
  .node-b { top:38px; right:13px; }
  .node-c { right:30px; bottom:24px; }
  .tech-node { min-width:70px; padding:7px 8px; font-size:7px; }
  .page > main .section { padding:66px 0; }
  .page:not(.page-home) .section-title { font-size:clamp(32px, 10vw, 44px); }
  .card-grid, .page-enterprise .card-grid { grid-template-columns:1fr; }
  .card-grid .card { min-height:205px; padding:30px 25px; }
  .card-code { margin-bottom:30px; }
  .page .panel { padding:25px; }
  .info-bar { padding:24px; }
  .timeline-item { min-height:220px; padding:32px 28px; }
  .timeline-item h3 { margin-top:34px; }
  .doc-card { min-height:280px; padding:30px 27px; }
  .form-card { padding:40px 24px; }
  .auth-sso-buttons { grid-template-columns:1fr; }
  .dashboard-layout { padding:54px 0 85px; }
  .dashboard-command { padding:17px; }
  .dashboard-grid .card { padding:27px; }
  .apps-source-tabs { display:flex; flex-wrap:wrap; width:100%; gap:8px; }
  .apps-source-tab { flex:1 1 220px; width:auto; justify-content:center; text-align:center; }
  .app-card { grid-template-columns:1fr; }
  .app-actions { grid-row:auto; grid-column:auto; }
  .page-usecase-support .section .panel,
  .page-usecase-sales .section .panel,
  .page-usecase-hr .section .panel,
  .page-usecase-ops .section .panel { padding:26px; }
  .page-resources-blog main > .section .card,
  .page-resources-discord main > .section .card,
  .page-resources-hire-partner main > .section .card { min-height:290px; padding:36px 28px; }
}

/* Final QA adjustments */
.auth-layout { place-items: stretch; }
.pricing-grid .card:nth-child(3) .price-value {
  max-width: 100%;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

/* Header logo */
.site-header .logo .brand-mark {
  width: auto;
  height: 44px;
  padding: 0;
  line-height: 0;
  overflow: visible;
}

.site-header .logo .brand-mark .logo-lockup {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
}

.site-header .logo .brand-mark .logo-icon {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
.is-page-hidden .tech-orbit,
.is-page-hidden .tech-core,
.is-page-hidden .tech-node,
.is-page-hidden .tech-paths path,
.is-page-hidden .ambient-orb { animation-play-state: paused !important; }
