/* ==========================================================================
   AXION PROJECTS — CORE DESIGN SYSTEM
   Dark graphite surfaces, restrained crimson accents, readable contrast.
   ========================================================================== */

:root {
    color-scheme: dark;
    --color-background: #080505;
    --color-surface: #120909;
    --color-surface-raised: #190b0b;
    --color-surface-soft: rgba(22, 9, 9, 0.86);
    --color-border: rgba(255, 51, 51, 0.22);
    --color-border-strong: rgba(255, 51, 51, 0.58);
    --color-accent: #ff3333;
    --color-accent-hover: #e21b2b;
    --color-accent-deep: #490000;
    --color-burgundy: #580707;
    --color-text: #f7f2f2;
    --color-text-muted: #b9a9a9;
    --color-text-subtle: #887777;
    --color-success: #70d6a0;
    --shadow-crimson: 0 0 24px rgba(255, 51, 51, 0.16);
    --shadow-panel: 0 18px 55px rgba(0, 0, 0, 0.32);
    --radius-small: 9px;
    --radius-medium: 15px;
    --radius-large: 22px;
    --content-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    cursor: none !important;
}

html {
    min-height: 100%;
    background: var(--color-background);
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: transparent;
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: none;
}

a,
button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

button {
    cursor: none;
}

/* Animated wallpaper layer */
.site-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--color-background);
    pointer-events: none;
}

.site-background video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.35) saturate(0.85);
}

.site-background::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(8, 5, 5, 0.44), rgba(8, 5, 5, 0.72)),
        radial-gradient(ellipse at 50% 42%, rgba(73, 0, 0, 0.10), transparent 68%);
}

/* Atmospheric particle layer */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Keep page content above the visual layers */
.site-header,
.mobile-dock,
.hero,
.page-shell,
.auth-layout,
.account-header,
.account-shell {
    position: relative;
    z-index: 1;
}

/* Cursor — retained to match the user's supplied crimson cursor */
#custom-cursor {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: rgba(88, 7, 7, 0.65);
    border: 1px solid rgba(255, 51, 51, 0.9);
    border-radius: 50%;
    box-shadow:
        0 0 10px #490000,
        0 0 25px #490000,
        0 0 45px #490000;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s;
}

/* Header and navigation */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    min-height: 82px;
    padding: 0 clamp(22px, 6vw, 88px);
    border-bottom: 1px solid rgba(255, 51, 51, 0.14);
    background: rgba(8, 5, 5, 0.60);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand,
.auth-brand {
    color: var(--color-text);
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 0.24em;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 38px);
}

.desktop-nav a {
    position: relative;
    padding: 9px 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--color-text);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 180px;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.nav-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    background: linear-gradient(145deg, #580707, #1a0909);
    color: white;
    font-size: 13px;
    font-weight: 750;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.button-primary {
    border-color: rgba(255, 51, 51, 0.78);
    background: linear-gradient(135deg, #8d1017, #580707);
    color: #fff;
    box-shadow: 0 7px 22px rgba(73, 0, 0, 0.32);
}

.button-primary:hover {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, #bd1822, #740b12);
    box-shadow: 0 0 24px rgba(255, 51, 51, 0.24);
}

.button-secondary {
    border-color: rgba(255, 51, 51, 0.36);
    background: rgba(22, 9, 9, 0.78);
    color: var(--color-text);
}

.button-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(73, 0, 0, 0.52);
    box-shadow: var(--shadow-crimson);
}

.button-quiet {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(18, 9, 9, 0.50);
    color: var(--color-text-muted);
}

.button-quiet:hover {
    border-color: var(--color-border-strong);
    color: white;
}

/* Homepage hero */
.hero {
    display: flex;
    min-height: calc(100vh - 82px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 100px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.30em;
    line-height: 1.5;
}

.hero h1,
.page-heading h1,
.account-shell h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6.5vw, 78px);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hero h1 span,
.page-heading h1 span,
.support-hero h1 span {
    color: var(--color-accent);
    text-shadow: 0 0 26px rgba(255, 51, 51, 0.25);
}

.hero-copy {
    max-width: 570px;
    margin: 24px 0 0;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 34px;
}

.support-note {
    margin-top: 22px;
    color: var(--color-text-subtle);
    font-size: 12px;
}

/* Standard content pages */
.page-shell {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 74px 0 110px;
}

.page-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.page-heading .eyebrow {
    margin-bottom: 14px;
}

.page-heading h1 {
    font-size: clamp(38px, 5.5vw, 62px);
}

.page-heading > p:last-child {
    max-width: 600px;
    margin: 18px auto 0;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.75;
}

/* Project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 51, 51, 0.16);
    border-radius: var(--radius-large);
    background: linear-gradient(155deg, rgba(28, 12, 12, 0.94), rgba(13, 7, 7, 0.96));
    box-shadow: var(--shadow-panel);
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-panel), var(--shadow-crimson);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #100707;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-image img {
    object-fit: contain;
    padding: 22px;
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(255, 51, 51, 0.34);
    border-radius: 999px;
    background: rgba(12, 5, 5, 0.82);
    color: #ff7777;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.status-open {
    color: #ff9a9a;
}

.project-info {
    display: flex;
    min-height: 205px;
    flex-direction: column;
    align-items: stretch;
    padding: 23px;
}

.project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.project-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.project-category {
    margin: 7px 0 0;
    color: var(--color-text-subtle);
    font-size: 12px;
    line-height: 1.5;
}

.project-price {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(255, 51, 51, 0.28);
    border-radius: 999px;
    background: rgba(73, 0, 0, 0.22);
    color: #ff8d8d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-description {
    margin: 18px 0 20px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.project-note {
    margin-top: auto;
    color: var(--color-text-subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.suggestion-open {
    width: 100%;
    margin-top: auto;
}

/* Suggestion modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3, 2, 2, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-panel {
    position: relative;
    width: min(100%, 520px);
    padding: 34px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-large);
    background: linear-gradient(145deg, #1b0b0b, #0d0707);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--shadow-crimson);
}

.modal-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.modal-description {
    margin: 12px 0 22px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 24px;
}

.modal-close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.suggestion-form {
    display: grid;
    gap: 13px;
}

.suggestion-form textarea,
.auth-form input,
.verification-section input {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 51, 51, 0.24);
    border-radius: var(--radius-small);
    outline: none;
    background: rgba(7, 4, 4, 0.84);
    color: var(--color-text);
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.suggestion-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.suggestion-form textarea::placeholder,
.auth-form input::placeholder,
.verification-section input::placeholder {
    color: #786868;
}

.suggestion-form textarea:focus,
.auth-form input:focus,
.verification-section input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.10);
}

.form-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form-status[data-state="error"] {
    color: #ff8b8b;
}

.form-status[data-state="success"] {
    color: #8ee0ad;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

/* Features page */
.feature-callout,
.info-panel {
    border: 1px solid rgba(255, 51, 51, 0.18);
    border-radius: var(--radius-large);
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-panel);
}

