:root {
    --bg-canvas: #160f2e;
    --bg-surface: #24183f;
    --text-primary: #ffffff;
    --text-muted: #a8a3bc;
    --accent-primary: #e0409b;
    --accent-secondary: #d9b86c;
    --border-subtle: rgba(217, 184, 108, 0.3);
    
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: "Arial Narrow", "Helvetica Neue", sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

/* Header & Navigation */
header {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    z-index: 100;
}

.brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 15, 46, 0.7), rgba(22, 15, 46, 1));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s var(--ease-kinetic);
}

.btn:hover {
    background: var(--accent-primary);
    color: #fff;
}

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

.btn-secondary:hover {
    background: var(--accent-secondary);
    color: var(--bg-canvas);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.split-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.split-section:nth-child(even) .split-content {
    order: -1;
}

/* Cards & Panels */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

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

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-strip {
    border-left: 2px solid var(--accent-secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Background Gradients */
.radial-bg {
    position: relative;
}

.radial-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(224,64,155,0.08) 0%, rgba(217,184,108,0.05) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 1rem;
    font-family: var(--font-body);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.preview-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2rem;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}

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

th {
    font-family: var(--font-heading);
    color: var(--accent-secondary);
}

/* Typography elements */
p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.page-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

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

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

.footer-col h4 {
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

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

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

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-surface);
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active {
    border-color: var(--accent-secondary);
}

/* Animations & Kinetic Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-canvas);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem 2rem;
    }

    .main-nav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .split-section:nth-child(even) .split-content {
        order: 0;
    }
    
    .form-split {
        grid-template-columns: 1fr;
    }
}

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