/* ========================================
   BRETHERN - Standalone CSS (No Tailwind CDN Required)
   Works completely offline
======================================== */

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

/* Link resets - remove underlines like Tailwind */
a {
    color: inherit;
    text-decoration: none;
}

/* Button resets */
button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Form element resets */
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #050507;
    color: #ffffff;
    overflow-x: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

/* ========================================
   Typography
======================================== */
.font-sans {
    font-family: 'Outfit', sans-serif;
}

.font-mono {
    font-family: 'Space Grotesk', monospace;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-light {
    font-weight: 300;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.15;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1.15;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1.1;
    }

    .md\:text-8xl {
        font-size: 6rem;
        line-height: 1;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* ========================================
   Colors
======================================== */
.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-neon-cyan {
    color: #00f3ff;
}

.text-purple-400 {
    color: #c084fc;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-100 {
    color: #dcfce7;
}

.text-red-200 {
    color: #fecaca;
}

.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-neon-cyan {
    background-color: #00f3ff;
}

.bg-neon-purple {
    background-color: #bc13fe;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-neon-cyan\/10 {
    background-color: rgba(0, 243, 255, 0.1);
}

.bg-neon-cyan\/20 {
    background-color: rgba(0, 243, 255, 0.2);
}

.bg-purple-500\/10 {
    background-color: rgba(168, 85, 247, 0.1);
}

.bg-purple-500\/20 {
    background-color: rgba(168, 85, 247, 0.2);
}

.bg-green-500\/10 {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.2);
}

.bg-gray-900\/50 {
    background-color: rgba(17, 24, 39, 0.5);
}

.gap-0 {
    gap: 0;
}

.justify-start {
    justify-content: flex-start;
}

.bg-neon-purple\/20 {
    background-color: rgba(188, 19, 254, 0.2);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-neon-cyan {
    border-color: #00f3ff;
}

.border-neon-cyan\/30 {
    border-color: rgba(0, 243, 255, 0.3);
}

.border-green-500\/30 {
    border-color: rgba(34, 197, 94, 0.3);
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3);
}

/* ========================================
   Layout
======================================== */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:flex {
        display: flex;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:block {
        display: block;
    }

    .md\:mt-0 {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:h-auto {
        height: auto;
    }

    .lg\:order-1 {
        order: 1 !important;
    }

    .lg\:order-2 {
        order: 2 !important;
    }
}

/* ========================================
   Spacing
======================================== */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.p-12 {
    padding: 3rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pt-20 {
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .md\:p-12 {
        padding: 3rem;
    }
}

.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* ========================================
   Sizing
======================================== */
.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-14 {
    width: 3.5rem;
}

.w-64 {
    width: 16rem;
}

.w-full {
    width: 100%;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-14 {
    height: 3.5rem;
}

.h-full {
    height: 100%;
}

.h-\[2px\] {
    height: 2px;
}

.h-\[400px\] {
    height: 400px;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-full {
    max-width: 100%;
}

.max-h-full {
    max-height: 100%;
}

.w-\[500px\] {
    width: 500px;
}

.h-\[500px\] {
    height: 500px;
}

/* ========================================
   Positioning
======================================== */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.top-1\/2 {
    top: 50%;
}

.left-0 {
    left: 0;
}

.left-1\/2 {
    left: 50%;
}

.bottom-10 {
    bottom: 2.5rem;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.-z-10 {
    z-index: -10;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

/* ========================================
   Borders & Radius
======================================== */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ========================================
   Effects & Filters
======================================== */
.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.blur-\[120px\] {
    filter: blur(120px);
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-neon-cyan\/20 {
    box-shadow: 0 25px 50px -12px rgba(0, 243, 255, 0.2);
}

/* ========================================
   Transitions & Animations
======================================== */
.transition-all {
    transition: all 0.15s ease;
}

.transition-colors {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.transition-transform {
    transition: transform 0.15s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* ========================================
   Transforms
======================================== */
.transform {
    transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

.scale-x-0 {
    --tw-scale-x: 0;
    transform: scaleX(0);
}

.origin-left {
    transform-origin: left;
}

.rotate-\[-2deg\] {
    transform: rotate(-2deg);
}

/* Hover transforms */
.group:hover .group-hover\:scale-x-100 {
    transform: scaleX(1);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:rotate-0 {
    transform: rotate(0deg);
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\:gap-4 {
    gap: 1rem;
}

.group:hover .group-hover\:bg-neon-cyan\/20 {
    background-color: rgba(0, 243, 255, 0.2);
}

.group:hover .group-hover\:bg-purple-500\/20 {
    background-color: rgba(168, 85, 247, 0.2);
}

.group:hover .group-hover\:bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.2);
}

/* ========================================
   Interactive States
======================================== */
.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-black:hover {
    color: #000000;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.hover\:bg-neon-cyan:hover {
    background-color: #00f3ff;
}

.hover\:gap-4:hover {
    gap: 1rem;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:border-neon-cyan:focus {
    border-color: #00f3ff;
}

.selection\:bg-neon-cyan::selection {
    background-color: #00f3ff;
}

.selection\:text-black::selection {
    color: #000000;
}

/* ========================================
   Special Utilities
======================================== */
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.object-contain {
    object-fit: contain;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

/* Group utility */
.group {
    position: relative;
}

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

::-webkit-scrollbar-track {
    background: #050507;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f3ff;
}

/* ========================================
   Glassmorphism
======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

/* ========================================
   Text Gradient
======================================== */
.text-gradient {
    background: linear-gradient(to right, #00f3ff, #bc13fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Gradient Backgrounds
======================================== */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-800 {
    --tw-gradient-from: #1f2937;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-black {
    --tw-gradient-to: #000000;
}

.from-green-900\/30 {
    --tw-gradient-from: rgba(20, 83, 45, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-green-800\/30 {
    --tw-gradient-to: rgba(22, 101, 52, 0.3);
}

.bg-red-900\/30 {
    background-color: rgba(127, 29, 29, 0.3);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* ========================================
   Loader Styles
======================================== */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-line {
    width: 0%;
    height: 2px;
    background: #00f3ff;
    transition: width 0.5s ease;
}

/* ========================================
   Animation Classes (FOUC Fix)
======================================== */
.animate-fade-up {
    opacity: 1;
}

.js .animate-fade-up {
    opacity: 0;
}

@keyframes fallback-show {
    to {
        opacity: 1;
    }
}

.js .animate-fade-up {
    animation: fallback-show 0s 3s forwards;
}

/* ========================================
   MD Hidden/Shown
======================================== */
@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex;
    }

    .hidden.md\:block {
        display: block;
    }
}