.feature-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    margin-bottom: 22px;
}

.feature-callout .eyebrow {
    margin-bottom: 10px;
}

.feature-callout h2,
.info-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
}

.feature-callout p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-panel {
    padding: 27px 30px;
}

.info-panel ul {
    display: grid;
    gap: 13px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.info-panel li {
    position: relative;
    padding-left: 18px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.info-panel li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.45);
    content: "";
}

/* Shared authentication layout */
.auth-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 20px 55px;
}

.auth-brand {
    margin-bottom: 25px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 35px;
    border: 1px solid rgba(255, 51, 51, 0.24);
    border-radius: var(--radius-large);
    background: rgba(15, 7, 7, 0.88);
    box-shadow: var(--shadow-panel), 0 0 42px rgba(73, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.auth-card > .eyebrow {
    margin-bottom: 10px;
}

.auth-card h1 {
    margin: 0;
    color: #fff;
    font-size: 31px;
    letter-spacing: -0.04em;
}

.auth-intro {
    margin: 10px 0 25px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label,
.verification-section label {
    margin-top: 6px;
    color: #d8caca;
    font-size: 12px;
    font-weight: 650;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 10px;
    color: var(--color-text-subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
    content: "";
}

.auth-footer {
    margin: 23px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}

.auth-footer a,
.back-home {
    color: #ff7777;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover,
.back-home:hover {
    color: #fff;
}

.back-home {
    display: block;
    margin-top: 20px;
    color: var(--color-text-subtle);
    font-size: 11px;
    text-align: center;
}

.verification-section {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 51, 51, 0.18);
}

.verification-section[hidden] {
    display: none;
}

.verification-section h2 {
    margin: 0;
    font-size: 19px;
}

.verification-section p {
    margin: 0 0 5px;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Reduced motion */
button:disabled {
    opacity: 0.58;
    cursor: not-allowed !important;
    transform: none !important;
}

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

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


/* Minimal site footer */
.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(22px, 6vw, 88px);
    border-top: 1px solid rgba(255, 51, 51, 0.12);
    background: rgba(8, 5, 5, 0.58);
    color: var(--color-text-subtle);
    font-size: 11px;
}

.site-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer .footer-brand {
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.22em;
}

.site-footer small {
    color: var(--color-text-subtle);
    font-size: 10px;
}

@media (max-width: 680px) {
    .site-footer {
        flex-wrap: wrap;
        justify-content: center;
        padding: 22px 18px 125px;
        text-align: center;
    }

    .site-footer > * {
        flex: 0 0 auto;
    }
}


/* Support request form */
.support-form-panel {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 36px);
}
.support-form-intro {
    margin: 10px 0 24px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.7;
}
.support-form label {
    margin-bottom: -7px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
}
.support-form input, .support-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 51, 51, 0.24);
    border-radius: var(--radius-small);
    outline: none;
    background: rgba(7, 4, 4, 0.84);
    color: var(--color-text);
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.support-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.support-form input:focus, .support-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.10);
}
.support-form input::placeholder, .support-form textarea::placeholder { color: #786868; }
.support-form button { justify-self: start; margin-top: 5px; }
@media (max-width: 600px) { .support-form button { width: 100%; } }
