
  :root {
    --void: #010207;
    --glass-card: rgba(13, 19, 36, 0.72);
    --border-soft: rgba(255, 255, 255, 0.075);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-highlight: rgba(255, 255, 255, 0.26);
    --text-white: #F8FAFC;
    --text-soft: #CBD5E1;
    --text-dim: #94A3B8;
    --text-muted: #94A3B8;
    --solar: #FF8A3D;
    --solar-light: #FFB078;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --mouse-x: 50%;
    --mouse-y: 30%;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    background-color: #010207 !important;
    background: var(--void);
    color: var(--text-white);
    font-family: var(--font);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
  }
  body {
    background-color: #010207 !important;
    background: var(--void);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.55;
  }

  /* Brand wordmark: "habiff" in white, ".si" in orange */
  .wm { color: var(--text-white); }
  .wm-si { color: var(--solar); }

  #cosmosCanvas {
    background: #010207;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
  }

  nav.saas-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 16px max(32px, calc((100vw - 1344px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 100;
    margin: 0;
    gap: 16px;
    pointer-events: none;
  }
  nav.saas-nav > * {
    pointer-events: auto;
  }
  .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .nav-center {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(12, 17, 32, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    padding: 10px 26px;
    border-radius: 999px;
    list-style: none;
  }
  .nav-center a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .nav-center a:hover { color: var(--text-white); }
  .nav-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  /* Hamburger: hidden on desktop, shown when the nav collapses. Restored
     from galactic.css.bak — this rule was lost in an earlier rebuild, which
     left the toggle visible on desktop and the mobile menu dead. */
  #navToggle { display: none; background: rgba(255,255,255,0.06); border: 1px solid var(--border-light); border-radius: 10px; color: #fff; font-size: 1.25rem; padding: 7px 12px; cursor: pointer; line-height: 1; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-white);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--border-highlight);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .btn:focus-visible {
    outline: 2px solid var(--solar-light);
    outline-offset: 2px;
  }
  .btn-white {
    background: #F8FAFC;
    color: #030611;
    border-color: #F8FAFC;
    font-weight: 700;
  }
  .btn-white:hover { background: #E2E8F0; }
  .btn-warm {
    background: var(--solar);
    color: #04060C;
    border-color: var(--solar);
    font-weight: 700;
  }
  .btn-warm:hover {
    background: var(--solar-light);
    border-color: var(--solar-light);
  }
  .btn-sm {
    padding: 7px 14px;
    font-size: 0.79rem;
  }

  .hero {
    text-align: center;
    padding: 32px 0 26px;
  }
  .hero-title {
    font-size: clamp(2.7rem, 5.3vw, 4.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
  }
  .hero-line-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-avatar-stage {
    width: 180px;
    height: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hero-avatar-stage:hover { transform: scale(1.08); }
  .hero-avatar-stage {
    animation: coreIgnite 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes coreIgnite {
    0%   { transform: scale(0.35) rotate(-120deg); opacity: 0; filter: blur(8px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { transform: none; opacity: 1; filter: none; }
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(1, 2, 7, 0.72) 100%);
  }
  .hero-line-bottom {
    background: linear-gradient(92deg, #FF8A3D 0%, #FFB078 52%, #FF7A26 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-lead {
    font-size: clamp(1.02rem, 1.45vw, 1.2rem);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 20px;
    font-weight: 400;
  }

  .voice-sync-pill {
    max-width: 680px;
    margin: 0 auto 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(13, 19, 36, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .voice-sentence {
    flex: 1;
    text-align: left;
    font-size: 0.86rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .voice-sentence .w {
    display: inline-block;
    margin-right: 4px;
    transition: color 0.12s ease;
  }
  .voice-sentence .w.active {
    color: var(--solar-light);
    font-weight: 600;
  }

  .app-perspective-stage {
    perspective: 1500px;
    margin: 18px 0 84px;
  }

  .app-window {
    position: relative;
    background:
      radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.055), transparent 45%),
      linear-gradient(165deg, rgba(16, 23, 44, 0.84) 0%, rgba(7, 11, 22, 0.9) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow:
      0 45px 120px rgba(0, 0, 0, 0.92),
      0 18px 40px rgba(0, 0, 0, 0.65),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
      inset 0 -2px 12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 740px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  }

  .app-header {
    height: 58px;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(14, 20, 38, 0.85) 0%, rgba(6, 9, 18, 0.85) 100%);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 5;
  }
  .app-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .app-search-wrap {
    flex: 1;
    max-width: 430px;
    position: relative;
  }
  .app-search-input {
    width: 100%;
    padding: 9px 16px 9px 36px;
    border-radius: 999px;
    background: rgba(4, 7, 15, 0.65);
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .app-search-input::placeholder { color: var(--text-muted); }
  .app-search-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(8, 13, 26, 0.85);
  }
  .search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.82rem;
    pointer-events: none;
  }
  .app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 500;
  }
  .user-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38BDF8, #6366F1);
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #030611;
  }

  .app-tiers {
    display: grid;
    grid-template-columns: 265px 1fr 315px;
    flex: 1;
  }

  .tier-catalog {
    background: linear-gradient(180deg, rgba(7, 10, 20, 0.7) 0%, rgba(4, 6, 13, 0.82) 100%);
    border-right: 1px solid var(--border-soft);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .new-chat-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    transition: all 0.18s;
  }
  .new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
  }
  .catalog-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    padding: 0 10px;
    margin: 14px 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .catalog-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.16s;
    margin-bottom: 3px;
  }
  .catalog-item:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-white);
  }
  .catalog-item.active {
    background: rgba(255, 255, 255, 0.085);
    border-color: var(--border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--text-white);
    font-weight: 600;
  }
  .soft-pill {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.15);
    color: var(--solar-light);
    font-weight: 600;
  }
  .soft-pill.emerald {
    background: rgba(16, 185, 129, 0.16);
    color: #34D399;
  }

  .team-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s;
  }
  .team-row:hover, .team-row.active-agent {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-soft);
    transform: translateX(2px);
  }
  .team-row-info { flex: 1; }
  .team-row-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .team-row-desc {
    font-size: 0.71rem;
    color: var(--text-muted);
  }

  .tier-chat {
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 60%),
      rgba(9, 13, 26, 0.42);
    position: relative;
  }

  .story-flow-bar {
    padding: 11px 22px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(6, 9, 19, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .story-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .story-pill {
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
  }
  .story-pill:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
  }
  .story-pill.active {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .agent-comm-tabs {
    padding: 8px 22px;
    background: rgba(14, 21, 40, 0.65);
    border-bottom: 1px solid var(--border-soft);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .agent-comm-tabs.visible {
    display: flex;
  }
  .comm-tab-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .comm-tab {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
  }
  .comm-tab.active {
    background: rgba(255, 138, 61, 0.16);
    border-color: rgba(255, 138, 61, 0.45);
    color: var(--text-white);
  }

  .chat-messages {
    flex: 1;
    padding: 22px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 560px;
  }

  .dimensional-card {
    background: linear-gradient(165deg, rgba(22, 32, 58, 0.88) 0%, rgba(11, 17, 34, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.65),
      0 6px 16px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    animation: cardUnfold 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .dimensional-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.75),
      0 8px 20px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
  @keyframes cardUnfold {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .onboard-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.76rem;
    color: var(--text-dim);
  }
  .step-dots {
    display: flex;
    gap: 6px;
  }
  .step-dot {
    width: 22px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s, width 0.2s;
  }
  .step-dot.done { background: rgba(255, 138, 61, 0.55); }
  .step-dot.current { background: var(--solar); width: 32px; }

  .user-msg-wrap {
    display: flex;
    justify-content: flex-end;
  }
  .user-msg-bubble {
    max-width: 78%;
    background: linear-gradient(145deg, rgba(42, 56, 96, 0.78), rgba(24, 34, 62, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: 20px 20px 4px 20px;
    padding: 13px 18px;
    font-size: 0.9rem;
    color: var(--text-white);
  }

  .agent-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
  }
  .agent-bubble {
    flex: 1;
    background: linear-gradient(165deg, rgba(20, 29, 54, 0.82) 0%, rgba(12, 18, 34, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 6px 20px 20px 20px;
    padding: 16px 20px;
    transition: transform 0.22s ease, border-color 0.22s ease;
  }
  .agent-msg-row.highlighted .agent-bubble {
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(165deg, rgba(26, 38, 68, 0.9) 0%, rgba(15, 22, 42, 0.94) 100%);
    transform: translateY(-1px);
  }
  .agent-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
  }
  .agent-role-badge {
    font-size: 0.71rem;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    color: var(--text-dim);
  }
  .agent-copy {
    font-size: 0.89rem;
    color: var(--text-soft);
    line-height: 1.58;
  }

  .sub-panel {
    margin-top: 12px;
    background: rgba(6, 10, 20, 0.78);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  }
  .summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.84rem;
  }
  .summary-row:last-child { border-bottom: none; }
  .fact-badge {
    font-size: 0.66rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.14);
    color: #34D399;
    white-space: nowrap;
  }
  .assumption-badge {
    font-size: 0.66rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.16);
    color: #FBBF24;
    white-space: nowrap;
  }

  .rec-agent-card {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .rec-agent-card.declined {
    opacity: 0.45;
    border-style: dashed;
  }
  .rec-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.77rem;
    color: var(--text-dim);
    background: rgba(3, 5, 12, 0.6);
    padding: 9px 12px;
    border-radius: 10px;
  }

  .draft-preview-card {
    margin-top: 14px;
    background: rgba(7, 11, 22, 0.85);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .draft-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 10px;
    font-size: 0.83rem;
    color: var(--text-dim);
  }
  .draft-meta strong { color: var(--text-white); font-weight: 600; }
  .draft-body-input {
    width: 100%;
    min-height: 84px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.86rem;
    line-height: 1.55;
    resize: vertical;
    outline: none;
  }
  .draft-attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    font-size: 0.78rem;
    color: var(--text-soft);
    margin: 6px 0 12px;
  }
  .draft-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
  }

  .composer-area {
    padding: 14px 22px 18px;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.65) 0%, rgba(4, 7, 15, 0.9) 100%);
    border-top: 1px solid var(--border-soft);
  }
  .attached-files-tray {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .attached-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.14);
    border: 1px solid rgba(255, 138, 61, 0.35);
    font-size: 0.78rem;
    color: var(--solar-light);
  }
  .composer-shell {
    background: linear-gradient(165deg, rgba(19, 28, 52, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.65),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .composer-shell:focus-within {
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.78),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  .composer-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
  }
  .composer-input::placeholder { color: var(--text-muted); }
  .composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .composer-tools-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-family: var(--font);
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s;
  }
  .tool-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text-white);
  }
  .model-select {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-family: var(--font);
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
  }
  .model-select option {
    background: #0B101E;
    color: var(--text-white);
  }
  .send-round-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--solar);
    color: #04060C;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.16s, background 0.16s;
  }
  .send-round-btn:hover {
    transform: scale(1.06);
    background: var(--solar-light);
  }

  .quick-tags-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }
  .quick-tag {
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s;
  }
  .quick-tag:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .tier-mechanics {
    background: linear-gradient(180deg, rgba(7, 10, 20, 0.7) 0%, rgba(4, 6, 13, 0.82) 100%);
    border-left: 1px solid var(--border-soft);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
  }
  .mechanics-card {
    background: rgba(4, 7, 15, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .mechanics-title {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
  }
  .mood-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .mood-btn {
    padding: 8px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.16s;
  }
  .mood-btn:hover, .mood-btn.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--text-white);
  }

  .saas-section {
    padding: 74px 0;
    border-top: 1px solid var(--border-soft);
  }
  .section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
  }
  .section-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--solar-light);
    margin-bottom: 10px;
  }
  .section-h2 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .section-sub {
    color: var(--text-dim);
    font-size: 1rem;
  }

  .usecase-tabs {
    display: inline-flex;
    background: rgba(13, 18, 34, 0.78);
    border: 1px solid var(--border-light);
    padding: 5px;
    border-radius: 999px;
    margin-bottom: 34px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .uc-tab-btn {
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .uc-tab-btn.active {
    background: var(--text-white);
    color: #030611;
    font-weight: 700;
  }

  .usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .uc-card {
    background: var(--glass-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.24s, border-color 0.24s;
  }
  .uc-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
  }
  .uc-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 14px 0 10px;
  }
  .uc-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
  }

  .crew-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .crew-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.24s, border-color 0.24s;
  }
  .crew-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.24);
  }
  .crew-card h4 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-top: 10px;
  }
  .crew-card .role-line {
    font-size: 0.76rem;
    font-weight: 600;
    margin: 4px 0 8px;
  }
  .crew-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .price-card {
    background: var(--glass-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .price-card.featured {
    border-color: rgba(255, 138, 61, 0.5);
    background: linear-gradient(180deg, rgba(255, 138, 61, 0.08) 0%, rgba(13, 18, 32, 0.85) 100%);
  }
  .price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 14px 0 6px;
  }
  .price-amount span {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dim);
  }
  .price-features {
    list-style: none;
    margin: 20px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-soft);
  }

  footer.site-footer {
    padding: 40px 0 54px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.84rem;
  }

  /* ---------- footer sitemap ---------- */
  /* Full-bleed solid band so the fixed hero core can't show through */
  .footer-sitemap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    width: 100vw;
    margin: 40px calc(50% - 50vw) 0;
    padding: 48px max(28px, calc((100vw - 1400px) / 2 + 28px)) 30px;
    border-top: 1px solid var(--border-soft);
    background: #05070F;
  }
  footer.site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(28px, calc((100vw - 1400px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 1400px) / 2 + 28px));
    background: #05070F;
    border-top: none;
  }
  .footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 300px; margin-top: 10px; }
  .footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--solar-light); margin-bottom: 14px; }
  .footer-col ul { list-style: none; padding: 0; margin: 0; }
  .footer-col li { margin-bottom: 9px; }
  .footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
  .footer-col a:hover { color: var(--text-white); }
  .footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 0 54px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.82rem; }

  @media (max-width: 980px) {
    .footer-sitemap { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 780px) {
    .footer-sitemap { grid-template-columns: 1fr; gap: 22px; }
  }
  @media (max-width: 1180px) {
    .app-tiers { grid-template-columns: 240px 1fr; }
    .tier-mechanics { display: none; }
    .crew-grid-dynamic { grid-template-columns: repeat(2, 1fr); }
    .usecase-grid, .pricing-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 780px) {
    .app-tiers { grid-template-columns: 1fr; }
    .tier-catalog { display: none; }
    #navToggle { display: inline-block; }
    .nav-center { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 16px; margin-top: 10px; z-index: 60; }
    .nav-center.open { display: flex; }
    .nav-center li { width: 100%; }
    .nav-center a { display: block; padding: 13px 16px; font-size: 1rem; }
    .nav-cta-group .btn { padding: 8px 14px; font-size: 0.78rem; }
    .crew-grid-dynamic { grid-template-columns: 1fr; }
    .rec-meta-grid { grid-template-columns: 1fr; }
  }
  /* Collapse the nav at 1100px, not 780px: at browser zoom (960px CSS
     width) the full link pill wraps the nav into three rows, 184px tall,
     and pushes the hero's tagline and voice below the fold. One row +
     hamburger from 1100px down keeps the hero visible. */
  @media (max-width: 1100px) {
    #navToggle { display: inline-block; }
    .nav-center { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 16px; margin-top: 10px; z-index: 60; }
    .nav-center.open { display: flex; }
    .nav-center li { width: 100%; }
    .nav-center a { display: block; padding: 13px 16px; font-size: 1rem; }
  }
  /* 781–1100px only: force the single row. Below 780px the nav may wrap
     (logo + hamburger on row one, CTAs below) as the mobile pass intends. */
  @media (max-width: 1100px) and (min-width: 781px) {
    nav.saas-nav { flex-wrap: nowrap; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  .nav-item { position: relative; }
  .nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
  .caret { opacity: 0.55; transition: transform 0.2s ease; }
  .nav-item:hover .caret { transform: rotate(180deg); opacity: 1; }
  .nav-drop {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 10px);
    padding-top: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 70;
  }
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .drop-panel {
    background: rgba(9, 14, 27, 0.96);
    backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    padding: 10px;
    width: 440px;
  }
  .nav-drop.wide .drop-panel { width: 520px; }
  .drop-list { display: flex; flex-direction: column; gap: 2px; }
  .drop-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px; text-decoration: none;
    transition: background 0.18s ease;
  }
  .drop-row:hover { background: rgba(255,255,255,0.06); }
  .drop-row-text { display: flex; flex-direction: column; gap: 3px; }
  .drop-row-text strong { color: var(--text-white); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
  .drop-row-text em { color: var(--text-soft); font-size: 0.76rem; font-style: normal; }
  .drop-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .drop-app {
    display: flex; align-items: center; gap: 13px;
    padding: 10px 12px; border-radius: 10px; text-decoration: none;
    transition: background 0.18s ease;
  }
  .drop-app:hover { background: rgba(255,255,255,0.06); }
  .drop-app img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: rgba(255,255,255,0.06); }
  .nav-drop-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px; padding: 10px 12px 4px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.8rem; color: var(--text-soft);
  }
  .nav-drop-foot a { color: var(--text-white); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .nav-drop-foot a:hover { color: #FFB078; }
  @media (max-width: 900px) {
    .nav-drop, .caret { display: none; }
  }


/* ==========================================================================
   RESTORED 2026-11-05 (v9 audit) — these rules were lost from the live
   stylesheet in an earlier rebuild; they exist only in galactic.css.bak.
   Restoring them fixes: unstyled body links (.prose a), the sub-page hero
   (.page-hero), the ONE lockup, the specialist customizer buttons, cards,
   grids, article/news styles, reveal, forms, ad slots, steps timeline.
   EXCLUDED on purpose: .footer-sitemap (live has the newer v7 full-bleed
   version) and .saas-nav{position:relative} (would break the absolute
   homepage nav).
   ========================================================================== */
/* ==========================================================================
   SITE-GALACTIC EXTENSIONS — sub-page system, footer sitemap, forms,
   ad slots, ONE lockup, customizer, reveals, mobile pass.
   Brand: void #010207, Plus Jakarta Sans, JetBrains Mono, solar #FF8A3D.
   ========================================================================== */

/* ---------- sub-page hero ---------- */
.page-hero { text-align: center; padding: 64px 0 36px; max-width: 860px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 10px 0 16px; }
.page-hero .lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-dim); max-width: 680px; margin: 0 auto; }
.page-hero .bionic-orb { vertical-align: -8px; margin: 0 6px; }

