:root {
    /* Crimson Bento Palette - STRICTLY NO BLUE */
    --bg-canvas: #0b0b0d;
    --bg-surface: #16161a;
    --bg-surface-hover: #1f1f24;
    --text-primary: #f8f8f9;
    --text-muted: #c0c4cc;
    --accent-primary: #dc2626;
    --accent-secondary: #991b1b;
    --border-subtle: rgba(192, 196, 204, 0.15);
    
    /* Layout & Kinetic properties */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.4);
    --glow-accent: 0 0 24px -4px rgba(220, 38, 38, 0.5);
    --radius-card: 20px;
    --radius-button: 0px;
    
    /* Typography */
    --font-serif: Charter, Cambria, Georgia, serif;
}

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

html {
    lang: en;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-serif);
    line-height: 1.6;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s var(--ease-kinetic);
}

a:hover {
    color: var(--accent-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.label-small-caps {
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Layout Wrappers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.content-narrow {
    max-width: 72ch;
    margin: 0 auto;
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    position: static;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--bg-canvas);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-variant: small-caps;
    font-size: 1.1rem;
}

.mobile-nav-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 2rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu.active {
    display: flex;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-button);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-kinetic);
    font-family: inherit;
}

.btn:hover {
    background-color: var(--accent-primary);
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
    color: #fff;
}

/* Patterns */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-subtle) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-images {
    position: relative;
    height: 500px;
    width: 100%;
}

.hero-img {
    position: absolute;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-elevation);
    transition: transform 0.5s var(--ease-kinetic);
}

.hero-images:hover .hero-img-1 { transform: translate(-10px, -10px); }
.hero-images:hover .hero-img-2 { transform: translate(10px, 10px); }
.hero-images:hover .hero-img-3 { transform: translate(5px, -5px); }

.hero-img-1 {
    top: 0; left: 0;
    width: 65%; height: 75%;
    z-index: 1;
}

.hero-img-2 {
    bottom: 0; right: 5%;
    width: 55%; height: 65%;
    z-index: 2;
    border: 6px solid var(--bg-canvas);
}

.hero-img-3 {
    top: 15%; right: -5%;
    width: 45%; height: 55%;
    z-index: 3;
    border: 6px solid var(--bg-canvas);
}

/* Bento Grid */
.bento-section {
    padding: 6rem 0;
}

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

.bento-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transition: all 0.5s var(--ease-kinetic);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-elevation), var(--glow-accent);
    background-color: var(--bg-surface-hover);
    border-color: var(--accent-primary);
}

.bento-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.bento-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-variant: small-caps;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bento-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bento-content h3 {
    margin-bottom: 0.5rem;
}

/* Data Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background-color: var(--bg-surface);
    font-variant: small-caps;
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

/* Accordion FAQs */
.faq-item {
    border: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
    border-radius: var(--radius-card);
    background-color: var(--bg-surface);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: var(--font-serif);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-kinetic), padding 0.4s;
}

.faq-item.open .faq-a {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.open .faq-q::after {
    content: '−';
}

/* Forms & Tools */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-variant: small-caps;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.preview-card {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
}

.preview-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
}

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

.footer-col h4 {
    font-variant: small-caps;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-kinetic);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (min-width: 769px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .span-2 {
        grid-column: span 2;
    }
    
    .span-row-2 {
        grid-row: span 2;
    }

    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-nav-btn {
        display: block;
    }

    .hero-images {
        height: 350px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
