/* =========================
   ROOT COLORS (PREMIUM DARK)
========================= */
:root {
    --bg-main: #07070d;
    --bg-card-1: #0a0a14;
    --bg-card-2: #0f1020;

    --white: #ffffff;
    --muted: #b6b7c0;

    --pink: #ff4fd8;
    --violet: #7c3aed;
    --cyan: #22d3ee;
}

/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(circle at top, rgba(124, 58, 237, 0.15), transparent 60%),
        radial-gradient(circle at bottom, rgba(255, 79, 216, 0.12), transparent 60%),
        var(--bg-main);
    color: var(--white);
    overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(8, 8, 16, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 1;
}

/* =========================
   HERO
========================= */
.hero {
    text-align: center;
    padding: 90px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
}

.hero p {
    margin-top: 12px;
    color: var(--muted);
}

/* =========================
   TUTORIAL GRID
========================= */
.tutorials-section {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* =========================
   DARK PREMIUM CARD
========================= */
.tutorial-card {
    position: relative;
    padding: 34px;
    border-radius: 26px;

    background: linear-gradient(
        145deg,
        var(--bg-card-1),
        var(--bg-card-2)
    );

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(124, 58, 237, 0.12);

    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
}

/* SOFT NEON EDGE (VERY LOW) */
.tutorial-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        var(--pink),
        var(--violet),
        var(--cyan)
    );
    opacity: 0.18;
    filter: blur(28px);
    z-index: -1;
}

/* VERY SUBTLE SHINE */
.tutorial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 35%,
        rgba(255,255,255,0.05),
        transparent 65%
    );
    opacity: 0.25;
    animation: shine 10s infinite linear;
}

/* SOFT HOVER */
.tutorial-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(124, 58, 237, 0.22);
}

/* =========================
   CARD CONTENT
========================= */
.tutorial-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.tutorial-card ol {
    padding-left: 22px;
}

.tutorial-card li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #d1d5db;
}

/* =========================
   STATUS BADGE
========================= */
.status {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.status.active {
    background: rgba(255, 79, 216, 0.22);
    color: #ffd6f2;
    box-shadow: 0 0 18px rgba(255, 79, 216, 0.65);
}

.status.warning {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

.status.down {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 25px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 14px;
    }

    .tutorials-section {
        padding: 25px;
    }
}

/* =========================
   PREMIUM NAV LINKS
========================= */
.nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 2px;
    transition: color 0.3s ease;
}

/* GRADIENT UNDERLINE */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #ff4fd8,
        #7c3aed,
        #22d3ee
    );
    border-radius: 10px;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* SOFT GLOW */
.nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 8px;
    background: linear-gradient(
        90deg,
        #ff4fd8,
        #7c3aed,
        #22d3ee
    );
    filter: blur(10px);
    opacity: 0.5;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* HOVER EFFECT */
.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after,
.nav a:hover::before {
    width: 100%;
}

/* ACTIVE PAGE INDICATOR */
.nav a.active {
    color: #ffffff;
}

.nav a.active::after {
    width: 100%;
}

.nav a.active::before {
    width: 100%;
}

/* =========================
   NAV FADE-IN ANIMATION
========================= */
.header {
    animation: navFade 0.8s ease both;
}

@keyframes navFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   HEADER (OPTIMIZED)
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;

    background: rgba(8, 8, 16, 0.75);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    animation: navFade 0.8s ease both;
}

/* =========================
   NAV CONTAINER
========================= */
.nav {
    display: flex;
    gap: 26px;
}

/* =========================
   NAV LINKS – PREMIUM
========================= */
.nav a {
    position: relative;

    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;

    padding: 8px 2px;
    transition: color 0.3s ease;
}

/* GRADIENT UNDERLINE */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        #ff4fd8,
        #7c3aed,
        #22d3ee
    );

    border-radius: 10px;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* SOFT GLOW (VERY SUBTLE) */
.nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;

    width: 0;
    height: 8px;

    background: linear-gradient(
        90deg,
        #ff4fd8,
        #7c3aed,
        #22d3ee
    );

    filter: blur(12px);
    opacity: 0.45;

    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* HOVER (DESKTOP ONLY) */
