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

:root {
    --primary: #0F172A;
    --action: #2563EB;
    --action-hover: #1D4ED8;
    --secondary: #64748B;
    --accent: #EEF2FF;
    --white: #FFFFFF;
    --dark: #020617;
    --text: #1E293B;
    --text-light: #475569;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: #FAFAFA;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* Glassmorphism */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--action) 0%, var(--action-hover) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.6);
}

/* 3D Hover Cards */
.card-3d {
    transition: var(--transition);
    border-radius: 1.5rem;
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #F1F5F9;
    position: relative;
    overflow: hidden;
}

.card-3d:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--action);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span {
    background: linear-gradient(to right, var(--action), #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--action);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--action);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at 80% 20%, #E0E7FF 0%, #FAFAFA 50%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-content .btn-group {
        justify-content: center;
    }
}

/* Long-form Content Design */
main {
    max-width: 850px;
    margin: 0 auto;
}

main h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--action) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main h2 {
    font-size: 2.25rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--action);
    border-radius: 2px;
}

main h3 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

main p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2rem;
}

main ul:not(.nav-links) {
    margin-bottom: 3rem;
}

main ul:not(.nav-links) li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

main ul:not(.nav-links) li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--action);
}

/* Enhanced Callouts */
.technical-insider {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-left: 6px solid var(--action);
    padding: 2.5rem;
    border-radius: 1rem;
    margin: 4rem 0;
    box-shadow: var(--shadow-sm);
}

.technical-insider h4 {
    color: var(--action);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pro-tip {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pro-tip i {
    color: #D97706;
    font-size: 1.5rem;
}

/* Sidebar Styling */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    margin-top: 4rem;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 4rem;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--action);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Form Styles */
input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--action);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Banner */
.mobile-call-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-call-banner {
        display: block;
    }
    main h1 { font-size: 2.5rem; }
    main h2 { font-size: 1.75rem; }
}
