/* ============================================
   Halfmind Labs — Branded Hub
   Pure HTML/CSS, no dependencies.
   ============================================ */

:root {
    /* Brand palette */
    --color-bg-deep: #0a0c1f;
    --color-bg: #0d1025;
    --color-bg-soft: #161a36;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(180, 140, 255, 0.35);

    --color-text: #f5f3ff;
    --color-text-muted: #b9b6d6;
    --color-text-dim: #8a87a8;

    --color-purple: #8b5cf6;
    --color-purple-bright: #a78bfa;
    --color-purple-deep: #6d28d9;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #6366f1 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #c4b5fd 60%, #a78bfa 100%);
    --gradient-page: radial-gradient(1100px 700px at 15% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
                     radial-gradient(900px 600px at 110% 10%, rgba(99, 102, 241, 0.22), transparent 55%),
                     radial-gradient(700px 500px at 50% 120%, rgba(167, 139, 250, 0.18), transparent 60%),
                     linear-gradient(180deg, #0a0c1f 0%, #0d1025 100%);

    /* Shape & motion */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--gradient-page);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-purple);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem) 1.25rem;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    width: 100%;
    max-width: 640px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__brand {
    margin-bottom: 2rem;
}

.hero__logo {
    /* pinned to the top-left of the viewport; stays put on scroll */
    position: fixed;
    top: clamp(0.75rem, 2vw, 1.25rem);
    left: clamp(0.75rem, 2vw, 1.25rem);
    z-index: 100;
    width: clamp(56px, 9vw, 88px);
    height: auto;
    margin: 0;
    pointer-events: none; /* decorative — never blocks clicks beneath it */
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4));
    animation: float 6s var(--ease) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Halfmind Labs wordmark — HALF (text color) + MIND (purple) / LABS w/ rules */
.hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0.6rem;
    line-height: 1;
}
.hero__title .wm-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
}
/* black -> site text color (readable on the dark hero background) */
.hero__title .wm-half {
    color: var(--color-text);
}
/* preserve the purple */
.hero__title .wm-mind {
    background: linear-gradient(135deg, #7149c9 0%, #a983ec 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero__title .wm-tm {
    font-size: 0.3em;
    font-weight: 700;
    color: var(--color-text-dim);
    margin-left: 0.18em;
    align-self: flex-start;
    letter-spacing: 0;
    line-height: 1;
}
.hero__title .wm-labs {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--color-text);
}
.hero__title .wm-labs > span {
    letter-spacing: 0.55em;
    padding-left: 0.55em; /* balance the trailing tracking so LABS stays centered */
}
.hero__title .wm-rule {
    flex: 1;
    height: 0;
    border-top: 2px solid var(--color-text);
    opacity: 0.7;
}

.hero__tagline {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 500;
    color: var(--color-purple-bright);
    letter-spacing: 0.01em;
}

.hero__description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ============================================
   Link cards
   ============================================ */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.link-card {
    --icon-color: var(--color-purple-bright);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s var(--ease),
                background 0.25s var(--ease),
                border-color 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.link-card > * {
    position: relative;
    z-index: 1;
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-2px);
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    outline: none;
}

.link-card:focus-visible {
    box-shadow: var(--shadow-card), 0 0 0 3px rgba(167, 139, 250, 0.5);
}

.link-card:active {
    transform: translateY(0);
}

.link-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--icon-color);
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.link-card__icon svg {
    width: 22px;
    height: 22px;
}

.link-card:hover .link-card__icon,
.link-card:focus-visible .link-card__icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(192, 132, 252, 0.22));
    color: #fff;
}

.link-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.link-card__label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.005em;
}

.link-card__sub {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.link-card__arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--color-text-dim);
    transform: translateX(0);
    transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
    transform: translateX(4px);
    color: var(--color-purple-bright);
}

/* ============================================
   Tools dropdown (native <details>, no JS)
   ============================================ */
.tools {
    width: 100%;
}

/* the summary IS a link-card; strip native marker */
.tools__summary {
    cursor: pointer;
    list-style: none;
}
.tools__summary::-webkit-details-marker {
    display: none;
}

