/*
 * Automations — Personal Workflow Hub
 * Theme: Interludio (matches axshul.site main design)
 * Fonts: Playfair Display (serif) + Roboto Condensed (sans)
 * Accent: #0044FF (electric blue)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Roboto+Condensed:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
    --bg: #ffffff;
    --bg-off: #fafafa;
    --bg-subtle: #f5f5f5;
    --text: #050505;
    --text-mid: #444444;
    --text-dim: #888888;
    --border: #e0e0e0;
    --border-hi: #c8c8c8;

    --blue: #0044FF;
    --blue-dk: #0033CC;
    --blue-lt: rgba(0, 68, 255, 0.07);
    --blue-mid: rgba(0, 68, 255, 0.12);

    --red-soft: #e53935;
    --green-soft: #1a8a4a;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto Condensed', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --max-w: 1320px;
    --r: 4px;
    /* very subtle radius — keeps editorial feel */
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ── Page wrapper ── */
.auto-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 3rem 8rem;
}

/* ─────────────────────────────────────────────
   NAV  (mirrors main site style)
───────────────────────────────────────────── */
.auto-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
}

.auto-nav .inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo — serif italic like main site */
.nav-logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--blue);
}

.nav-links-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links-list a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mid);
    transition: color 0.2s;
}

.nav-links-list a:hover {
    color: var(--blue);
}

.nav-links-list a.active {
    color: var(--text);
}

/* Interludio-style nav CTA button */
.nav-cta {
    display: flex;
    align-items: center;
    height: 2.6rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: white;
    background: var(--text);
    transition: all 0.25s;
    flex-shrink: 0;
}

.nav-cta .cta-text {
    padding: 0 1.2rem;
}

.nav-cta .cta-icon {
    width: 2.6rem;
    height: 2.6rem;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: width 0.25s;
}

.nav-cta:hover .cta-icon {
    width: 3.8rem;
}

/* mobile hamburger */
.nav-mob-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.auto-hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* eyebrow label */
.eyebrow {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--blue);
    display: inline-block;
}

.hero-h1 {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.hero-h1 i {
    font-style: italic;
    color: var(--blue);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-mid);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

/* Interludio button pair */
.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 3rem;
}

.hero-btns a {
    min-width: 240px;
}

.ib-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--text);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
}

.ib-btn .bt {
    padding: 0 1.5rem;
}

.ib-btn .bi {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: width 0.25s;
    flex-shrink: 0;
}

.ib-btn:hover .bi {
    width: 5rem;
}

.ib-btn.outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-top: none;
}

.ib-btn.outline .bi {
    background: var(--text);
    color: white;
}

/* Stat row */
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
}

.stat-num sup {
    font-size: 0.9rem;
    color: var(--blue);
}

.stat-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

/* Right side visual — workflow nodes */
.hero-right {
    position: relative;
}

.wf-canvas {
    background: var(--bg-off);
    border: 1px solid var(--border);
    padding: 2rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wf-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
}

.wf-nodes {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0;
}

.wf-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.wf-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1.5px solid var(--border);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wf-box:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-lt);
}

.wf-box.active {
    border-color: var(--blue);
    background: var(--blue-lt);
    animation: pulse-box 2s ease-in-out infinite;
}

@keyframes pulse-box {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--blue-mid);
    }

    50% {
        box-shadow: 0 0 0 6px transparent;
    }
}

.wf-node-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.wf-conn {
    width: 40px;
    height: 1.5px;
    background: var(--border);
    margin-bottom: 1.35rem;
    flex-shrink: 0;
    position: relative;
}

.wf-conn::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid var(--border);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* ─────────────────────────────────────────────
   SECTION LABEL  (editorial dash + caps text)
───────────────────────────────────────────── */
.sec-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sec-label::before {
    content: '';
    width: 18px;
    height: 1.5px;
    background: var(--border-hi);
    display: inline-block;
}

/* Page section header row */
.page-sec-hdr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-sec-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-sec-title i {
    font-style: italic;
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   BADGE CHIP
───────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.65rem;
    border: 1px solid;
}

.chip-blue {
    border-color: var(--blue);
    color: var(--blue);
}

.chip-black {
    border-color: var(--text);
    color: var(--text);
    background: var(--text);
    color: white;
}

.chip-grey {
    border-color: var(--border-hi);
    color: var(--text-dim);
}

.chip .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ─────────────────────────────────────────────
   GRID
───────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

/* ─────────────────────────────────────────────
   CARD
───────────────────────────────────────────── */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* top accent rules */
.card[data-accent="blue"] {
    border-top: 2px solid var(--blue);
}

.card[data-accent="black"] {
    border-top: 2px solid var(--text);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────
   VERIFIER FORM
───────────────────────────────────────────── */
.vf-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vf-field label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.vf-field input,
.vf-field select {
    background: var(--bg-off);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.vf-field input::placeholder {
    color: var(--text-dim);
}

.vf-field input:focus,
.vf-field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-lt);
}

