:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #1e293b;
    --accent-color: #10b981;
    --text-color: #0f172a;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --header-height: 80px;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 60rem;
    margin: 0 auto;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo .ki {
    color: var(--primary-color);
}

.logo .core {
    color: var(--text-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.08);
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.1rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 0.3rem;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
    padding: 0 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: white;
}

.btn-subscribe {
    background-color: var(--accent-color);
    color: white;
}

.btn-subscribe:hover {
    background-color: #0d9668;
    color: white;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 3rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 60rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 6rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 54rem;
}

.hero-graphic {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cube {
    position: absolute;
    width: 15rem;
    height: 15rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2rem;
    animation: float 8s ease-in-out infinite;
    opacity: 0.2;
}

.floating-cube:nth-child(1) {
    top: 20%;
    right: 20%;
    width: 18rem;
    height: 18rem;
    animation-delay: 0s;
}

.floating-cube:nth-child(2) {
    top: 50%;
    right: 10%;
    width: 12rem;
    height: 12rem;
    animation-delay: 2s;
}

.floating-cube:nth-child(3) {
    top: 30%;
    right: 35%;
    width: 10rem;
    height: 10rem;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Features Section */
.section-features {
    padding: 12rem 0;
    background-color: var(--bg-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
}

.feature-icon i {
    font-size: 2.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Developers Section */
.section-developers {
    padding: 12rem 0;
    background-color: var(--bg-alt);
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.developer-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.developer-avatar {
    width: 12rem;
    height: 12rem;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid var(--primary-color);
    padding: 3px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.developer-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.developer-role {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.developer-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--bg-alt);
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Community Section */
.community {
    padding: 12rem 0;
    background-color: var(--bg-color);
}

.community-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 6rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 80rem;
    margin: 0 auto;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.card-icon {
    width: 10rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(88, 101, 242, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
}

.card-icon i {
    font-size: 4rem;
    color: #5865F2;
}

.community-card h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.community-card p {
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter Section */
.newsletter {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 50rem;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    height: 5rem;
    padding: 0 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    outline: none;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 8rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo p {
    margin-top: 2rem;
    opacity: 0.7;
    max-width: 30rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 3rem;
}

.footer-links-column h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: white;
}

.footer-links-column ul li {
    margin-bottom: 1rem;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 58%;
    }
    
    .hero-title {
        font-size: 5.2rem;
    }

    .hero-graphic {
        opacity: 0.6;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56%;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .hero-graphic {
        display: none;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-features,
    .section-developers,
    .community {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 54%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        height: calc(100vh - var(--header-height));
        padding: 2rem 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.8rem;
    }

    .feature-grid,
    .developers-grid {
        grid-template-columns: 1fr;
        max-width: 50rem;
        margin: 0 auto;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        margin-bottom: 1rem;
    }

    .community-card {
        padding: 4rem 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .feature-card,
    .developer-card {
        padding: 3rem 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-links-column {
        text-align: center;
    }

    .newsletter-content h2 {
        font-size: 3rem;
    }

    .newsletter-content p {
        font-size: 1.6rem;
    }

    .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f8fafc;
        --text-light: #94a3b8;
        --bg-color: #0f172a;
        --bg-alt: #1e293b;
        --border-color: #334155;
        --card-bg: #1e293b;
        --secondary-color: #0f172a;
    }

    .logo .core {
        color: #f8fafc;
    }

    .mobile-menu-btn span {
        background-color: #f8fafc;
    }

    .hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    header {
        background-color: rgba(15, 23, 42, 0.95);
    }

    .developer-card,
    .feature-card,
    .community-card {
        border-color: #334155;
    }

    .social-link {
        color: #f8fafc;
    }
}

/* Additional Component Styles */
.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 100px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* JavaScript Toggle Classes */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-open .mobile-menu-btn span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-btn span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}
