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

:root {
    /* Color Palette - Premium Slate & Indigo */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-soft: #1e293b;
    /* Slate 800 */
    --secondary-color: #6366f1;
    /* Indigo 500 */
    --secondary-hover: #4f46e5;
    /* Indigo 600 */
    --accent-color: #8b5cf6;
    /* Violet 500 */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);

    --bg-main: #f8fafc;
    /* Slate 50 */
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    /* Slate 600 - better contrast */
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Layout */
    --header-height: 90px;
    --container-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    font-size: 1.125rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* Ensure all text on dark backgrounds is white */
.hero p,
.hero h1,
.hero h2,
.hero h3,
[style*="background: var(--primary-color)"] h1,
[style*="background: var(--primary-color)"] h2,
[style*="background: var(--primary-color)"] p,
[style*="background: var(--primary-gradient)"] h2,
[style*="background: var(--primary-gradient)"] p {
    color: #ffffff;
}

/* Section titles always visible */
.section-title h2 {
    color: var(--primary-color);
}

.section-title p {
    color: var(--text-muted);
}

/* Service cards text */
.service-card h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
}

/* Plan cards text */
.plan-card h3 {
    color: var(--primary-color);
}

.plan-card p {
    color: var(--text-muted);
}

/* Testimonial text */
.testimonial-text {
    color: var(--primary-color);
}

/* FAQ text */
.faq-question span {
    color: var(--primary-color);
}

.faq-answer p {
    color: var(--text-muted);
}

/* Contact card white text */
.contact-card,
.contact-card h2,
.contact-card h4,
.contact-card p {
    color: #ffffff;
}

.contact-card p {
    opacity: 0.85;
}

/* Footer text */
.footer-about p {
    color: rgba(255,255,255,0.75);
}

.footer-links ul li a {
    color: rgba(255,255,255,0.75);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

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

.section-padding {
    padding: 120px 0;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 10px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

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

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

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

.btn-white:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

header.scrolled {
    height: 75px;
    box-shadow: var(--glass-shadow);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-15deg);
    display: inline-block;
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    opacity: 0.8;
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

.mobile-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: var(--primary-color);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: 2;
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.4);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    color: #ffffff;
    max-width: 700px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    opacity: 1;
}

.hero-btns {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Trust Bar / Stats */
.trust-bar {
    background: var(--bg-white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: -100px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-item {
    text-align: center;
    padding: 0 20px;
}

.trust-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.trust-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.trust-item p {
    font-size: 0.95rem;
}

/* Services / Features */
.section-title {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.features-image-container {
    position: relative;
}

.features-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.plan-card {
    background: var(--bg-white);
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--secondary-color);
    position: relative;
    transform: scale(1.05);
    z-index: 5;
    box-shadow: var(--shadow-xl);
}

.plan-card.featured .popular-tag {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.plan-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.plan-price span {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.plan-features {
    margin: 2rem 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.plan-features i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 10rem;
    color: rgba(99, 102, 241, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.testimonial-user img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary-color);
}

.faq-question {
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 35px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    padding-bottom: 30px;
    max-height: 300px;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-card {
    background: var(--primary-gradient);
    color: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-card h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-form-card {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 120px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 1.25rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}