:root {
    /* D2HA Color Palette (Dark Theme Default) */
    --bg-base: #0b1020;
    --bg-primary: #0b1020;
    --bg-card: linear-gradient(150deg, rgba(49, 196, 255, 0.12), rgba(124, 255, 195, 0.08)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(17, 22, 36, 0.95);

    --accent-primary: #31c4ff;
    --accent: var(--accent-primary);
    --accent-2: #7cffc3;
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    --accent-glow: rgba(49, 196, 255, 0.35);

    --text: #e7ecf4;
    --muted: #9aa7bd;
    --border: rgba(255, 255, 255, 0.1);

    --font-family: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
    background: var(--bg-base);
    color: var(--text);
}

body {
    overflow-x: hidden;
}

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

/* Base Layout */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canvas-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating Brand Elements */
.brand-title {
    position: fixed;
    top: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.1rem, 4vw, 2rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    transition: all 1s ease;
}

.brand-logo {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
}

/* Content Card */
.content-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Intro Animation States */
body.landing-intro .brand-title {
    top: 40%;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text);
    opacity: 1;
    text-shadow: 0 0 30px var(--accent-glow);
}

body.landing-intro .content-container {
    opacity: 0;
    transform: translateY(40px);
}

body.landing-ready .content-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Typography & Elements */
h1.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Badges */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.4em 0.8em;
    border-radius: 99px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.badge.primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(49, 196, 255, 0.1);
    box-shadow: 0 0 15px rgba(49, 196, 255, 0.2);
}

/* Buttons */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.6em;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text);
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 800px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Preview Image */
.preview-window {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.preview-window img {
    width: 100%;
    display: block;
}

/* Quick Start Box */
.quick-start {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

code {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--accent-2);
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Installation Page Specifics */
.install-header {
    margin-bottom: 3rem;
    text-align: center;
}

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

.method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.method-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.method-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}