@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    /* Primary Colors */
    --primary: #00f2fe;
    --primary-alt: #4facfe;
    --accent: #ff0055;

    /* Dark Theme Palette */
    --bg-main: #0a0b10;
    --bg-card: #161a23;
    --bg-nav: rgba(10, 11, 16, 0.8);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --border: 1px solid rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Layout Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: var(--border);
    padding: 1.2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--primary-alt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navbar Button Fix */
.nav-cta {
    display: block;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(79, 172, 254, 0.05), transparent);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

/* Grid System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

/* Card Style */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: var(--border);
}

.card-body {
    padding: 1.8rem;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: block;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: var(--border);
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.card-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Affiliate Widget */
.affiliate-section {
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.03));
    padding: 6rem 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #1e2430;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--primary-alt);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: #050608;
    border-top: var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-about p {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-cta {
        display: none;
        /* Hide button on mobile to simplify */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   Article / Post Page  (false-nine-evolution)
═══════════════════════════════════════════ */
.article-hero {
    padding: clamp(6rem, 12vw, 10rem) 0 clamp(2rem, 5vw, 4rem);
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
}

.article-hero .card-category {
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    margin: 1rem 0 1.5rem;
    line-height: 1.15;
    font-weight: 800;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-meta .separator {
    color: var(--text-dim);
}

.article-divider {
    border: none;
    border-top: var(--border);
    margin-bottom: 2.5rem;
}

.article-content {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.85;
    color: var(--text-muted);
}

.article-content p+p {
    margin-top: 1.5rem;
}

.article-content p:first-child::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    float: left;
    line-height: 1;
    margin-right: 0.15em;
    margin-top: 0.05em;
    font-family: 'Outfit', sans-serif;
}

.article-highlight {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 242, 254, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-main);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-link:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary);
    transform: translateX(-4px);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--border);
}

@media (max-width: 600px) {
    .article-content p:first-child::first-letter {
        font-size: 2.8rem;
    }

    .article-highlight {
        padding: 0.8rem 1rem;
    }
}

/* ═══════════════════════════════════════════
   Privacy Policy Page
═══════════════════════════════════════════ */
.legal-content {
    padding: clamp(5rem, 10vw, 8rem) 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin: 2.5rem 0 1rem;
    color: var(--primary);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   About Page
═══════════════════════════════════════════ */
.about-content {
    padding: clamp(5rem, 10vw, 8rem) 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
}

.about-content>p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.8;
}

.about-content h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.mission-box {
    background: var(--bg-card);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-md);
    border: var(--border);
    margin: 4rem 0;
    position: relative;
}

.mission-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
}

.mission-box--highlight {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

/* Shared: footer link colour (used in about & privacy footers) */
.footer-home-link {
    color: var(--primary);
}

/* Shared: compact nav button */
.btn-nav {
    padding: 0.6rem 1.5rem;
}

/* Shared: flat footer-bottom (no top margin / border) */
.footer-bottom--flat {
    margin-top: 0;
    border: none;
}