@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Theme Colors */
    --bg-color: #000000;
    --text-color: #e5e5e5;
    
    /* Mandatory Palette */
    --primary-color: #f59e0b;
    --secondary-color: #141418;
    
    /* Glassmorphism & Effects */
    --glass-bg: rgba(20, 20, 24, 0.45);
    --glass-border: rgba(229, 229, 229, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography & Structural */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-speed: 0.3s;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out, text-shadow var(--transition-speed) ease-in-out;
}

a:hover {
    color: #ffb84d;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

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

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo .accent {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* =========================================
   BENTO GRID LAYOUT
   ========================================= */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

/* Grid Span Utilities */
.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
    .bento-span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .bento-span-2, .bento-span-3, .bento-row-2 {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* =========================================
   GLASSMORPHISM CARDS
   ========================================= */
.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                border-color var(--transition-speed) ease-in-out;
}

/* Micro-animations */
.bento-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.15), var(--glass-shadow);
    z-index: 10;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease-in-out;
}

.bento-card:hover::before {
    left: 200%;
}

/* =========================================
   CONTENT COMPONENTS
   ========================================= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.ai-badge {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Technical Sheets */
.tech-sheet {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-top: auto;
    border: 1px solid var(--glass-border);
}

.tech-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.tech-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tech-label {
    color: #a1a1aa;
}

.tech-value {
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

.tech-value.highlight {
    color: var(--primary-color);
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    border: none;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color); /* High contrast */
}

.btn-primary:hover {
    background-color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    background-color: #1c1c21;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 20, 24, 0.8);
}

/* Download Link Specific */
.download-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1440px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #71717a;
}