/* 
   Wisewand Promo - Premium Mobile-First Stylesheet
   Version: 2.0.0 (2026 Revision)
*/

:root {
    /* Color Palette - Deeper & More Vibrant */
    --bg-color: #0d1117;
    --bg-glass: rgba(13, 17, 23, 0.85);
    --text-color: #e6edf3;
    --text-muted: #8b949e;

    --accent-primary: #58a6ff;
    /* Wisewand Blue */
    --accent-secondary: #bc8cff;
    /* Magic Purple */
    --accent-success: #3fb950;
    --accent-warning: #d29922;

    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(240, 246, 252, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-family: 'Inter', -apple-system, system-ui, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-active {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: 2.25rem;
    /* Mobile Size */
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Header & Navigation - Mobile First */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Menu Toggle --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X animation */
.mobile-menu-active .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav Links - Mobile First (Off-canvas) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
}

.mobile-menu-active .nav-links {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.lang-selector {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* Buttons - Clickable & Large for Mobile */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    width: 100%;
    /* Full width on mobile */
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* Sections */
section {
    padding: 3rem 0;
}

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero p {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 1.5rem auto;
}

/* Comparison Tables - Scrollable on Mobile */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    /* Adjusted for better mobile fit */
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-primary);
}

/* Cards & Grids */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-primary);
}

/* Language Selector - Minimalist for Mobile */
.lang-selector {
    background: var(--glass-border);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
}

/* --- Responsive Breakpoints (Desktop) --- */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .btn {
        width: auto;
        margin-right: 1rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        gap: 2rem;
        border: none;
        transition: none;
    }

    .nav-links a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .nav-links a:hover {
        color: var(--accent-primary);
    }

    .lang-selector {
        margin-top: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}