/* Dedicated Server - matches Gameserver structure */

:root {
    --primary-bg: #0a0e13;
    --secondary-bg: #0f1419;
    --card-bg: #161d25;
    --accent-green: #00d98a;
    --accent-green-dark: #00b872;

    --text-primary: #e4e8ed;
    --text-secondary: #8a98a8;

    --border-color: #1f2830;

    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 26px 80px rgba(0, 0, 0, 0.45);

    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--primary-bg);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(0, 217, 138, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 217, 138, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--primary-bg) 0%, #080c11 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.page {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section.alt {
    background: var(--secondary-bg);
}

.section-head {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.section-head.center {
    text-align: center;
    justify-items: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 65ch;
    font-size: 1.05rem;
}

.hero {
    padding: 5rem 0 3rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(0, 217, 138, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(0, 217, 138, 0.09) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.kicker {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0.75rem;
    font-weight: 800;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 55ch;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: #07110c;
    border-color: rgba(0, 217, 138, 0.35);
}

.btn.ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 138, 0.35);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.badge:hover {
    border-color: rgba(0, 217, 138, 0.3);
    color: var(--text-primary);
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.panel-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.panel-dot.green { background: var(--accent-green); }
.panel-dot.yellow { background: #f59e0b; }
.panel-dot.red { background: #ef4444; }

.panel-title {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.panel-body {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-row-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.panel-row-value {
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill.ok {
    background: rgba(0, 217, 138, 0.12);
    border-color: rgba(0, 217, 138, 0.35);
    color: var(--accent-green);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.type-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 138, 0.25);
}

.type-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 217, 138, 0.12);
    border: 1px solid rgba(0, 217, 138, 0.25);
    margin-bottom: 0.9rem;
    font-size: 1.25rem;
}

.type-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.type-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.type-list {
    margin: 0.25rem 0 0.75rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.type-list li {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.type-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 217, 138, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 217, 138, 0.12);
    flex: 0 0 auto;
}

.type-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.type-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.type-amount-full {
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    white-space: nowrap;
}

.type-from {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

.type-amount {
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.35rem;
}

.type-unit {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

.btn.type-btn {
    padding: 0.75rem 1.05rem;
    border-radius: 12px;
    white-space: nowrap;
}

.btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 138, 0.25);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 217, 138, 0.12);
    border: 1px solid rgba(0, 217, 138, 0.25);
    margin-bottom: 0.9rem;
    font-size: 1.25rem;
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.4rem;
}

.stat-desc {
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Usecases */
.usecases {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.usecase {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.35rem;
    transition: var(--transition-normal);
}

.usecase:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 217, 138, 0.22);
}

.usecase h3 {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.usecase p {
    color: var(--text-secondary);
    line-height: 1.65;
}

/* FAQ */
.faq {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    list-style: none;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-body {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA */
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.6rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-md);
}

.cta h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cta p {
    color: var(--text-secondary);
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }

    .type-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn.type-btn {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .usecases {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
