@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Premium Professional SaaS Theme (Slate/Navy) */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --bg-surface: #1e293b;
    /* Slate 800 */

    /* Elegant Accents */
    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --accent: #8b5cf6;
    /* Violet 500 */
    --accent-2: #0ea5e9;
    /* Sky 500 */

    /* UI States */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(59, 130, 246, 0.08);

    /* Typography */
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    /* Brighter for clear text */

    /* Fonts */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Removed noise texture for a cleaner, polished look */
}

/* =========================================
   DYNAMIC BACKGROUND ORBS (Subtle)
   ========================================= */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    /* Extremely subtle to keep the text clear */
    animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

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

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   PREMIUM GLASSMORPHISM
   ========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* =========================================
   3D TILT CARDS
   ========================================= */
.tilt-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px var(--glass-glow);
    z-index: 10;
}

/* The inner content pops out slightly in 3D */
.tilt-card-content {
    transform: translateZ(20px);
    will-change: transform;
}

/* Glare effect applied by VanillaTilt */
.js-tilt-glare {
    border-radius: 16px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* =========================================
   PROFILE DROPDOWN
   ========================================= */
.profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    object-fit: cover;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar:hover {
    border-color: var(--primary);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.profile-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    display: block !important;
}

.dropdown-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.dropdown-header h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.dropdown-status {
    margin-bottom: 1rem;
}

.dropdown-limits ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-limits ul li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-limits ul li strong {
    color: white;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible !important;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* =========================================
   SECTIONS & GRIDS
   ========================================= */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =========================================
   HERO ANIMATIONS
   ========================================= */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 0.9;
    position: relative;
}

/* Staggered entrance animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

/* =========================================
   MOCKUP & SPECIFICS
   ========================================= */
.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-body {
    padding: 1rem;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mockup-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mockup-progress::after {
    content: '';
    display: block;
    width: 70%;
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}

.mockup-button {
    width: 60%;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 4px;
}

.page-header {
    padding-top: 8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

/* Dashboard Cards */
.feature-card {
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: white;
}

.icon-wrap {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    padding: 1.5rem;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.sidebar-user {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.main-content {
    flex-grow: 1;
}

/* Pricing */
.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card .tier {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.pricing-card .price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.pro-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Features List */
.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Limits Banner */
.limits-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

/* Utilities */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.d-none, .hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    /* Don't hide nav-links, flex them differently or allow scroll, however hiding might be necessary if no hamburger menu exists. We'll keep essential links and profile */
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Force grids to 1 column on mobile */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    /* Stack input groups that are placed side by side */
    form .grid {
        gap: 1rem;
    }

    /* Fix dropdowns on mobile */
    .profile-dropdown {
        width: 100%;
        right: auto;
        left: 0;
        top: 65px;
        transform: translateY(-5px);
    }

    .orb {
        display: none;
    }
}

/* Tool container layouts */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.bank-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin: 2rem 0;
    font-family: monospace;
}

.upgrade-box {
    max-width: 500px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
}