/* ========================================
   JustKiwi.ru — Minecraft Server
   Дизайн-система и стили
   ======================================== */

/* --- Custom Properties --- */
:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --accent: #4CAF50;
    --accent-dark: #388E3C;
    --text: #e0e0e0;
    --text-muted: #888;
    --green: #4CAF50;
    --cyan: #00BCD4;
    --pink: #E91E63;
    --gold: #FFC107;
    --red: #f44336;
    --radius: 12px;
    --transition: 0.3s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --navbar-h: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-h);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

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

.accent {
    color: var(--accent);
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-40px) scale(1.1); opacity: 0.7; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* --- Tooltip --- */
.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.tooltip.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.navbar__logo img {
    border-radius: 8px;
}

.navbar__links {
    display: flex;
    gap: 24px;
    margin-right: auto;
}

.navbar__links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.navbar__links a:hover {
    color: var(--text);
}

.navbar__links a:hover::after {
    width: 100%;
}

.navbar__ip {
    position: relative;
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.navbar__ip:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.navbar__ip:active {
    transform: translateY(0);
}

/* Burger */
.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__burger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-h);
}

.hero__kiwi-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate 120s linear infinite;
    pointer-events: none;
}

/* Частицы — радиальные градиенты (дольки киви) */
.hero__particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        rgba(200, 230, 201, 0.3) 0%,
        rgba(76, 175, 80, 0.2) 40%,
        rgba(109, 76, 42, 0.15) 70%,
        transparent 100%);
    pointer-events: none;
}

.hero__particle--1 {
    width: 120px; height: 120px;
    top: 15%; left: 5%;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero__particle--2 {
    width: 80px; height: 80px;
    top: 70%; left: 15%;
    animation: particleFloat 10s ease-in-out 1s infinite;
}

.hero__particle--3 {
    width: 60px; height: 60px;
    top: 25%; right: 10%;
    animation: particleFloat 7s ease-in-out 2s infinite;
}

.hero__particle--4 {
    width: 100px; height: 100px;
    bottom: 15%; right: 20%;
    animation: particleFloat 9s ease-in-out 0.5s infinite;
}

.hero__particle--5 {
    width: 50px; height: 50px;
    top: 50%; left: 40%;
    animation: particleFloat 11s ease-in-out 3s infinite;
}

.hero__particle--6 {
    width: 70px; height: 70px;
    bottom: 30%; left: 60%;
    animation: particleFloat 8.5s ease-in-out 1.5s infinite;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__content {
    flex: 1;
    max-width: 560px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero__ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 32px;
}

.hero__ip-text {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

.hero__ip-copy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent);
    transition: background var(--transition);
}

.hero__ip-copy:hover {
    background: rgba(76, 175, 80, 0.3);
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.btn--outline {
    border: 2px solid rgba(76, 175, 80, 0.5);
    color: var(--accent);
}

.btn--outline:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--accent);
}

/* Character */
.hero__character {
    flex-shrink: 0;
    position: relative;
}

.hero__character-img {
    width: 340px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.1);
}

.feature-card__icon {
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   HOW TO CONNECT
   ======================================== */
.howto {
    padding: 100px 0;
    background: var(--bg-card);
}

.howto__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.howto__step {
    text-align: center;
    padding: 24px;
    flex: 0 1 220px;
}

.howto__number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.howto__step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.howto__step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.howto__step-text code {
    color: var(--accent);
    font-weight: 600;
}

.howto__line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    flex-shrink: 0;
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
    padding: 100px 0;
}

.pricing__desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.pricing__toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.pricing__period {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.pricing__period.active {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(76, 175, 80, 0.1);
}

.pricing__period:hover:not(.active) {
    color: var(--text);
    background: var(--bg-card-hover);
}

.pricing__badge {
    font-size: 0.75rem;
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0 24px 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card__bar {
    height: 4px;
    margin: 0 -24px 24px;
}

.pricing-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-card__price {
    margin-bottom: 4px;
}

.pricing-card__amount {
    font-size: 2rem;
    font-weight: 800;
}

.pricing-card__currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-card__period-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.pricing__hint {
    text-align: center;
    margin-top: 32px;
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing__hint code {
    color: var(--accent);
    font-weight: 700;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 1.05rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__logo img {
    border-radius: 8px;
}

.footer__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a,
.footer__nav-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer__ip {
    color: var(--accent);
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero__character-img {
        width: 260px;
    }

    .hero__kiwi-bg {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .navbar__links {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .navbar__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar__burger {
        display: flex;
    }

    .navbar__ip {
        display: none;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__ip {
        justify-content: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__character-img {
        width: 220px;
    }

    .howto__line {
        display: none;
    }

    .howto__steps {
        flex-direction: column;
        gap: 16px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .pricing__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__character-img {
        width: 180px;
    }

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

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

    .pricing__toggle {
        flex-direction: column;
        align-items: center;
    }
}