/* chevron points down when closed, flips up when open */
.tools__chevron {
    font-size: 1rem;
}
.tools__summary:hover .tools__chevron,
.tools__summary:focus-visible .tools__chevron {
    transform: none;
    color: var(--color-purple-bright);
}
.tools[open] .tools__chevron {
    transform: rotate(180deg);
    color: var(--color-purple-bright);
}

.tools__menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--color-border);
    animation: tools-reveal 0.2s var(--ease);
}

@keyframes tools-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: left;
    transition: background 0.2s var(--ease),
                border-color 0.2s var(--ease),
                transform 0.2s var(--ease);
}

.tool-item:hover,
.tool-item:focus-visible {
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
    transform: translateX(3px);
    outline: none;
}
.tool-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5);
}

.tool-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.tool-item__label {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text);
}
.tool-item__sub {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}
.tool-item__arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--color-text-dim);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.tool-item:hover .tool-item__arrow,
.tool-item:focus-visible .tool-item__arrow {
    transform: translateX(3px);
    color: var(--color-purple-bright);
}

/* ============================================
   Site header (content pages)
   Fixed at top, brand on left, nav placeholder on right.
   Add class "has-fixed-header" to <body> on pages that use this.
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 12, 31, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.site-header::after {
    /* subtle purple under-glow */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.45) 50%,
        transparent 100%);
    pointer-events: none;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}

.site-header__brand:hover { opacity: 0.85; }

.site-header__logo {
    width: 94px;
    height: 94px;
    flex-shrink: 0;
    /* Anchor to the top of the brand row, then negative margin so the bottom
       half overflows past the header without enlarging the header chrome.
       Math: visual 94px, layout slot 36px → margin-bottom = -(94 - 36) = -58px.
       Result: ~48px above the header line, ~46px below = roughly 50/50 straddle. */
    align-self: flex-start;
    margin-bottom: -58px;
    filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.55));
}

.site-header__wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header__nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.005em;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s var(--ease);
}

.site-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
    color: var(--color-text);
    outline: none;
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
    transform: scaleX(1);
}

/* Offset for the fixed header.
   Math: header chrome is ~60px tall. The logo extends ~46px below the bottom
   border (94px visual logo, top at y=12, bottom at y=106). Padding-top here
   must clear that 106px PLUS a buffer so the dangling half of the logo never
   overlaps page content — at any viewport width. */
.has-fixed-header { padding-top: 124px; }

@media (max-width: 640px) {
    .site-header__wordmark { display: none; }
    .site-header__nav { gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
    .site-header__nav a { font-size: 0.85rem; }
    /* Same logo size on mobile, so the buffer must be the same. */
    .has-fixed-header { padding-top: 124px; }
}

@media (max-width: 480px) {
    .site-header__nav { gap: 0.65rem; }
    .site-header__nav a { font-size: 0.8rem; }
}

/* ============================================
   Article / content wrapper
   Drop article markup inside <main class="content"><article class="article">...
   ============================================ */
.content {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 4rem;
}

.article {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.6vw, 1.075rem);
    line-height: 1.75;
}

.article h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.6rem);
    font-weight: 800;
    /* 1.25 (not 1.15) so the line box contains descenders. With background-clip:text,
       anything outside the line box has no gradient to show through and renders
       invisible — that's what was cutting off the "g" in titles like "Digital". */
    line-height: 1.25;
    letter-spacing: -0.02em;
    padding-bottom: 0.05em;
    margin: 0 0 0.75rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 2.5rem 0 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    bottom: 0.2em;
    width: 3px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.article h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 2rem 0 0.5rem;
}

.article p { margin: 1rem 0; }

