:root {
    --primary-color: #ff3366;
    --secondary-color: #6c5ce7;
    --accent-color: #fd79a8;
    --dark-bg: #0a0a14;
    --card-bg: #12121f;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --gradient-1: linear-gradient(135deg, #ff3366 0%, #6c5ce7 100%);
    --gradient-2: linear-gradient(135deg, #fd79a8 0%, #a29bfe 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body > header {
    background: rgba(18, 18, 31, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at center, rgba(108,92,231,0.15) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 5px 25px rgba(255,51,102,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255,51,102,0.5);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-1);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 30px rgba(255,51,102,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.05);
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 30px rgba(255,51,102,0.5); }
    50% { box-shadow: 0 5px 50px rgba(255,51,102,0.8); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card .btn {
    width: 100%;
    justify-content: center;
}

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

.feature {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.feature p {
    color: var(--text-muted);
}

.content-block {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.content-block h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--accent-color);
}

.content-block p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-block ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-block li {
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.breadcrumbs {
    padding: 30px 0;
    padding-top: 120px;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs li {
    color: var(--text-muted);
}

.breadcrumbs li a {
    color: var(--accent-color);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-muted);
}

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

.article-content h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    color: var(--text-muted);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.cta-section {
    background: var(--gradient-1);
    padding: 80px 20px;
    text-align: center;
    border-radius: 30px;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--dark-bg);
    color: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 10px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item h3 {
    color: white;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .icon {
    transition: transform 0.3s ease;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 20px;
}

.faq-answer p {
    color: var(--text-muted);
}

footer {
    background: var(--card-bg);
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.related-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.related-card-content {
    padding: 25px;
}

.related-card h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    background: rgba(255,51,102,0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* codex-ui-fixes */
.logo,
.logo:hover,
.logo:focus,
.logo:active {
    text-decoration: none;
}

.menu-toggle,
.nav-toggle,
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover,
.nav-toggle:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
}

.menu-toggle:focus-visible,
.nav-toggle:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.menu-toggle i,
.nav-toggle i,
.mobile-menu-btn i,
.menu-toggle svg,
.nav-toggle svg,
.mobile-menu-btn svg {
    display: block;
    margin: 0 auto;
}

.menu-toggle span,
.nav-toggle span,
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 20px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-block {
        padding: 30px 20px;
    }
    
    .floating-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-btn span {
        display: none;
    }
}

.typing-indicator {
    display: inline-flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

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

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.icon-container svg {
    width: 32px;
    height: 32px;
    fill: white;
}
