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

:root {
    --background: #141108;
    --foreground: #f2f1ed;
    --card: #1e1d17;
    --card-foreground: #f2f1ed;
    --muted: #383530;
    --muted-foreground: #b3b1a0;
    --accent: #ff8c00;
    --accent-foreground: #141108;
    --border: #2e2d25;
    --input: #282620;
    --radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Background */
.bg-background {
    background-color: var(--background);
}

.bg-card {
    background-color: var(--card);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-card\/30 {
    background-color: rgba(30, 29, 23, 0.3);
}

.bg-accent\/10 {
    background-color: rgba(255, 140, 0, 0.1);
}

.bg-background\/50 {
    background-color: rgba(20, 17, 8, 0.5);
}

.bg-background\/95 {
    background-color: rgba(20, 17, 8, 0.95);
}

/* Text Color */
.text-foreground {
    color: var(--foreground);
}

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

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

.text-accent-foreground {
    color: var(--accent-foreground);
}

/* Border */
.border {
    border: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border-y {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.border-l {
    border-left: 1px solid var(--border);
}

.border-r {
    border-right: 1px solid var(--border);
}

.border-border {
    border-color: var(--border);
}

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

/* Flexbox */
.flex {
    display: flex;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

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

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

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

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

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Grid */
.grid {
    display: grid;
}

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

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

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

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

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

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

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

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

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

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

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

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

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

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

.pt-24 {
    padding-top: 6rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

/* Margin */
.m-0 {
    margin: 0;
}

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

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

.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;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Width/Height */
.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
}

.w-8 {
    width: 2rem;
}

.w-4 {
    width: 1rem;
}

.h-10 {
    height: 2.5rem;
}

.h-8 {
    height: 2rem;
}

.h-4 {
    height: 1rem;
}

.h-96 {
    height: 24rem;
}

.h-full {
    height: 100%;
}

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

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Display */
.block {
    display: block;
}

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

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

/* Radius */
.rounded {
    border-radius: var(--radius);
}

.rounded-none {
    border-radius: 0;
}

/* Text */
.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;
}

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

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

.font-semibold {
    font-weight: 600;
}

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

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

.text-pretty {
    text-wrap: pretty;
}

/* Position */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.top-full {
    top: 100%;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

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

/* Z-index */
.z-50 {
    z-index: 50;
}

/* Backdrop */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover states */
.hover\:opacity-80:hover {
    opacity: 0.8;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:text-foreground:hover {
    color: var(--foreground);
}

.hover\:text-accent:hover {
    color: var(--accent);
}

.hover\:bg-card:hover {
    background-color: var(--card);
}

.hover\:bg-background\/50:hover {
    background-color: rgba(20, 17, 8, 0.5);
}

.hover\:bg-accent\/90:hover {
    background-color: rgba(255, 140, 0, 0.9);
}

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

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

/* Focus states */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-accent:focus {
    border-color: var(--accent);
}

/* Placeholder */
.placeholder-muted-foreground::placeholder {
    color: var(--muted-foreground);
}

/* Responsive */
@media (max-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .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\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .md\:gap-8 {
        gap: 2rem;
    }

    .md\:gap-12 {
        gap: 3rem;
    }

    .md\:mb-0 {
        margin-bottom: 0;
    }

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

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

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

    .sm\:inline {
        display: inline;
    }

    .sm\:flex {
        display: flex;
    }

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

    .sm\:gap-2 {
        gap: 0.5rem;
    }

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

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

@media (max-width: 640px) {
    .md\:flex {
        display: none;
    }

    .md\:hidden {
        display: flex;
    }

    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

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

    .md\:gap-8 {
        gap: 1rem;
    }

    .md\:gap-12 {
        gap: 1.5rem;
    }

    .md\:text-6xl {
        font-size: 2.25rem;
    }

    .sm\:inline {
        display: inline;
    }

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

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

/* Form elements */
input,
textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-foreground);
}

button {
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility classes */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

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

.space-y-8 > * + * {
    margin-top: 2rem;
}
