/* ============================================
   Neon Savunma Doktrini — Cyberpunk HUD Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-deep: #06060e;
    --bg-dark: #0a0a16;
    --bg-panel: #0d0d22;
    --bg-card: #111133;
    --bg-card-hover: #16163d;
    --neon-cyan: #00e5ff;
    --neon-magenta: #e040fb;
    --neon-green: #76ff03;
    --neon-amber: #ffab00;
    --neon-red: #ff1744;
    --text-primary: #d0d0e8;
    --text-heading: #e8e8ff;
    --text-muted: #7878a0;
    --border-base: rgba(0, 229, 255, 0.15);
    --border-glow: rgba(0, 229, 255, 0.4);
    --glow-cyan: 0 0 12px rgba(0, 229, 255, 0.25);
    --glow-magenta: 0 0 12px rgba(224, 64, 251, 0.25);
    --glow-green: 0 0 12px rgba(118, 255, 3, 0.25);
    --radius: 6px;
    --radius-lg: 10px;
    --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Code", "Fira Code", "Consolas", monospace;
    --header-h: 64px;
    --max-w: 1140px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

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

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
    color: #66f0ff;
    text-shadow: var(--glow-cyan);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

ul, ol {
    padding-left: 1.5em;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

h2 {
    font-size: 1.55rem;
    margin: 2rem 0 0.8rem;
    padding-left: 14px;
    border-left: 3px solid var(--neon-magenta);
}

h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.6rem;
    color: var(--neon-green);
}

h4 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.5rem;
    color: var(--neon-amber);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-heading);
}

code {
    font-family: var(--font-mono);
    background: rgba(0, 229, 255, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--neon-cyan);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 30px 0 60px;
}

.page-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    position: relative;
}

.page-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent 60%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* --- Console Header (Sticky) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(6, 6, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-base);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-text .accent {
    color: var(--neon-magenta);
    text-shadow: var(--glow-magenta);
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.06);
    text-shadow: var(--glow-cyan);
}

.nav-list li a.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 1px;
    box-shadow: var(--glow-cyan);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-base);
    border-radius: var(--radius);
    padding: 8px 7px;
    cursor: pointer;
    width: 38px;
    height: 38px;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle.open {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(224, 64, 251, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.4rem;
    border: none;
    margin-bottom: 0.8rem;
    position: relative;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius);
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    text-shadow: var(--glow-cyan);
    position: relative;
}

.hero .hero-cta:hover {
    background: rgba(0, 229, 255, 0.18);
    box-shadow: var(--glow-cyan);
}

/* --- Status Cards (Guide Navigation) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.status-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-cyan);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.status-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.status-card:hover::before {
    opacity: 1;
}

.status-card.magenta::before { background: var(--neon-magenta); }
.status-card.green::before   { background: var(--neon-green); }
.status-card.amber::before   { background: var(--neon-amber); }

.status-card:hover.magenta { box-shadow: var(--glow-magenta); border-color: rgba(224, 64, 251, 0.4); }
.status-card:hover.green   { box-shadow: var(--glow-green);   border-color: rgba(118, 255, 3, 0.4); }
.status-card:hover.amber   { box-shadow: 0 0 12px rgba(255, 171, 0, 0.25); border-color: rgba(255, 171, 0, 0.4); }

.card-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.status-card.magenta .card-indicator .dot { background: var(--neon-magenta); }
.status-card.green .card-indicator .dot   { background: var(--neon-green); }
.status-card.amber .card-indicator .dot   { background: var(--neon-amber); }

.status-card h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--text-heading);
}

.status-card h3 a {
    color: inherit;
    text-decoration: none;
}

.status-card h3 a:hover {
    color: var(--neon-cyan);
}

.status-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--neon-cyan);
    margin-top: auto;
}

.card-link::after {
    content: ">>";
    transition: transform var(--transition);
}

.status-card:hover .card-link::after {
    transform: translateX(4px);
}

/* --- Callout Boxes --- */
.callout {
    padding: 18px 22px;
    border-radius: var(--radius);
    margin: 20px 0;
    position: relative;
    padding-left: 50px;
    font-size: 0.95rem;
}

.callout::before {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 1.2rem;
}

.callout-info {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--text-primary);
}

.callout-info::before {
    content: "i";
    color: var(--neon-cyan);
}

.callout-warning {
    background: rgba(255, 171, 0, 0.06);
    border: 1px solid rgba(255, 171, 0, 0.2);
}

.callout-warning::before {
    content: "!";
    color: var(--neon-amber);
}

.callout-tip {
    background: rgba(118, 255, 3, 0.06);
    border: 1px solid rgba(118, 255, 3, 0.2);
}