.article a {
    color: var(--color-purple-bright);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.article a:hover,
.article a:focus-visible {
    color: #c4b5fd;
    text-decoration-color: var(--color-purple-bright);
}

.article strong { color: var(--color-text); font-weight: 700; }
.article em     { color: var(--color-text); font-style: italic; }

.article ul,
.article ol {
    margin: 1.1rem 0;
    padding-left: 1.6rem;
}

.article li {
    margin: 0.4rem 0;
    padding-left: 0.25rem;
}

.article ul li::marker { color: var(--color-purple-bright); }
.article ol li::marker { color: var(--color-purple-bright); font-weight: 600; }

.article blockquote {
    margin: 1.75rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--color-purple);
    background: rgba(139, 92, 246, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text);
    font-style: italic;
}

.article code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    padding: 0.12em 0.45em;
    border-radius: 6px;
    color: #e9d5ff;
}

.article pre {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}

.article pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text);
}

.article hr {
    border: 0;
    height: 1px;
    margin: 2.5rem 0;
    background: linear-gradient(90deg, transparent, var(--color-border) 30%, var(--color-border) 70%, transparent);
}

.article img {
    border-radius: var(--radius-md);
    margin: 1.5rem auto;
    box-shadow: var(--shadow-card);
}

/* Meta / byline block */
.article .meta {
    display: block;
    color: var(--color-text-dim);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 2.25rem;
    padding: 0.75rem 0 0.75rem 1rem;
    border-left: 3px solid var(--color-purple-deep);
    background: rgba(139, 92, 246, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Back-to-home / article footer row */
.article-footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--color-purple-bright);
    transform: translateX(-3px);
    outline: none;
}

/* ============================================
   Lab Notes — article listing (used on /articles/index.html)
   ============================================ */
.note-intro {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 2.5rem;
}

.note-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    list-style: none;
    padding: 0;
}

.note-card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.25s var(--ease),
                background 0.25s var(--ease),
                border-color 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
    text-decoration: none;
    position: relative;
}

.note-card:hover,
.note-card:focus-visible {
    transform: translateY(-2px);
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    outline: none;
    text-decoration: none;
}

.note-card__title {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card titles use h2/h3 for semantic nesting, but should NOT inherit
   .article h2 / .article h3 margins or the purple gradient bar pseudo. */
.note-card .note-card__title {
    margin: 0 0 0.5rem;
    padding-left: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.note-card .note-card__title::before {
    display: none;
}

.note-card__excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 0.7rem;
}

.note-card__cta {
    color: var(--color-purple-bright);
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.2s var(--ease);
}

.note-card:hover .note-card__cta,
.note-card:focus-visible .note-card__cta {
    transform: translateX(3px);
}

.note-empty {
    color: var(--color-text-dim);
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}

/* ============================================
   Forms
   ============================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.75rem 0 2rem;
    max-width: 560px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.005em;
}

.form-required {
    color: var(--color-purple-bright);
    margin-left: 0.2em;
}

.form-field input,
.form-field textarea {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s var(--ease),
                background 0.2s var(--ease),
                box-shadow 0.2s var(--ease);
    width: 100%;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-dim);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-purple-bright);
    background: var(--color-surface-hover);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

/* Honeypot anti-spam field — hidden from humans, visible to bots */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-submit {
    align-self: flex-start;
    padding: 0.85rem 1.75rem;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    letter-spacing: 0.01em;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-submit:hover,
.form-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    outline: none;
}

.form-submit:active { transform: translateY(0); }

.form-note {
    font-size: 0.88rem;
    color: var(--color-text-dim);
    line-height: 1.55;
}

/* Success banner shown after form redirect.
   Note: don't set display:block here — it would override the [hidden] attribute. */
.form-success {
    margin: 1.5rem 0 2.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text);
    box-shadow: var(--shadow-glow);
}

.form-success__title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: var(--color-purple-bright);
}

.form-success__body {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 2rem 1.25rem 2.5rem;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    background: rgba(10, 12, 31, 0.4);
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (min-width: 640px) {
    .link-card {
        padding: 1.1rem 1.4rem;
    }
    .link-card__label {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .link-card {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
    .link-card__icon {
        width: 38px;
        height: 38px;
    }
    .link-card__icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Reduced motion
   ============================================ */
@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;
    }
    .hero__logo {
        animation: none;
    }
}