/* ---------- content helpers ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--text-soft); margin-bottom: 1.1em; font-size: 1.02rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 0.6em; letter-spacing: -0.01em; }
.prose ul { color: var(--text-soft); margin: 0 0 1.2em 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--solar-light); }
.check-list { list-style: none; margin-left: 0 !important; padding: 0; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--solar); font-weight: 800; }
.step-num { font-family: var(--font-mono); color: var(--solar); font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---------- grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- cards + typographic hierarchy ---------- */
.card {
  background: var(--glass-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}
.kicker {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--solar-light); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero .kicker, .section-head .kicker { justify-content: center; }
.card p { color: var(--text-soft); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.card p + p { margin-top: 0.8em; }
.card .step-num { display: block; margin-bottom: 12px; }
.glyph {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--solar);
  background: rgba(255,138,61,0.10); border: 1px solid rgba(255,138,61,0.28);
}

/* ---------- footer sitemap ---------- */
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 300px; margin-top: 10px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--solar-light); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--text-white); }
.footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 0 54px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.82rem; }

/* ---------- ad slots (empty, labeled — news hub) ---------- */
.ad-slot { border: 1.5px dashed rgba(255,255,255,0.16); border-radius: 16px; padding: 26px 18px; text-align: center; margin: 30px auto; max-width: 100%; background: rgba(255,255,255,0.015); }
.ad-slot .ad-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ad-slot .ad-note { font-size: 0.85rem; color: var(--text-muted); }
.ad-slot-leaderboard { max-width: 728px; min-height: 90px; }
.ad-slot-card { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }

