:root {
    --primary: #ff4d6d;
    --primary-dark: #c9184a;
    --secondary: #6c63ff;
    --accent: #00d4aa;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --text: #2d3436;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #ff4d6d 0%, #6c63ff 100%);
    --gradient-2: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255,77,109,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,77,109,0.5);
}

.btn-secondary {
    background: var(--gradient-2);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

.cta-button, .cta-btn {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255,77,109,0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover, .cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255,77,109,0.5);
}

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(255,77,109,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.floating-cta svg {
    width: 24px;
    height: 24px;
}

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

.floating-cta:hover {
    animation: none;
    transform: scale(1.1);
}

body > header {
    background: var(--dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 36px;
    height: 36px;
}

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

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

.nav-links a {
    color: var(--light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

.hero {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,77,109,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(108,99,255,0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 22px;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

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

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

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

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

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-gray {
    background: #f0f2f5;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-dark .section-title h2 {
    color: var(--white);
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

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

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease backwards;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.card-icon.pink { background: var(--gradient-1); }
.card-icon.purple { background: var(--gradient-2); }
.card-icon.accent { background: linear-gradient(135deg, #00d4aa 0%, #00a896 100%); }

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.card p {
    color: var(--gray);
    line-height: 1.7;
}

.content-block {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

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

.content-block p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

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

.content-block li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-item p {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-item .label {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.cta-section {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,77,109,0.2) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb span {
    color: var(--gray);
}

.breadcrumb strong {
    color: var(--dark);
}

footer {
    background: var(--darker);
    color: var(--light);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.page-header {
    background: var(--dark);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    color: rgba(255,255,255,0.7);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-links a {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-links svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* 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) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
    }
    
    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active svg path {
        stroke: var(--primary);
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .content-block {
        padding: 30px 20px;
    }
}

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

.related-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

.related-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.related-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.related-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

blockquote {
    background: linear-gradient(135deg, rgba(255,77,109,0.1) 0%, rgba(108,99,255,0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 18px;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: var(--gray);
}

.highlight-box {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 15px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros, .cons {
    padding: 25px;
    border-radius: 16px;
}

.pros {
    background: rgba(0,212,170,0.1);
}

.cons {
    background: rgba(255,77,109,0.1);
}

.pros h4, .cons h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.pros h4 { color: #00a896; }
.cons h4 { color: var(--primary-dark); }

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300a896'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
}

.cons li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c9184a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E") no-repeat center;
}

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

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
