/* ==========================================================================
   SHORTSFLOW ENTERPRISE DESIGN SYSTEM v2.0
   Theme: "Midnight Glass"
   ========================================================================== */

:root {
    /* --- Core Palette (Obsidian & Neon) --- */
    --color-bg-base: #000000;
    /* True Black */
    --color-bg-surface: #0a0a0a;
    /* Obsidian */
    --color-bg-glass: rgba(20, 20, 20, 0.6);

    /* --- Neon Accents --- */
    --color-primary: #6366f1;
    /* Indigo 500 */
    --color-primary-glow: #818cf8;
    /* Indigo 400 */
    --color-accent: #d946ef;
    /* Fuchsia 500 */

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    --gradient-text: linear-gradient(to right, #ffffff 20%, #a5b4fc 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 60%);

    /* --- Text Colors --- */
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-text-accent: #a5b4fc;

    /* --- Borders & Spotlight --- */
    --border-base: 1px solid rgba(255, 255, 255, 0.08);
    --border-highlight: 1px solid rgba(255, 255, 255, 0.15);
    --spotlight-color: rgba(255, 255, 255, 0.08);

    /* --- Effects --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    --glow-card: 0 0 40px -10px rgba(99, 102, 241, 0.2);
    --backdrop-blur: blur(16px);
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");

    /* --- Typography --- */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
}

/* ==========================================================================
   GLOBAL RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

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

input {
    font-family: inherit;
}

/* =================================================================*********
   LAYOUT
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

/* =================================================================*********
   HEADER (Glassmorphism)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--border-glass);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-main);
}

#login-btn,
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#login-btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* =================================================================*********
   HERO SECTION
   ========================================================================== */
.hub-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

/* Glow behind text */
.hub-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================*********
   GRID & CARDS
   ========================================================================== */
.section-header {
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ==========================================================================
   SPOTLIGHT CARD EFFECT
   ========================================================================== */
.tool-card,
.pricing-card,
.feature-card {
    background: var(--color-bg-surface);
    border: var(--border-base);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Spotlight Overlay */
.tool-card::before,
.pricing-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            var(--spotlight-color),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Hover State */
.tool-card:hover,
.pricing-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--glow-card);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-card:hover::before,
.pricing-card:hover::before,
.feature-card:hover::before {
    opacity: 1;
}

/* Card Content (z-index fix) */
.tool-icon,
.tool-title,
.tool-desc,
.tool-link,
.tool-badge,
.plan-name,
.plan-price,
.plan-features,
.btn,
.pricing-header {
    position: relative;
    z-index: 2;
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary-glow);
    color: var(--color-primary-glow);
    transform: scale(1.05);
}

.tool-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary-glow);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.tool-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.tool-card:hover .tool-link {
    color: var(--color-primary-glow);
    opacity: 1;
}

/* ==========================================================================
   INPUTS & RESULTS (Tool Specific)
   ========================================================================== */
.tool-input-section {
    max-width: 600px;
    margin: 4rem auto 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.input-field {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg-surface);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-text-accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.results-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: var(--border-glass);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content {
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--color-text-accent);
    color: white;
}

/* =================================================================*********
   PRICING
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.pricing-card {
    background: var(--color-bg-surface);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 1px solid var(--color-text-accent);
    box-shadow: var(--shadow-glow);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.plan-price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.plan-features {
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.check-icon {
    margin-right: 0.5rem;
    color: var(--color-text-accent);
}

/* =================================================================*********
   FOOTER
   ========================================================================== */
.footer {
    border-top: var(--border-glass);
    padding: 4rem 0;
    margin-top: auto;
    background: rgba(2, 6, 23, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-links-title {
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--color-text-accent);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* =================================================================*********
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .hub-hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .header .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    /* Hide text links on mobile, keep CTA */
    #login-btn {
        display: block;
    }
}