:root {
    --bg-dark: #000000;
    --bg-card: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #2997ff;
    --accent-green: #30d158;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --section-light: #f5f5f7;
    --text-dark: #1d1d1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
}

.navbar.glass {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: #d1d1d6;
    font-weight: 400;
}

.nav-links a:hover {
    color: #fff;
}

.btn-small {
    background: #fff;
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 12px !important;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../assets/minecraft_hero_bg.png') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-sub {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-text {
    color: var(--accent-blue);
    font-size: 17px;
    display: flex;
    align-items: center;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Sections */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-dark {
    background: var(--bg-dark);
}

.section-light {
    background: var(--section-light);
    color: var(--text-dark);
}

.section-light h2,
.section-light p {
    color: var(--text-dark);
}

.section-light .tag {
    color: var(--text-secondary);
    border-color: #d2d2d7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 980px;
    margin-bottom: 20px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: scale(1.02);
}

.large {
    grid-column: span 2;
}

.medium {
    grid-column: span 1;
}

.small {
    grid-column: span 1;
}

.card-content {
    z-index: 2;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 16px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.bento-card:hover .card-bg {
    opacity: 0.5;
}

.bg-performance {
    background: linear-gradient(45deg, #ff3b30, #ff9500);
}

.bg-events {
    background: linear-gradient(45deg, #5e5ce6, #bf5af2);
}

.card-icon {
    font-size: 40px;
    color: var(--accent-green);
    margin-top: auto;
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.feature-list i {
    color: var(--accent-blue);
}

.device-mockup {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.screen-content {
    background: #000;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    font-family: 'Courier New', monospace;
    color: #30d158;
    font-size: 14px;
}

/* CTA */
.cta-section {
    padding: 100px 20px;
    text-align: center;
}

.cta-box {
    background: #1c1c1e;
    border-radius: 30px;
    padding: 60px;
    max-width: 600px;
    margin: 0 auto;
}

.ip-copy-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.ip-copy-wrapper input {
    background: #2c2c2e;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    width: 250px;
    text-align: center;
}

.ip-copy-wrapper input:focus {
    outline: 2px solid var(--accent-blue);
}

/* Footer */
footer {
    background: #111;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.footer-links a {
    margin-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .large,
    .medium,
    .small {
        grid-column: span 1;
    }

    .split-layout {
        flex-direction: column;
    }

    .ip-copy-wrapper {
        flex-direction: column;
    }

    .ip-copy-wrapper input {
        width: 100%;
    }
}