/* ============================================
   Pest Analytics Landing Page Styles
   Color palette based on PCOB brand with 
   subtle tech evolution
   ============================================ */

/* CSS Custom Properties */
:root {
    /* PCOB Brand Colors */
    --pco-red: #B42025;
    --pco-red-dark: #8F1A1E;
    --pco-red-light: #D02A2E;

    /* Extended Palette - Slightly Techy Evolution */
    --dark: #1A1A1A;
    --dark-soft: #2D2D2D;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-red: linear-gradient(135deg, var(--pco-red-light) 0%, var(--pco-red) 50%, var(--pco-red-dark) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--gray-900) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(180, 32, 37, 0.05) 0%, rgba(180, 32, 37, 0.02) 100%);

    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(180, 32, 37, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--gray-600);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 126px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--pco-red);
    background: var(--gray-100);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 4px 20px rgba(180, 32, 37, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(180, 32, 37, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-light {
    background: var(--white);
    color: var(--pco-red);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 32, 37, 0.06) 0%, transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 32, 37, 0.04) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 36px;
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.card-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: 5%;
    animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(180, 32, 37, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 16px;
    color: var(--pco-red);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(180, 32, 37, 0.15);
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: 24px;
}

.footer-logo img {
    height: 48px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header .container {
        height: 64px;
    }

    .logo img {
        height: 36px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}