/* ---------- forms ---------- */
.form-card { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; color: var(--text-soft); }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 15px; color: #fff; font-family: var(--font); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--solar); border-color: var(--solar); }
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; text-align: center; }

/* ---------- articles ---------- */
.article-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; margin: 14px 0 26px; }
.article-body { max-width: 740px; margin: 0 auto; }
.article-body p { color: var(--text-soft); margin-bottom: 1.25em; font-size: 1.06rem; line-height: 1.7; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 0.7em; letter-spacing: -0.02em; }
.article-sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.article-sources h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--solar-light); margin-bottom: 12px; }
.article-sources li { margin-bottom: 8px; font-size: 0.9rem; }
.article-sources a { color: var(--text-dim); }
.news-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: block; text-decoration: none; color: inherit; transition: transform 0.18s; }
.news-card:hover { transform: translateY(-3px); }
.news-card h3 { font-size: 1.15rem; margin: 12px 0 8px; letter-spacing: -0.01em; color: var(--text-white); }
.news-card p { font-size: 0.92rem; color: var(--text-dim); }
.news-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--solar-light); letter-spacing: 0.08em; }

/* ---------- ONE lockup (brand studio) ---------- */
.one-lockup { display: inline-flex; align-items: center; line-height: 1; flex-wrap: wrap; justify-content: center; }
.one-ne { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; color: #F8FAFC; }
.one-div { width: 2px; align-self: stretch; min-height: 44px; background: rgba(255,255,255,0.16); margin: 0 22px; }
.one-by { display: inline-flex; align-items: baseline; gap: 8px; font-size: clamp(1.1rem, 2.6vw, 1.7rem); text-transform: lowercase; }

/* ---------- specialist customizer (brand studio) ---------- */
.customizer-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.shape-btn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.pick-btn { padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); color: var(--text-soft); font-family: var(--font); font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.16s; }
.pick-btn:hover, .pick-btn.active { background: rgba(255,138,61,0.16); border-color: var(--solar); color: #fff; }
.color-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.col-dot { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.16s; }
.col-dot:hover, .col-dot.active { transform: scale(1.14); border-color: #fff; }
.shape-card { text-align: center; cursor: pointer; padding: 18px !important; }
.shape-name { font-weight: 700; font-size: 0.92rem; margin-top: 8px; }
.shape-col { font-family: var(--font-mono); font-size: 0.72rem; }
.stage-box { min-height: 215px; border-radius: 18px; background: rgba(3,5,12,0.88); border: 1px solid var(--border-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; margin-bottom: 18px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- nav toggle (mobile) ---------- */
/* ---------- changelog ---------- */
.update-entry { padding: 26px 0; border-bottom: 1px solid var(--border-soft); }
.update-entry:last-child { border-bottom: none; }
.update-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--solar-light); letter-spacing: 0.1em; }
.update-entry h3 { font-size: 1.3rem; margin: 8px 0; }
.update-entry p { color: var(--text-dim); }

/* ==========================================================================
   MOBILE PASS — fluid from the first line. Zero horizontal scroll at 390px.
   ========================================================================== */
img, canvas, video, svg { max-width: 100%; height: auto; }
body { overflow-wrap: break-word; }
table { display: block; overflow-x: auto; max-width: 100%; }

@media (max-width: 980px) {
  .footer-sitemap { grid-template-columns: 1fr 1fr; }
  .customizer-layout { grid-template-columns: 1fr; }
  .news-card-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  #navToggle { display: inline-block; }
  .nav-center { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 16px; margin-top: 10px; z-index: 60; }
  .nav-center.open { display: flex; }
  .nav-center li { width: 100%; }
  .nav-center a { display: block; padding: 13px 16px; font-size: 1rem; }
  .nav-cta-group .btn { padding: 8px 14px; font-size: 0.78rem; }
  .footer-sitemap { grid-template-columns: 1fr; gap: 22px; }
  .one-div { display: none; }
  .one-lockup { gap: 12px; }
  .shape-btn-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .page-hero { padding: 100px 0 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; } /* no iOS zoom */
  .ad-slot-leaderboard { min-height: 100px; }
}


  /* MEGA-DROPDOWN NAV — rich hover panels, minimalist galactic skin */
  .nav-center { gap: 24px; }
  .nav-item { position: relative; }
  .nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
  .caret { opacity: 0.55; transition: transform 0.2s ease; }
  .nav-item:hover .caret { transform: rotate(180deg); opacity: 1; }
  .nav-drop {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 10px);
    padding-top: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 70;
  }
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .drop-panel {
    background: rgba(9, 14, 27, 0.96);
    backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    padding: 10px;
    width: 440px;
  }
  .nav-drop.wide .drop-panel { width: 520px; }
  .drop-list { display: flex; flex-direction: column; gap: 2px; }
  .drop-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px; text-decoration: none;
    transition: background 0.18s ease;
  }
  .drop-row:hover { background: rgba(255,255,255,0.06); }
  .drop-row-text { display: flex; flex-direction: column; gap: 3px; }
  .drop-row-text strong { color: var(--text-white); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
  .drop-row-text em { color: var(--text-soft); font-size: 0.76rem; font-style: normal; }
  .drop-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .drop-app {
    display: flex; align-items: center; gap: 13px;
    padding: 10px 12px; border-radius: 10px; text-decoration: none;
    transition: background 0.18s ease;
  }
  .drop-app:hover { background: rgba(255,255,255,0.06); }
  .drop-app img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: rgba(255,255,255,0.06); }
  .nav-drop-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px; padding: 10px 12px 4px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.8rem; color: var(--text-soft);
  }
  .nav-drop-foot a { color: var(--text-white); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .nav-drop-foot a:hover { color: #FFB078; }
  @media (max-width: 900px) {
    .nav-drop, .caret { display: none; }
  }

/* ---- steps timeline (how-it-works) ---- */
.steps-timeline {
  position: relative;
  max-width: 780px;
  margin: 8px auto 0;
  padding-left: 52px;
}
.steps-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--solar) 18%, var(--solar-light) 50%, var(--solar) 82%, transparent);
  opacity: 0.55;
}
.steps-timeline .step-card {
  position: relative;
  margin-bottom: 30px;
}
.steps-timeline .step-card:last-child { margin-bottom: 6px; }
.steps-timeline .step-card::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--solar);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.55);
}
@media (max-width: 640px) {
  .steps-timeline { padding-left: 38px; }
  .steps-timeline::before { left: 12px; }
  .steps-timeline .step-card::before { left: -34px; width: 11px; height: 11px; }
}

