/* ============================================
   ZUOZHILIN.COM - Cyber/Futuristic Dark Theme
   Main Stylesheet
   ============================================ */

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

:root {
    --bg-primary: #050810;
    --bg-secondary: #0a0f1c;
    --bg-tertiary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-card-hover: rgba(17, 24, 39, 0.85);
    --accent-cyan: #00f0ff;
    --accent-blue: #0066ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #00ff88;
    --accent-orange: #ff6b00;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-bright: #ffffff;
    --border-subtle: rgba(0, 240, 255, 0.15);
    --border-medium: rgba(0, 240, 255, 0.3);
    --border-strong: rgba(0, 240, 255, 0.5);
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #0066ff 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #00ff88 0%, #00f0ff 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Orbitron', 'Rajdhani', 'Inter', sans-serif;
    --header-height: 80px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; color: var(--text-secondary); }

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-blue); }

code {
    font-family: var(--font-mono);
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-title .label {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.card h3 { margin-bottom: 1rem; color: var(--text-bright); }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.3s;
}

.site-header.scrolled {
    background: rgba(5, 8, 16, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-bright);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.logo svg, .logo img { width: 36px; height: 36px; transition: transform 0.3s; }
.logo:hover svg, .logo:hover img { transform: rotate(360deg); }

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

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

.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 3rem;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg svg { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-medium);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: blink 1.5s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-header {
    padding: calc(80px + 6rem) 0 4rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-content { max-width: 800px; margin: 0 auto; }

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.page-header .breadcrumb a { color: var(--text-secondary); }
.page-header .breadcrumb a:hover { color: var(--accent-cyan); }

.page-header h1 {
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p { font-size: 1.1rem; color: var(--text-secondary); }

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 102, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 102, 255, 0.2));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.feature-card h3 { margin-bottom: 1rem; color: var(--text-bright); }
.feature-card p { color: var(--text-secondary); margin-bottom: 0; }

.service-section { padding: 4rem 0; border-bottom: 1px solid var(--border-subtle); }
.service-section:last-child { border-bottom: none; }

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

@media (max-width: 768px) {
    .service-block { grid-template-columns: 1fr; gap: 2rem; }
}

.service-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.service-visual svg { width: 80%; max-width: 300px; height: auto; z-index: 1; }

.service-info .label {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.05);
}

.service-info h2 { margin-bottom: 1.5rem; color: var(--text-bright); }
.service-info p { font-size: 1.05rem; line-height: 1.7; }

.service-features { list-style: none; margin-top: 1.5rem; }
.service-features li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

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

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.app-card-image {
    height: 200px;
    background: linear-gradient(135deg, #0a0f1c, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.app-card-image svg { width: 80px; height: 80px; color: var(--accent-cyan); z-index: 1; }
.app-card-content { padding: 1.5rem; }
.app-card h3 { margin-bottom: 0.5rem; color: var(--text-bright); }

.app-card-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.app-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0; }

.process-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), transparent);
}

.process-item { position: relative; padding-left: 80px; padding-bottom: 4rem; }
.process-item:last-child { padding-bottom: 0; }

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.process-item h3 { margin-bottom: 0.5rem; color: var(--text-bright); }
.process-item p { color: var(--text-secondary); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.team-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.team-card h3 { margin-bottom: 0.25rem; color: var(--text-bright); }

.team-role {
    color: var(--accent-cyan);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-card p { color: var(--text-secondary); font-size: 0.9rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #0a0f1c, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

.news-image svg { width: 64px; height: 64px; color: var(--accent-cyan); z-index: 1; }
.news-content { padding: 1.5rem; }

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.news-meta .category { color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.1em; }

.news-card h3 {
    margin-bottom: 1rem;
    color: var(--text-bright);
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; }

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 0.9rem;
}

.news-link:hover { gap: 0.75rem; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }

.contact-info, .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info h3, .contact-form h3 { margin-bottom: 1.5rem; color: var(--text-bright); }

.contact-info > p { margin-bottom: 2rem; color: var(--text-secondary); }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin-bottom: 0.25rem; color: var(--text-bright); font-size: 1rem; }
.contact-item p { color: var(--text-secondary); margin-bottom: 0; font-size: 0.95rem; line-height: 1.5; }
.contact-item a { color: var(--accent-cyan); }
.contact-item a:hover { text-decoration: underline; }

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group label .required { color: var(--accent-pink); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: var(--bg-tertiary);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    display: block;
}

.form-message.error {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    display: block;
}

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 6rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.75rem; }
@media (max-width: 480px) { .footer-social { justify-content: center; } }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-column h4 {
    color: var(--text-bright);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-column a:hover { color: var(--accent-cyan); transform: translateX(3px); }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) { .footer-bottom { flex-direction: column; text-align: center; } }

.footer-copyright { color: var(--text-muted); font-size: 0.875rem; }
.footer-copyright a { color: var(--accent-cyan); margin: 0 0.25rem; }

.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 480px) { .footer-legal { justify-content: center; } }

.footer-legal a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-legal a:hover { color: var(--accent-cyan); }

.legal-content { max-width: 900px; margin: 0 auto; padding: 4rem 0; }

.legal-content h1 {
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 1.15rem;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol { padding-left: 2rem; margin-bottom: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--text-bright); }
.legal-content a { color: var(--accent-cyan); text-decoration: underline; }

.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc h3 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-top: 0;
}

.toc ul {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 2rem;
}

@media (max-width: 640px) { .toc ul { column-count: 1; } }

.toc li { margin-bottom: 0.5rem; break-inside: avoid; }
.toc a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; }
.toc a:hover { color: var(--accent-cyan); }
.toc a::before { content: '§ '; color: var(--accent-cyan); font-family: var(--font-mono); }

.last-updated {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); } 50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.text-center { text-align: center; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }

.fade-in { animation: fadeIn 0.8s ease forwards; }
.fade-in-left { animation: fadeInLeft 0.8s ease forwards; }
.fade-in-right { animation: fadeInRight 0.8s ease forwards; }
.scale-in { animation: scaleIn 0.6s ease forwards; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 1.5s infinite;
}

@keyframes loading { 0% { left: -50%; } 100% { left: 100%; } }

.loading-text {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue)); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple)); }

::selection { background: rgba(0, 240, 255, 0.3); color: var(--text-bright); }