@media (hover: hover) {
    .nav a:hover {
        color: #ffffff;
    }

    .nav a:hover::after,
    .nav a:hover::before {
        width: 100%;
    }
}

/* ACTIVE LINK */
.nav a.active {
    color: #ffffff;
}

.nav a.active::after,
.nav a.active::before {
    width: 100%;
}

/* =========================
   NAV ANIMATION
========================= */
@keyframes navFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .nav {
        gap: 18px;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 6px 2px;
    }

    /* Disable glow on mobile (clean & battery-friendly) */
    .nav a::before {
        display: none;
    }
}






/* ===============================
   GLOBAL
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top, rgba(236,72,153,0.15), transparent 60%),
        radial-gradient(circle at bottom, rgba(124,58,237,0.15), transparent 60%),
        #050508;
    color: #ffffff;
}

/* ===============================
   HERO
================================ */
.terms-hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.terms-hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.terms-hero h1 span {
    color: #ff3bd4;
}

.terms-hero p {
    margin-top: 10px;
    color: #b8b8c6;
}

/* ===============================
   WRAPPER
================================ */
.terms-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 100px;
}

/* ===============================
   TOP INFO CARDS
================================ */
.terms-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.top-card {
    background: linear-gradient(145deg, #0d0d18, #121225);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 40px rgba(236,72,153,0.15);
    animation: fadeUp 0.8s ease both;
}

.top-card .icon {
    color: #ff3bd4;
    font-size: 1.2rem;
}

.top-card h4 {
    margin: 10px 0 6px;
}

.top-card p {
    font-size: 0.9rem;
    color: #c2c2d0;
}

/* ===============================
   TIMELINE
================================ */
.terms-timeline {
    position: relative;
    padding-left: 40px;
}

.terms-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(#ff3bd4, transparent);
    opacity: 0.6;
}

.term-block {
    position: relative;
    margin-bottom: 45px;
    animation: fadeUp 0.8s ease both;
}

.term-block .dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #ff3bd4;
    border-radius: 50%;
    box-shadow: 0 0 20px #ff3bd4;
}

.term-block h3 {
    margin-bottom: 14px;
}

.term-item {
    background: linear-gradient(145deg, #0b0b16, #121225);
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #e4e4f0;
    border: 1px solid rgba(255,255,255,0.05);
}

/* ===============================
   ANIMATION
================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-timeline {
        padding-left: 30px;
    }

    .term-block .dot {
        left: -32px;
    }
}


/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050508;
    color: #ffffff;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        linear-gradient(
            90deg,
            rgba(12,12,20,0.95),
            rgba(20,10,40,0.95),
            rgba(12,12,20,0.95)
        );

    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1400px;
    margin: auto;
    padding: 22px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    animation: headerFade 0.8s ease both;
}

/* =========================
   LOGO
========================= */
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

/* =========================
   NAV
========================= */
.nav {
    display: flex;
    gap: 34px;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

/* underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff3bd4, #7c3aed);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

/* glow */
.nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff3bd4, #7c3aed);
    filter: blur(12px);
    opacity: 0.4;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* hover (desktop only) */
@media (hover: hover) {
    .nav a:hover {
        color: #ffffff;
    }

    .nav a:hover::after,
    .nav a:hover::before {
        width: 100%;
    }
}

/* active */
.nav a.active {
    color: #ffffff;
}

.nav a.active::after,
.nav a.active::before {
    width: 100%;
}

/* =========================
   MOBILE MENU BUTTON
========================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 768px) {

    .header-inner {
        padding: 18px 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;

        flex-direction: column;
        gap: 20px;

        background: rgba(10,10,20,0.98);
        backdrop-filter: blur(18px);

        padding: 25px 30px;
        border-left: 1px solid rgba(255,255,255,0.06);
        border-bottom: 1px solid rgba(255,255,255,0.06);

        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;

        transition: all 0.35s ease;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav a::before {
        display: none; /* clean on mobile */
    }
}

/* =========================
   ANIMATION
========================= */
@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