/* Homepage-only absolute nav: the hero is full-viewport and its text is
   centered on the VIEWPORT (where the fixed core lives), so on the homepage
   the nav must overlay the hero instead of pushing it down. Sub-pages keep
   the in-flow nav above, so their titles clear it. :has() matches only the
   homepage, which is the one page with a .hero-intro section. */
body:has(.hero-intro) nav.saas-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Text links inside cards and section headers — same treatment as .prose a.
   These containers had no link rule, so their links rendered browser-default
   blue. Excludes .btn so buttons keep their own styles. */
.card a:not(.btn),
.section-head a:not(.btn),
.section-sub a:not(.btn) {
  color: var(--solar-light);
}
.card a:not(.btn):hover,
.section-head a:not(.btn):hover,
.section-sub a:not(.btn):hover {
  color: #fff;
}

/* Accessible keyboard focus for the specialist color controls. */
.col-dot:focus-visible {
  outline: 2px solid var(--solar-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 176, 120, 0.22);
}

/* Clear, compact readiness labels for planned product capabilities. */
.feature-status {
  display: inline-flex;
  align-items: center;
  margin-inline-start: .5em;
  padding: .2rem .55rem;
  border: 1px solid rgba(255, 176, 120, .48);
  border-radius: 999px;
  background: rgba(255, 138, 61, .11);
  color: var(--solar-light);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .02em;
  white-space: nowrap;
  vertical-align: middle;
}

/* Better footer hierarchy, contrast, and phone-sized tap targets. */
.footer-h { margin: 0 0 16px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--solar-light); }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; }

.skip-link { position:absolute; left:-9999px; top:12px; z-index:200; }
.skip-link:focus { left:16px; padding:8px 14px; border-radius:999px; background:#F8FAFC; color:#030611; }

/* keep clear space around the habiff.si wordmark on phones */
@media (max-width: 480px) { nav.saas-nav .nav-cta-group { display: none !important; } }

/* footer copyright link */
.footer-base a { color: var(--text-dim); text-decoration: none; }
.footer-base a:hover { color: var(--text-white); }
