/* Modern Agency Style for PEN Landing Page */
:root {
    --primary: #0047AB; /* Deep Blue from Grita Logo */
    --secondary: #00A859; /* Green from Grita Logo */
    --accent: #FFCC00; /* Yellow from Grita Logo */
    --red: #FF3B30;
    --dark: #0A0A0A;
    --text: #333333;
    --light: #F4F6F9;
    --navy: #12213a;
    --white: #FFFFFF;
    
    /* Gradients & Glass */
    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 30px rgba(0, 71, 171, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 168, 89, 0.15);
}

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

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

h1, h2, h3, h4, .brand-text {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 120px 0; }
.bg-light { background-color: var(--light); }

/* Typography & Utilities */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.highlight-red { color: var(--red); }
.text-center { text-align: center; }

/* === HEADER === */
#main-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.logo-group {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; cursor: pointer;
}

.brand-text {
    font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -1px;
}
.brand-text.white { color: var(--white); }

nav ul { list-style: none; display: flex; align-items: center; gap: 2.5rem; margin: 0; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--primary); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700;
    text-decoration: none; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    cursor: pointer; font-family: 'Outfit', sans-serif;
}
.btn-primary { background: var(--primary); color: var(--white); border: none; box-shadow: 0 10px 20px rgba(0, 71, 171, 0.3); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(0, 71, 171, 0.4); }
.btn-text { background: transparent; color: var(--primary); padding-left: 1rem; }
.btn-text:hover { color: var(--dark); transform: translateX(5px); }

.btn-nav { background: var(--secondary); color: white; padding: 0.6rem 1.5rem; border-radius: 50px; }
.btn-nav:hover { background: var(--primary); color: white; }

.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,255,255,0.4); }
.btn-outline-light { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }

/* === HERO SPLIT LAYOUT === */
#hero.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, rgba(244,246,249,0.5) 0%, rgba(255,255,255,1) 100%);
    position: relative;
    overflow: hidden;
}

#hero.hero-split::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 89, 0.05) 0%, rgba(0, 168, 89, 0) 70%);
    top: -200px; right: -100px; border-radius: 50%; z-index: 0;
}

#hero.hero-split::after {
    content: ''; position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.05) 0%, rgba(0, 71, 171, 0) 70%);
    bottom: -300px; left: -200px; border-radius: 50%; z-index: 0;
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.badge {
    display: inline-block; padding: 6px 12px; background: rgba(0, 71, 171, 0.1);
    color: var(--primary); font-size: 0.8rem; font-weight: 800; letter-spacing: 2px;
    border-radius: 4px; margin-bottom: 1.5rem;
}

.hero-content h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -2px; }
.hero-content p { font-size: 1.25rem; color: #555; margin-bottom: 2.5rem; max-width: 90%; font-weight: 400; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-visual {
    position: relative; display: flex; justify-content: center; align-items: center;
    animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.floating-img {
    max-width: 100%; height: auto; border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 71, 171, 0.15);
    animation: float 6s ease-in-out infinite; transform-origin: center center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}



/* === SECTIONS GENERAL === */
.section-badge {
    font-size: 0.8rem; font-weight: 800; color: var(--secondary);
    letter-spacing: 3px; display: block; margin-bottom: 1rem; text-transform: uppercase;
}

section h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -1px; }
.section-lead { font-size: 1.2rem; color: #666; max-width: 700px; margin-bottom: 4rem; }

/* === DIAGNOSTIC GRID === */
.grid-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem;
}

.card {
    background: var(--white); border: 1px solid #EAEAEA;
    padding: 3rem 2.5rem; border-radius: 20px;
    transition: all 0.3s ease; box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--secondary);
}

.card-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.card h3 { font-size: 1.4rem; margin-bottom: 1rem; font-weight: 700; color: var(--primary); }
.card p { color: #555; font-size: 1rem; line-height: 1.7; }

/* === TRANSITION BANNER === */
.transition-banner {
    background: var(--dark); color: var(--white); padding: 80px 0;
    background-image: radial-gradient(circle at center, rgba(0, 168, 89, 0.15) 0%, transparent 70%);
}

.transition-banner h3 {
    color: var(--white); font-size: 2rem; font-weight: 400; line-height: 1.4; max-width: 800px; margin: 0 auto;
}
.transition-banner strong { color: var(--accent); font-weight: 800; }

/* === PILLARS === */
.pillars-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0rem 4rem;
}

.pillar-col { display: flex; flex-direction: column; gap: 1.5rem; }

.pillar-row {
    background: var(--white); padding: 1.2rem 1.5rem; border-radius: 12px;
    display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid transparent;
    transition: all 0.2s;
}

.pillar-row:hover { border-color: var(--primary); transform: scale(1.02); }

.pillar-row span {
    background: var(--gradient-brand); color: white; width: 36px; height: 36px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 8px; font-weight: 800; font-size: 1rem; flex-shrink: 0;
}

/* === FINAL CTA === */
.final-cta { padding: 0 0 100px 0; margin-top: -50px; }

.cta-box {
    background: var(--gradient-brand); border-radius: 30px;
    padding: 6rem 4rem; text-align: center; color: white;
    box-shadow: 0 20px 50px rgba(0, 71, 171, 0.3); position: relative; overflow: hidden;
}

.cta-box h2 { font-size: 3.5rem; color: white; margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 3rem auto; line-height: 1.6; }
.cta-actions { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

/* === FOOTER === */
#main-footer { background: var(--dark); color: #888; padding: 60px 0 40px; }

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: #BBB; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 0.9rem; margin-top: 2rem; text-align: center; }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .pillars-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding-bottom: 60px; }
    .hero-content p { margin: 0 auto 2.5rem auto; }
    .hero-actions { justify-content: center; }
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 3rem; }
    section h2 { font-size: 2.5rem; }
    .cta-box h2 { font-size: 2.5rem; }
    .cta-box { padding: 4rem 2rem; }
}
