/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #059669;
    --primary-2: #047857;
    --radius-sm: 8px;
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('background/bgc2.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 250, 252, 0.2) 50%, rgba(241, 245, 249, 0.3) 100%);
    z-index: -1;
}

.container {
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 150, 105, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(5, 150, 105, 0.3);
}

/* Header scrolled state */
.header.scrolled {
    background: rgba(5, 150, 105, 0.98);
    box-shadow: 0 3px 24px rgba(5, 150, 105, 0.35);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-brand:hover {
    transform: scale(1.05);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-brand i {
    font-size: 1.6rem;
    color: #fff;
    transition: all 0.3s ease;
}

.nav-brand:hover i {
    transform: rotate(15deg);
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #f0fdf4;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #f0fdf4);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-toggle i {
    font-size: 1rem;
    color: #ffffff;
}

.theme-toggle:hover i {
    color: #f0fdf4;
}

/* Theme text styles - hidden by default */
.theme-text {
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #059669;
    margin-left: 8px;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #059669;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(5, 150, 105, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%233498db" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

.gradient-text {
    background: linear-gradient(135deg, #059669, #047857, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    max-width: 500px;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    border: 1px solid rgba(5, 150, 105, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.minecraft-world {
    position: relative;
    width: 300px;
    height: 300px;
}

.cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 2px solid #654321;
    animation: float 6s ease-in-out infinite;
}

.cube-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.cube-2 {
    top: 120px;
    left: 150px;
    animation-delay: 1.5s;
}

.cube-3 {
    top: 80px;
    left: 220px;
    animation-delay: 3s;
}

.cube-4 {
    top: 180px;
    left: 80px;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #2d3748;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.about-card p {
    color: #2d3748;
    line-height: 1.6;
}

/* Connect Section */
.connect {
    padding: 80px 0;
}

.connect-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-card-group {
    display: grid;
    gap: 1rem;
}

.server-switch {
    display: inline-flex;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.switch-btn {
    appearance: none;
    border: none;
    padding: 8px 12px;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-btn:hover { color: #047857; }

.switch-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.hidden { display: none; }

.info-card, .instruction-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.info-card h3, .instruction-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    color: #2d3748;
    font-weight: 500;
}

.value {
    color: #059669;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid transparent;
}

.value:hover {
    color: #047857;
    text-shadow: 0 0 15px rgba(5, 150, 105, 0.6), 0 0 30px rgba(5, 150, 105, 0.3);
    transform: scale(1.05);
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.2), inset 0 0 10px rgba(5, 150, 105, 0.05);
}

.value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(5, 150, 105, 0.1), transparent);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.value:hover::before {
    opacity: 1;
    animation: shimmer-light 2s infinite;
}

@keyframes shimmer-light {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.steps {
    list-style: none;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 8px;
    border-left: 3px solid #059669;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #2d3748;
    font-size: 0.9rem;
}

.step-content code {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #fff;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #2d3748;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3, .footer-section h4 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-section p {
    color: #2d3748;
    line-height: 1.6;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #059669;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
}

.footer-bottom p {
    color: #2d3748;
    font-size: 0.9rem;
}

/* News Page Styles */
.news-hero {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('background/bgc2.png') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.news-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #047857;
}

.news-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.news-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Filter */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(5, 150, 105, 0.1);
    border: 2px solid rgba(5, 150, 105, 0.3);
    color: #059669;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(5, 150, 105, 0.2);
    border-color: #059669;
    color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.news-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #047857);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.5);
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.news-item:hover .news-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-date {
    color: #666;
}

.news-category {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category.update {
    background: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.news-category.event {
    background: rgba(255, 193, 7, 0.2);
    color: #e6a700;
}

.news-category.announcement {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #047857;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    background: transparent;
    border: 1px solid rgba(5, 150, 105, 0.5);
    color: #059669;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: rgba(5, 150, 105, 0.1);
    border-color: #059669;
    color: #047857;
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* Active Navigation Link */
.nav-menu a.active {
    color: #059669;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 88vw);
        height: 100vh;
        max-height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px max(30px, env(safe-area-inset-bottom));
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(5, 150, 105, 0.1);
        color: #1a202c;
    }
    
    .nav-menu a:hover {
        background: rgba(5, 150, 105, 0.1);
        padding-left: 10px;
        color: #059669;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
        background: rgba(5, 150, 105, 0.1);
        border-radius: 6px;
        padding: 8px;
        border: 1px solid rgba(5, 150, 105, 0.2);
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(5, 150, 105, 0.2);
        transform: scale(1.05);
    }
    
    .theme-toggle {
        position: static;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(5, 150, 105, 0.1);
        border: 1px solid rgba(5, 150, 105, 0.2);
        min-width: 120px;
        min-height: 44px;
    }
    
    .theme-toggle:hover {
        background: rgba(5, 150, 105, 0.2);
        transform: scale(1.05);
    }
    
    .theme-text {
        display: inline;
        font-size: 0.8rem;
        font-weight: 500;
        color: #059669;
    }
    
    .theme-toggle:hover .theme-text {
        color: #f0fdf4;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .connect-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-hero-subtitle {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}

/* Focus styles for accessibility */
:where(a, button, .btn, .theme-toggle):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        padding: 6px;
        background: rgba(5, 150, 105, 0.15);
        border: 1px solid rgba(5, 150, 105, 0.3);
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .theme-toggle {
        min-width: 100px;
        padding: 6px 12px;
    }
    
    .theme-text {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .minecraft-world {
        width: 200px;
        height: 200px;
    }
    
    .cube {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .mobile-menu-toggle {
        padding: 4px;
        background: rgba(5, 150, 105, 0.2);
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

/* Добавляем поддержку очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .connect-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Добавляем поддержку планшетов в портретной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .connect-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Добавляем поддержку ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        padding: 60px 20px 20px;
    }
    
    .mobile-menu-toggle {
        padding: 4px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

/* === v2.0 light theme enhancements === */
:root {
    --bg-deep: #f0fdf4;
    --bg-strong: rgba(255, 255, 255, 0.92);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(5, 150, 105, 0.15);
    --text: #0f172a;
    --muted: #64748b;
    --primary: #059669;
    --primary-2: #047857;
    --accent: #0d9488;
    --accent-2: #f59e0b;
    --glow: rgba(5, 150, 105, 0.25);
    --radius-lg: 24px;
    --radius-pill: 999px;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h: 72px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
}

body::before { opacity: 0.15; }

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 15% -5%, rgba(5, 150, 105, 0.2), transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 5%, rgba(13, 148, 136, 0.15), transparent 50%),
        linear-gradient(180deg, #ecfdf5 0%, #f8fafc 50%, #f0fdf4 100%);
}

.ambient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 150, 105, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 150, 105, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 15%, transparent 70%);
}

.orb { filter: blur(90px); opacity: 0.4; }
.orb-1 { background: #6ee7b7; }
.orb-2 { background: #5eead4; }
.orb-3 { background: #86efac; }

.header.scrolled {
    background: var(--bg-strong);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.nav-brand { font-family: var(--font-display); }

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out);
}

.header.scrolled .nav-avatar {
    border-color: rgba(5, 150, 105, 0.45);
}

.nav-brand:hover .nav-avatar {
    transform: scale(1.06);
}

.header:not(.scrolled) .nav-menu a {
    color: #fff;
    background: transparent;
}

.header:not(.scrolled) .nav-menu a:hover {
    color: #f0fdf4;
    background: rgba(255, 255, 255, 0.12);
}

.header.scrolled .nav-menu a {
    color: var(--muted);
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
    color: var(--primary-2);
    background: var(--surface);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: auto;
    padding: calc(var(--header-h) + 48px) 0 80px;
    overflow: visible;
}

.hero::before {
    display: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.03em;
    color: var(--text);
    text-shadow: none;
}

.hero-subtitle {
    text-shadow: none;
}

.gradient-text {
    background: linear-gradient(120deg, var(--primary), var(--accent), #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 520px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 1.1rem;
    min-width: 118px;
    border-radius: var(--radius, 16px);
    background: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.stat-pill strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.stat-pill span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

/* IP/порт в блоке подключения — без «неонового» сбоя при наведении */
.info-card .value,
.instruction-card .value {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    color: var(--primary-2);
}

.info-card .value:hover,
.instruction-card .value:hover {
    color: #047857;
    text-shadow: none;
    transform: none;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.12);
    background: rgba(5, 150, 105, 0.12);
}

.info-card .value:hover::before,
.instruction-card .value:hover::before {
    animation: none;
    opacity: 0;
}

.btn { border-radius: var(--radius-pill); }
.btn-ghost { color: var(--primary); border: 1px solid rgba(5, 150, 105, 0.35); background: transparent; }
.btn-ghost:hover { background: rgba(5, 150, 105, 0.08); }

.section-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border-radius: var(--radius-pill);
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.section-header h2 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }

.about-card, .feature-item, .info-card, .instruction-card, .rules-block {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.about-card:hover, .feature-item:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: var(--shadow-lg);
}

.card-icon, .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
}

.cube {
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(5, 150, 105, 0.2), rgba(13, 148, 136, 0.12));
    border: 1px solid rgba(5, 150, 105, 0.3);
    box-shadow: var(--shadow-lg);
}

.page-hero { padding: calc(var(--header-h) + 56px) 0 48px; text-align: center; }

.rules-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0 auto 2.5rem;
    padding: 6px;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
}

.rules-tab {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.rules-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 20px var(--glow);
}

.rules-panel { display: none; }
.rules-panel.active { display: block; }

.rule-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; text-align: left; }

.rule-number {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.rules-notice {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    gap: 1rem;
}

.cta-banner {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(13, 148, 136, 0.06));
    border: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-pill {
        align-items: center;
        text-align: center;
        min-width: 100px;
    }

    .hero-buttons, .hero-eyebrow {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .about-card, .feature-item { text-align: center; }
    .card-icon, .feature-icon { margin-left: auto; margin-right: auto; }
    .rule-card { grid-template-columns: 1fr; }
}

.application-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.form-section { padding: 0 0 80px; }
.form-grid { display: grid; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    background: #f8fafc;
    color: var(--text);
}
.form-hint { font-size: 0.8rem; color: var(--muted); }
.form-checkbox { display: flex; gap: 0.75rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.form-privacy { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: rgba(5, 150, 105, 0.06); font-size: 0.85rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.success-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 2.5rem; }

/* Effects — light theme */
body.light-theme .cursor-glow {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.14) 0%, transparent 65%);
    mix-blend-mode: multiply;
}

body.light-theme .hero-scene {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 245, 0.6));
    box-shadow: var(--shadow-lg), 0 0 40px rgba(5, 150, 105, 0.1);
}

body.light-theme .scene-logo-wrap {
    color: var(--primary-2);
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 12px 28px var(--glow);
}

body.light-theme .scene-orbit {
    border-color: rgba(5, 150, 105, 0.25);
}

body.light-theme .ticker-wrap {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.08), rgba(13, 148, 136, 0.06));
}

body.light-theme .fx-particle {
    background: var(--primary);
}