.callout-tip::before {
    content: "*";
    color: var(--neon-green);
}

.callout strong {
    color: var(--text-heading);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 14px 0;
    margin-bottom: 10px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.breadcrumbs li + li::before {
    content: "/";
    color: var(--border-glow);
    margin-right: 4px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--neon-cyan);
}

.breadcrumbs .current {
    color: var(--neon-cyan);
}

/* --- Content Elements --- */
.content-body ul, .content-body ol {
    margin-bottom: 1rem;
}

.content-body li {
    margin-bottom: 0.4rem;
}

.content-body li::marker {
    color: var(--neon-cyan);
}

/* Data Table */
.data-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-base);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th {
    background: var(--bg-card);
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--border-glow);
    white-space: nowrap;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}

.data-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.03);
}

/* Diagram Box (for CSS/SVG diagrams) */
.diagram-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-base);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.diagram-box .diagram-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* SVG Diagram Styles */
.diagram-box svg {
    max-width: 100%;
    height: auto;
}

.diagram-box svg text {
    font-family: var(--font-mono);
    font-size: 12px;
    fill: var(--text-primary);
}

.diagram-box svg .node-fill {
    fill: var(--bg-card);
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
}

.diagram-box svg .line-cyan {
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
}

.diagram-box svg .line-magenta {
    stroke: var(--neon-magenta);
    stroke-width: 1.5;
}

/* Related Content Links */
.related-content {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-base);
}

.related-content h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.related-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: var(--radius);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.related-links li a::before {
    content: ">";
    color: var(--neon-cyan);
    font-weight: bold;
}

.related-links li a:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--glow-cyan);
}

/* --- Image Cards --- */
.img-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-base);
    margin: 20px 0;
}

.img-card img {
    width: 100%;
    display: block;
}

.img-card .img-caption {
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: var(--bg-card);
}

/* --- Glossary --- */
.glossary-list {
    list-style: none;
    padding: 0;
}

.glossary-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}

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

.glossary-term {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-cyan);
    font-size: 1rem;
    margin-bottom: 4px;
}

.glossary-def {
    color: var(--text-primary);
    font-size: 0.92rem;
}

/* --- FAQ --- */
.faq-item {
    border: 1px solid var(--border-base);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: left;
    transition: background var(--transition);
    font-family: var(--font-main);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question .icon {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--bg-panel);
}

.faq-item.open .faq-answer {
    padding: 18px 20px;
    max-height: 600px;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
    font-size: 0.92rem;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list .ci-icon {
    color: var(--neon-cyan);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--border-glow);
    border-radius: 4px;
}

.ci-icon--mail::before   { content: "@"; }
.ci-icon--phone::before  { content: "T"; }
.ci-icon--pin::before    { content: "A"; }
.ci-icon--clock::before  { content: "S"; }

.contact-info-list .ci-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--neon-red);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-base);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    outline: none;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--neon-cyan);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(118, 255, 3, 0.08);
    border: 1px solid rgba(118, 255, 3, 0.3);
    color: var(--neon-green);
}

.form-status.error {
    display: block;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--neon-red);
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
    tab-index: -1;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(6, 6, 14, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-base);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cookie-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cookie-text a {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: rgba(118, 255, 3, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.cookie-btn-accept:hover {
    background: rgba(118, 255, 3, 0.22);
    box-shadow: var(--glow-green);
}

.cookie-btn-reject {
    background: rgba(255, 171, 0, 0.1);
    border: 1px solid var(--neon-amber);
    color: var(--neon-amber);
}

.cookie-btn-reject:hover {
    background: rgba(255, 171, 0, 0.2);
}

.cookie-btn-settings {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-base);
    color: var(--text-muted);
}

.cookie-btn-settings:hover {
    border-color: var(--border-glow);
    color: var(--neon-cyan);
}

/* Cookie Settings Panel */
.cookie-settings {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-base);
}

.cookie-settings.visible {
    display: block;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-label {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.cookie-option-label small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--neon-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--neon-cyan);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-save-btn {
    margin-top: 14px;
    padding: 9px 24px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius);
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-save-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-base);
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand .footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.15); }
    50% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.3); }
}

.fade-in {
    animation: fade-in 0.5s ease forwards;
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .cookie-banner {
        transition: none;
    }
}

/* --- Legal / Policy pages --- */
.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(6, 6, 14, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-base);
        padding: 12px 20px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 2px;
    }

    .nav-list li a {
        padding: 10px 14px;
    }

    h1 {
        font-size: 1.6rem;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding: 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .hero {
        padding: 36px 16px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
}
