/* ─────────────────────────────────────
   TOKENS & RESET
    ───────────────────────────────────── */
:root {
    --bg-base: #04061a;
    --bg-mid: #070c2a;
    --bg-card: #0b1035;
    --bg-card2: #0d1440;
    --purple: #8b3dff;
    --purple-light: #a855f7;
    --purple-glow: rgba(139, 61, 255, 0.35);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.2);
    --text-primary: #e2e8f7;
    --text-secondary: #7a8ab5;
    --text-muted: #3d4f7a;
    --border: rgba(139, 61, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);
    --danger: #f43f5e;
    --warn: #f59e0b;
    --safe: #10b981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mesh background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 25%, rgba(139, 61, 255, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(34, 211, 238, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 55% 55%, rgba(139, 61, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Scanlines */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 4px);
    pointer-events: none;
    z-index: 0;
}

/* ─────────────────────────────────────
   NAV
───────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 68px;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(4, 6, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 6px var(--purple));
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo-text .s1 {
    color: var(--text-primary);
}

.nav-logo-text .s2 {
    color: var(--purple-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(4, 6, 26, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px clamp(20px, 4vw, 48px);
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--purple-light);
}

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 9px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    border: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(139, 61, 255, 0.08);
}

.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 18px var(--purple-glow);
}

.btn-primary:hover {
    background: var(--purple-light);
    box-shadow: 0 0 28px rgba(139, 61, 255, 0.5);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────── */
.page {
    position: relative;
    z-index: 1;
    padding-top: 68px;
    min-height: 100vh;
}

/* ─────────────────────────────────────
   HERO HEADER
───────────────────────────────────── */
.page-hero {
    padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--purple-light);
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 28px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 20px;
}

.page-hero h1 .grad {
    background: linear-gradient(135deg, #a78bfa, #8b3dff, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─────────────────────────────────────
   MAIN GRID
───────────────────────────────────── */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(20px, 3vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px) 80px;
    align-items: start;
}

/* ─────────────────────────────────────
   FORM CARD
───────────────────────────────────── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
}

/* Tab bar */
.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    scrollbar-width: none;
}

.form-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--purple-light);
    border-bottom-color: var(--purple);
    background: rgba(139, 61, 255, 0.05);
}

/* Panels */
.tab-panel {
    display: none;
    padding: clamp(24px, 4vw, 40px);
}

.tab-panel.active {
    display: block;
}

/* Form elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-required {
    color: var(--purple-light);
    font-size: 14px;
    line-height: 1;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all .2s;
    width: 100%;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.form-control:focus {
    border-color: rgba(139, 61, 255, 0.5);
    background: rgba(139, 61, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.12);
}

.form-control:focus-visible {
    outline: none;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8ab5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select.form-control option {
    background: #0b1035;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* File drop zone */
.file-zone {
    border: 2px dashed rgba(139, 61, 255, 0.2);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: rgba(139, 61, 255, 0.03);
    margin-bottom: 16px;
}

.file-zone:hover,
.file-zone.drag-over {
    border-color: rgba(139, 61, 255, 0.5);
    background: rgba(139, 61, 255, 0.07);
}

.file-zone-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.file-zone p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.file-zone span {
    color: var(--purple-light);
}

.file-zone small {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: block;
    margin-top: 6px;
}

/* Radio / Checkbox groups */
.option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all .2s;
}

.option-item:hover {
    border-color: rgba(139, 61, 255, 0.3);
    background: rgba(139, 61, 255, 0.04);
}

.option-item.selected {
    border-color: rgba(139, 61, 255, 0.5);
    background: rgba(139, 61, 255, 0.08);
}

.option-item input[type=radio],
.option-item input[type=checkbox] {
    accent-color: var(--purple);
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.option-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

/* Priority selector */
.priority-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
    font-family: 'JetBrains Mono', monospace;
}

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

