/* ForgedByNeo Legal Site - Futuristic Black & White Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== CSS Variables - Futuristic B&W ========== */
:root {
    /* Colors - Pure Black & White Palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-hover: rgba(30, 30, 30, 0.9);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    /* Futuristic Accents - Whites & Grays */
    --accent-primary: #ffffff;
    --accent-secondary: #e0e0e0;
    --accent-tertiary: #c0c0c0;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    --accent-gradient-glow: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.25);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radius - Sharp & Modern */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows - Subtle & Sophisticated */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.9);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 1);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.15);

    /* GPU-accelerated transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 200ms var(--ease-smooth);
    --transition-base: 350ms var(--ease-smooth);
    --transition-slow: 500ms var(--ease-smooth);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* Futuristic grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Scanning line removed for cleaner aesthetic */

/* All content above background */
header,
main,
section,
footer,
.hero,
.legal-content {
    position: relative;
    z-index: 1;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.05em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    will-change: color;
}

a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========== Layout ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ========== Header - Futuristic ========== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-5) 0;
    transition: all var(--transition-base);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    opacity: 0.2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform var(--transition-base);
    will-change: transform;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: black;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    border: 1px solid white;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    will-change: transform, border-color;
}

nav a:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== Hero ========== */
.hero {
    padding: clamp(4rem, 12vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 90vw);
    height: min(900px, 90vw);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--space-6);
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s var(--ease-smooth) backwards;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-8);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ========== Cards - Futuristic ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: var(--space-6);
    margin: var(--space-12) 0;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base) var(--ease-smooth);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.9);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    margin-bottom: var(--space-4);
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    text-transform: none;
}

.card-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Ensure text remains readable on card hover */
.card:hover h3 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.card:hover p:not(.text-muted) {
    color: #d0d0d0;
}

.card:hover p.text-muted {
    color: #909090;
}

/* Ensure buttons remain visible in hovered cards */
.card:hover .btn {
    border-color: rgba(255, 255, 255, 0.3);
}

.card:hover .btn-primary {
    background: white;
    color: black;
    border-color: white;
}

.card:hover .btn-secondary,
.card:hover .btn-outline {
    background: transparent;
    color: #d0d0d0;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========== Buttons - Futuristic ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ========== Legal Document Styles ========== */
.legal-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-12) 0;
    margin-bottom: var(--space-12);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    opacity: 0.2;
}

.legal-header h1 {
    margin-bottom: var(--space-3);
}

.legal-header p {
    font-size: 1.125rem;
    opacity: 0.7;
    text-transform: none;
}

.legal-meta {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-4);
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.legal-content {
    padding: var(--space-12) 0;
}

.legal-section {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
    animation: fadeInUp 0.6s var(--ease-smooth) backwards;
    animation-delay: calc(var(--section-index, 0) * 0.05s);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--text-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    font-weight: 700;
    position: relative;
    padding-left: var(--space-4);
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1.2em;
    background: white;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.legal-section ul,
.legal-section ol {
    margin-left: var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: var(--space-3);
    line-height: 1.8;
    padding-left: var(--space-2);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-highlight {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid white;
    padding: var(--space-6);
    margin: var(--space-6) 0;
    border-radius: var(--radius-sm);
}

/* ========== Footer ========== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-20);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    opacity: 0.2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h4 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-3);
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== Breadcrumbs ========== */
.breadcrumb {
    padding: var(--space-6) 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-2);
    color: var(--text-muted);
    opacity: 0.5;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    :root {
        --space-12: 2rem;
        --space-16: 3rem;
        --space-20: 4rem;
    }

    /* Header adjustments */
    header {
        padding: var(--space-3) 0;
    }

    .logo {
        font-size: 1rem;
        gap: var(--space-2);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Mobile-friendly navigation */
    nav ul {
        gap: var(--space-2);
    }

    nav a {
        padding: var(--space-2) var(--space-3);
        font-size: 0.625rem;
        letter-spacing: 0.05em;
    }

    /* Hero adjustments */
    .hero {
        padding: var(--space-12) 0;
    }

    /* Card grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .card {
        padding: var(--space-6);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    /* Legal sections */
    .legal-section h2::before {
        display: none;
    }

    .legal-section h2 {
        padding-left: 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    nav a {
        padding: var(--space-2);
        font-size: 0.625rem;
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: 0.625rem;
    }
}

/* ========== Utilities ========== */
.text-center {
    text-align: center;
}

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

.mt-lg {
    margin-top: var(--space-8);
}

.mb-lg {
    margin-bottom: var(--space-8);
}

.py-xl {
    padding: var(--space-12) 0;
}

/* ========== Performance ========== */
@media (prefers-reduced-motion: reduce) {

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

/* ========== Selection ========== */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
}

/* ========== Focus States ========== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}