:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #00cc99;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-content .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Section General */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Story Section */
#story {
    background-color: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Services Section */
#services {
    background-color: var(--bg-light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.plan-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li i {
    color: var(--secondary-color);
}

.plan-card button {
    width: 100%;
}

/* Payment Section */
#payment {
    background-color: var(--white);
}

.payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.payment-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.payment-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

.payment-form-container {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Navigation/Header tweaks */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links li a {
    padding: 8px 6px;
    display: inline-block;
    border-radius: 6px;
}

.nav-links li a:hover {
    background-color: rgba(0,102,204,0.06);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
}

nav ul.active {
    display: block;
}

/* Hero */
header.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 6rem 0;
}

.hero-content {
    text-align: left;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.92);
}

.hero-content .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Story */
.story-section {
    background-color: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.story-content h2 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.stat-item {
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 90px;
}

.stat-item h3 { color: var(--primary-color); }

/* Plans */
.plans-section { background: var(--bg-light); }
.plans-grid { margin-top: 1.5rem; }

/* Payment */
.payment-wrapper { display: grid; grid-template-columns: 1fr 420px; gap: 2rem; }
.payment-form-container { padding: 1.5rem; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 2000; }
.modal .modal-content { background: var(--white); padding: 2rem; border-radius: 12px; max-width: 520px; width: 90%; text-align: center; }
.modal .success-icon { color: var(--primary-color); font-size: 3rem; margin-bottom: 0.5rem; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .container { padding: 0 18px; }
    .hero-content h1 { font-size: 2rem; }
    .payment-wrapper { grid-template-columns: 1fr; }
    .story-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 12px 20px; border-bottom: 1px solid var(--border-color); }
    .nav-links li { padding: 8px 0; }
    .hamburger { display: block; }
    header.hero { padding: 4rem 0; }
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.4rem; }
    .logo { font-size: 1.05rem; }
}

/* Small visual niceties */
.highlight { color: var(--secondary-color); }

.btn { font-family: inherit; }

/* Utility */
.text-center { text-align: center; }

/* About page hero with AI-image background */
.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
}

.about-hero .container { max-width: 1000px; }
.about-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.about-hero p { font-size: 1rem; color: rgba(255,255,255,0.92); margin-bottom: 1rem; }

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-member img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }
.team-member h4 { margin-bottom: 0.25rem; }
.team-member p { color: var(--text-light); font-size: 0.95rem; }

/* FAQ */
.faq { margin-top: 1.5rem; }
.faq-item { background: var(--white); padding: 1rem; border-radius: 8px; margin-bottom: 0.75rem; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.faq-item h4 { margin-bottom: 0.5rem; }

/* Canvas background styles */
#net-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* Ensure page content sits above the canvas */
header, main, section, nav, footer, .container, .hero, .about-hero {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    #net-canvas { display: none; }
}



.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #999;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: #999;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.modal h2 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.modal p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.modal button {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .payment-wrapper {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: none;
    }
    
    .plan-card.popular:hover {
        transform: translateY(-10px);
    }
}