.vf-field select {
    font-family: var(--font-sans);
    font-size: 0.83rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Verify button — Interludio style */
.verify-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    width: 100%;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--text);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

.verify-btn .vb-text {
    padding: 0 1.5rem;
}

.verify-btn .vb-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: width 0.25s;
}

.verify-btn:hover .vb-icon {
    width: 5rem;
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verify-btn:disabled .vb-icon {
    width: 3.5rem;
}

/* Terminal output */
.vf-output {
    margin-top: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vf-out-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.out-dots {
    display: flex;
    gap: 5px;
}

.out-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.out-dots i:nth-child(1) {
    background: #c0c0c0;
}

.out-dots i:nth-child(2) {
    background: #c8c8c8;
}

.out-dots i:nth-child(3) {
    background: #d0d0d0;
}

.out-meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.out-status {
    font-weight: 700;
}

.out-endpoint {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vf-out-body {
    padding: 1rem;
    min-height: 90px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-mid);
    background: var(--bg);
    overflow-x: auto;
    max-width: 100%;
}

#resultContainer {
    font-size: 0.9em;
    transform-origin: top left;
}

.out-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

.out-loader {
    display: none;
    align-items: center;
    gap: 0.65rem;
    color: var(--blue);
}

.out-loader.show {
    display: flex;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 68, 255, 0.15);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* ─────────────────────────────────────────────
   COURSES / LINK ROWS
───────────────────────────────────────────── */
.link-list {
    display: flex;
    flex-direction: column;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: color 0.2s, padding-left 0.2s;
}

.link-row:first-child {
    border-top: 1px solid var(--border);
}

.link-row:hover {
    color: var(--blue);
    padding-left: 6px;
}

.link-icon {
    font-size: 0.92rem;
    flex-shrink: 0;
}

.link-label {
    flex: 1;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.link-meta {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    font-weight: 400;
}

.link-arrow {
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: transform 0.2s, color 0.2s;
}

.link-row:hover .link-arrow {
    transform: translateX(4px);
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   COMMUNITY IMAGE
───────────────────────────────────────────── */
.community-img-wrap {
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.community-img-wrap img {
    width: 100%;
    display: block;
    filter: grayscale(18%);
    transition: filter 0.4s, transform 0.45s;
}

.community-img-wrap:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Profile link row */
.profile-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.profile-row:hover {
    border-color: var(--blue);
    background: var(--blue-lt);
}

.profile-av {
    width: 40px;
    height: 40px;
    background: var(--text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
}

.profile-url {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
}

.profile-arrow {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.2s, color 0.2s;
}

.profile-row:hover .profile-arrow {
    transform: translateX(4px);
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   NEXUS CARD  (minimal editorial version)
───────────────────────────────────────────── */
.nexus-card {
    background: var(--text);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.nexus-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.nexus-wm {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.nexus-tagline {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1.5rem;
}

.nexus-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
}

.nexus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.nexus-tag {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.55rem;
}

/* Nexus buttons on dark bg */
.nexus-btns {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.nexus-btns a {
    min-width: 220px;
}

.nb-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.2rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
}

.nb-btn .nt {
    padding: 0 1.25rem;
}

.nb-btn .ni {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: width 0.25s;
    flex-shrink: 0;
}

.nb-btn:hover .ni {
    width: 4.5rem;
}

.nb-btn.solid {
    background: var(--blue);
    color: white;
}

.nb-btn.solid .ni {
    background: rgba(255, 255, 255, 0.15);
}

.nb-btn.ghost-w {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: none;
}

.nb-btn.ghost-w .ni {
    background: rgba(255, 255, 255, 0.08);
}

/* ─────────────────────────────────────────────
   MY CREATIONS — Empty State
───────────────────────────────────────────── */
.creations-empty {
    border: 1px dashed var(--border-hi);
    padding: 3.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-off);
}

.ce-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.ce-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.ce-sub {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.88rem;
    color: var(--text-mid);
    max-width: 320px;
    line-height: 1.7;
}

/* Wire-frame placeholder cards */
.ph-card {
    border: 1px dashed var(--border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.45;
    background: var(--bg-off);
}

.ph-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ph-lines {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ph-line {
    height: 7px;
    background: var(--border-hi);
}

.ph-long {
    width: 120px;
}

.ph-short {
    width: 72px;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.auto-footer {
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-copy a {
    color: var(--blue);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   FADE-IN ENTRY
───────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Tablet (≤1080px)
───────────────────────────────────────────── */
@media (max-width: 1080px) {
    .auto-hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 4rem 0 3rem;
        margin-bottom: 3.5rem;
    }

    .hero-right {
        display: none;
    }

    .hero-h1 {
        font-size: 3.8rem;
    }

    .hero-sub {
        max-width: 100%;
    }

    .col-5,
    .col-7 {
        grid-column: span 6;
    }

    .col-8 {
        grid-column: span 12;
    }

    .col-4 {
        grid-column: span 6;
    }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Mobile (≤768px)
───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Layout */
    .auto-wrap {
        padding: 0 1rem 5rem;
    }

    .auto-nav .inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    /* hide "/ AUTOMATIONS" sub-label in nav logo on mobile */
    .nav-logo span {
        display: none;
    }

    /* smaller nav CTA */
    .nav-cta,
    .nav-cta .cta-icon {
        height: 2.4rem;
    }

    .nav-cta .cta-icon {
        width: 2.4rem;
    }

    .nav-cta .cta-text {
        padding: 0 0.85rem;
        font-size: 0.65rem;
    }

    /* Nav menu */
    .nav-links-list {
        display: none;
    }

    .nav-links-list.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 61px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.99);
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 1.25rem;
        gap: 1.1rem;
        z-index: 300;
        backdrop-filter: blur(8px);
    }

    .nav-mob-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .auto-hero {
        padding: 2.5rem 0 2rem;
        margin-bottom: 2.5rem;
    }

    .hero-h1 {
        font-size: 2.8rem;
        line-height: 0.98;
    }

    .hero-sub {
        font-size: 0.92rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-btns {
        margin-bottom: 2rem;
    }

    .hero-btns a {
        min-width: unset;
        width: 100%;
    }

    .hero-stats {
        gap: 1.75rem;
        padding-top: 1.5rem;
    }

    .stat-num {
        font-size: 1.85rem;
    }

    .stat-lbl {
        font-size: 0.6rem;
    }

    /* Grid — single column */
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-12 {
        grid-column: span 1;
    }

    /* Cards — reduce padding */
    .card {
        padding: 1.35rem 1.1rem;
    }

    .card-head {
        margin-bottom: 1.1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Verifier form */
    .vf-row {
        grid-template-columns: 1fr;
    }

    /* hide long endpoint path in output bar on mobile */
    .out-endpoint {
        display: none;
    }

    .vf-out-bar {
        padding: 0.5rem 0.85rem;
    }

    /* keep buttons touch-friendly (≥44px) */
    .verify-btn {
        height: 3.2rem;
    }

    .verify-btn .vb-icon {
        width: 3.2rem;
        height: 3.2rem;
    }

    .ib-btn {
        height: 3.2rem;
    }

    .ib-btn .bi {
        width: 3.2rem;
        height: 3.2rem;
    }

    /* Link rows — hide secondary meta text */
    .link-meta {
        display: none;
    }

    /* Community card */
    .community-img-wrap {
        margin-bottom: 0.75rem;
    }

    /* Nexus card */
    .nexus-wm {
        font-size: 2.2rem;
        letter-spacing: 0.2em;
    }

    .nexus-tags {
        gap: 0.35rem;
    }

    .nexus-btns a {
        min-width: unset;
        width: 100%;
    }

    .nb-btn {
        height: 3.2rem;
    }

    .nb-btn .ni {
        width: 3.2rem;
        height: 3.2rem;
    }

    /* My Creations placeholder cards */
    .ph-card {
        padding: 1rem;
    }

    /* Page section header */
    .page-sec-title {
        font-size: 1.5rem;
    }

    /* Footer — stack vertically */
    .auto-footer {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 3.5rem;
        padding-top: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Small phones (≤480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .auto-wrap {
        padding: 0 0.9rem 4rem;
    }

    .hero-h1 {
        font-size: 2.2rem;
    }

    .eyebrow {
        font-size: 0.6rem;
    }

    .card {
        padding: 1.1rem 0.9rem;
    }

    /* full-width CTA in creations empty state */
    .creations-empty .ib-btn {
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        gap: 0.75rem 1.25rem;
    }

    /* prevent chip from overflowing card header */
    .card-head {
        gap: 0.5rem;
    }

    .chip {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — iPhone SE / very small (≤375px)
───────────────────────────────────────────── */
@media (max-width: 375px) {
    .auto-wrap {
        padding: 0 0.75rem 4rem;
    }

    .auto-nav .inner {
        padding: 0 0.75rem;
    }

    .hero-h1 {
        font-size: 1.95rem;
    }

    .stat-num {
        font-size: 1.6rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    /* condense Nexus wordmark further */
    .nexus-wm {
        font-size: 1.7rem;
        letter-spacing: 0.15em;
    }

    /* wrap profile URL cleanly */
    .profile-url {
        font-size: 0.6rem;
        word-break: break-all;
    }
}
/* -- Workflow Showcase -- */
.wf-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wf-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.wf-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wf-tags .tag {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.wf-preview-container {
    background: var(--bg-off);
    border: 1px solid var(--border);
    height: 300px;
    position: relative;
    overflow: hidden;
}

.wf-preview-container n8n-demo {
    height: 100%;
    width: 100%;
}

.wf-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* -- Updates Feed -- */
.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.update-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: none;
}

.update-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.update-title a:hover {
    color: var(--blue);
}

.update-date {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.update-placeholder {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
}
