/* Landing Page Styles - Wisconsin Green & Gold Theme */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --accent: #FFB612;
    --accent-light: #FFCB47;
    --success: #40916c;
    --danger: #c1121f;
    --gray-50: #f9faf9;
    --gray-100: #f3f4f3;
    --gray-200: #e5e7e5;
    --gray-300: #d1d5d1;
    --gray-400: #9ca39c;
    --gray-500: #6b726b;
    --gray-600: #4b554b;
    --gray-700: #374137;
    --gray-800: #1f291f;
    --gray-900: #111811;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-login {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.nav-link-login:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px;
    background: linear-gradient(135deg, #f8faf8 0%, var(--white) 50%, #fdfdf8 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 620px;
    padding: 80px 24px 80px 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-highlight {
    color: var(--primary);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(212, 164, 24, 0.3);
    z-index: -1;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Code Animation Container */
.code-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

#codeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Force GPU layer to prevent Chrome throttling */
    will-change: contents;
    transform: translateZ(0);
}

.code-items-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 106, 79, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--gray-50);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Features Section - Animated Grid */
.features {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3px;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered animation delays */
.feature-card[data-index="0"] { transition-delay: 0s; }
.feature-card[data-index="1"] { transition-delay: 0.1s; }
.feature-card[data-index="2"] { transition-delay: 0.2s; }
.feature-card[data-index="3"] { transition-delay: 0.3s; }
.feature-card[data-index="4"] { transition-delay: 0.4s; }
.feature-card[data-index="5"] { transition-delay: 0.5s; }

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card-inner {
    background: var(--white);
    border-radius: 17px;
    padding: 32px 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle shimmer effect on the gradient border */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.feature-card:hover .feature-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.feature-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
    opacity: 0.7;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card-inner {
        padding: 24px 20px;
    }
}

/* Trust Section */
.trust {
    padding: 120px 0;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    position: relative;
    overflow: hidden;
}

/* Wisconsin State Silhouette - background (hidden, using visual instead) */
.wisconsin-silhouette {
    display: none;
}

/* Wisconsin Visual - replaces code preview */
.trust-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.wisconsin-visual {
    width: 100%;
    max-width: 500px;
    height: auto;
    fill: rgba(255, 255, 255, 0.15);
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

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

.trust-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.trust-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.8;
}

.trust-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Code Preview Visual */
.code-preview {
    background: #1f291f;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.code-preview-header {
    background: #2a382a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.code-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
}

.code-preview-dot:first-child { background: #c1121f; }
.code-preview-dot:nth-child(2) { background: #d4a418; }
.code-preview-dot:nth-child(3) { background: #40916c; }

.code-preview-content {
    padding: 24px;
}

.code-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9rem;
}

.code-line:last-child {
    margin-bottom: 0;
}

.code-line.passed {
    background: rgba(64, 145, 108, 0.15);
}

.code-line.failed {
    background: rgba(193, 18, 31, 0.15);
}

.code-line.na {
    background: rgba(156, 163, 156, 0.15);
}

.code-ref {
    color: rgba(255, 255, 255, 0.7);
}

.code-status {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.passed .code-status {
    color: #52b788;
    background: rgba(64, 145, 108, 0.2);
}

.failed .code-status {
    color: #e5383b;
    background: rgba(193, 18, 31, 0.2);
}

.na .code-status {
    color: var(--gray-400);
    background: rgba(156, 163, 156, 0.2);
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--white);
}

.how-it-works .section-title,
.how-it-works .section-subtitle {
    text-align: center;
}

.how-it-works .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

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

.demo-item-reverse {
    direction: rtl;
}

.demo-item-reverse > * {
    direction: ltr;
}

.demo-video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: var(--gray-900);
    border: 1px solid var(--gray-200);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
}

.demo-content {
    padding: 20px 0;
}

.demo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.demo-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .demo-item,
    .demo-item-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

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

@media (max-width: 768px) {
    .how-it-works {
        padding: 80px 0;
    }

    .demo-grid {
        gap: 60px;
    }

    .demo-title {
        font-size: 1.5rem;
    }

    .demo-desc {
        font-size: 1rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
    background: #f8faf8;
}

.pricing .section-subtitle {
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    border: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(45, 106, 79, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    opacity: 0.2;
}

.pricing-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 9px;
    border-bottom: 2px solid var(--success);
    border-right: 2px solid var(--success);
}

.pricing-card .btn {
    width: 100%;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #E5A410 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta .btn-primary {
    background: var(--primary-dark);
    color: var(--white);
}

.cta .btn-primary:hover {
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--primary-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding: 60px 24px;
        max-width: 100%;
    }

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

    .code-items-overlay {
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 70%, transparent 100%);
    }

    .trust-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .trust-visual {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link:not(.nav-link-login) {
        display: none;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

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

    .trust-stats {
        flex-direction: column;
        gap: 24px;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

/* Animation classes for code items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
