/* 
  DUX PRANA DESIGN SYSTEM V1.0
  Aesthetics: AI Forward, Human First
  Colors: Deep Blacks, Rich Sepias, Sleek Glassmorphism
*/

:root {
    /* Color Palette */
    --dux-black: #0c0c0c;
    --dux-black-alt: #1a1a1a;
    --dux-sepia: #c29b6d;
    --dux-sepia-dark: #8b6d4d;
    --dux-sepia-light: #f4ece2;
    --dux-white: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #333;
    background-color: var(--dux-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: 1rem;
}

.gap-md {
    gap: 2rem;
}

.gap-lg {
    gap: 3rem;
}

.gap-xl {
    gap: 4rem;
}

/* Utilities */
.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 4rem;
}

.mt-xl {
    margin-top: 6rem;
}

.bg-black {
    background-color: var(--dux-black);
    color: var(--dux-white);
}

.bg-sepia-light {
    background-color: var(--dux-sepia-light);
}

.bg-white {
    background-color: var(--dux-white);
}

.text-white {
    color: var(--dux-white);
}

.text-black {
    color: var(--dux-black);
}

.text-sepia {
    color: var(--dux-sepia);
}

.text-muted {
    color: #666;
}

.text-md {
    font-size: 1.25rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dux-black);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dux-black);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--dux-sepia);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--dux-black);
    color: var(--dux-white);
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sepia {
    background-color: var(--dux-sepia);
    color: var(--dux-white);
}

.btn-sepia:hover {
    background-color: var(--dux-sepia-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dux-black);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Cards */
.card {
    background: var(--dux-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-sepia {
    background-color: var(--dux-sepia-light);
    border-color: var(--dux-sepia);
}

/* Tables */
.dux-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dux-table th {
    background-color: var(--dux-black);
    color: var(--dux-white);
    text-align: left;
    padding: 1rem;
    font-weight: 600;
}

.dux-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.dux-table tr:last-child td {
    border-bottom: none;
}

/* Capture Block */
.capture-block {
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    background-color: var(--dux-sepia-light);
    border-radius: var(--radius-lg);
}

.capture-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.capture-input {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex: 1;
    font-family: var(--font-sans);
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    background-color: var(--dux-black);
    color: var(--dux-white);
}

.footer-heading {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--dux-sepia);
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dux-black);
    position: relative;
}

.mobile-toggle-icon::before,
.mobile-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--dux-black);
    left: 0;
}

.mobile-toggle-icon::before {
    top: -8px;
}

.mobile-toggle-icon::after {
    bottom: -8px;
}

/* Dashboard & Portal */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    margin-right: 5px;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .capture-form {
        flex-direction: column;
    }

    .mt-xl {
        margin-top: 3rem;
    }

    .space-lg {
        padding: 2rem 0;
    }
}