.p-low {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.p-low.sel {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.p-medium {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.p-medium.sel {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.p-high {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.p-high.sel {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.p-critical {
    background: rgba(139, 61, 255, 0.08);
    border-color: rgba(139, 61, 255, 0.2);
    color: var(--purple-light);
}

.p-critical.sel {
    background: rgba(139, 61, 255, 0.2);
    border-color: var(--purple);
    box-shadow: 0 0 12px var(--purple-glow);
}

/* Consent checkbox */
.consent-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.consent-box input[type=checkbox] {
    accent-color: var(--purple);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-box p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.consent-box a {
    color: var(--purple-light);
    text-decoration: none;
}

.consent-box a:hover {
    text-decoration: underline;
}

/* Submit */
.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    border-radius: 12px;
    justify-content: center;
}

/* Form divider */
.form-sep {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 24px 0;
}

.form-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Char counter */
.char-counter {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────
   SIDEBAR
───────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 61, 255, 0.12);
    border: 1px solid rgba(139, 61, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-card-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.info-card-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-method:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cm-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.cm-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cm-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 1px;
}

.cm-value a {
    color: var(--purple-light);
    text-decoration: none;
}

.cm-value a:hover {
    text-decoration: underline;
}

/* SLA card */
.sla-card {
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.1) 0%, rgba(34, 211, 238, 0.04) 100%);
    border: 1px solid rgba(139, 61, 255, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.sla-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sla-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(139, 61, 255, 0.1);
    font-size: 13px;
}

.sla-row:last-child {
    border-bottom: none;
}

.sla-tier {
    color: var(--text-secondary);
}

.sla-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 5px;
}

.sla-critical {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.sla-high {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.sla-medium {
    background: rgba(139, 61, 255, 0.12);
    color: var(--purple-light);
}

.sla-low {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

/* Status card */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}

.status-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.status-row:last-child {
    border-bottom: none;
}

.status-name {
    color: var(--text-secondary);
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
}

.s-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.s-ok::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.s-degraded {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.s-degraded::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #f59e0b;
    border-radius: 50%;
}

/* FAQ mini */
.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
}

.faq-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background .2s;
}

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

.faq-item:hover {
    background: rgba(139, 61, 255, 0.04);
}

.faq-q {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.faq-q svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .2s;
    margin-top: 2px;
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
    color: var(--purple-light);
}

.faq-a {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
    display: none;
    font-family: 'JetBrains Mono', monospace;
}

.faq-item.open .faq-a {
    display: block;
}

/* ─────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────── */
.success-overlay {
    display: none;
    padding: clamp(40px, 6vw, 64px) 40px;
    text-align: center;
}

.success-overlay.show {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.success-overlay h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-overlay p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto 28px;
}

.ticket-id {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--purple-light);
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.25);
    border-radius: 8px;
    padding: 8px 18px;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

@keyframes popIn {
    from {
        transform: scale(.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-up {
    animation: fadeUp .6s ease both;
}

.fade-up-1 {
    animation-delay: .08s;
}

.fade-up-2 {
    animation-delay: .16s;
}

.fade-up-3 {
    animation-delay: .24s;
}


.card-disabled {
    position: relative;
    pointer-events: none;
    user-select: none;
}

.card-disabled::after {
    content: ''!important;
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 26, 0.6)!important;
    backdrop-filter: blur(2px)!important;
    border-radius: inherit;
    z-index: 10;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-light);
    padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 15px;
    font-weight: 700;
}

.footer-logo .s2 {
    color: var(--purple-light);
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

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

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {

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

    .hamburger {
        display: flex;
    }

    /* Form row → single col */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Option group → single col on small */
    .option-group {
        grid-template-columns: 1fr;
    }

    /* Sidebar stacks */
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Tabs scroll */
    .tab-btn {
        font-size: 12px;
        padding: 14px 14px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        letter-spacing: -0.5px;
    }

    .priority-group {
        flex-direction: column;
    }

    .priority-chip {
        justify-content: center;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}