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

:root {
    --primary: #1a1a1a;
    --secondary: #8b6f47;
    --accent: #c9a961;
    --bg: #fafaf8;
    --text: #2d2d2d;
    --border: #e5e3dc;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep mega menu visible when hovering over it */
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.drop-zone {
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(139, 111, 71, 0.1) 100%);
    transition: top 0.4s ease;
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
    top: 0;
}

.drop-zone:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-color: var(--secondary);
    background: rgba(201, 169, 97, 0.05);
}

.file-item {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}
.hero-gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #fafaf8 50%, #fde68a 100%);
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.4s ease forwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 111, 71, 0.3);
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 9999;
}

.logo-accent {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-weight: 800;
    opacity: 0.05;
    position: absolute;
    top: -2rem;
    right: 2rem;
    line-height: 1;
    pointer-events: none;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
.quality-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-option:hover {
    transform: scale(1.02);
}

.quality-option.active {
    border-color: var(--accent);
    background: rgba(201, 169, 97, 0.05);
}
.google-btn {
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.password-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.icon-container {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.1), rgba(201, 169, 97, 0.1));
    animation: pulse 2s ease-in-out infinite;
}
.requirement-item {
    transition: all 0.3s ease;
}

.requirement-met {
    color: #10b981;
}

.requirement-unmet {
    color: #9ca3af;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.json-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    max-height: 600px;
}
.json-key {
    color: #9cdcfe;
}
.json-string {
    color: #ce9178;
}
.json-number {
    color: #b5cea8;
}
.json-boolean {
    color: #569cd6;
}
.json-null {
    color: #569cd6;
}
.stat-card {
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* Tree View Styles */
.json-tree {
    line-height: 1.8;
}

.json-tree-node {
    position: relative;
    padding-left: 24px;
}

.json-tree-toggle {
    position: absolute;
    left: 0;
    top: 2px;
    cursor: pointer;
    user-select: none;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-center;
    color: #9cdcfe;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.json-tree-toggle:hover {
    color: #569cd6;
}

.json-tree-toggle.collapsed {
    transform: rotate(-90deg);
}

.json-tree-children {
    margin-left: 0;
}

.json-tree-children.collapsed {
    display: none !important;
}

.json-tree-key {
    color: #9cdcfe;
    font-weight: 500;
}

.json-tree-type {
    color: #6a9955;
    font-size: 0.85em;
    margin-left: 8px;
}

.json-tree-count {
    color: #808080;
    font-size: 0.85em;
    margin-left: 4px;
}
