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

:root {
    /* Modern Color Palette - HSL for flexibility */
    --hue-primary: 216;
    --hue-secondary: 27;

    --primary-color: hsl(var(--hue-primary), 90%, 45%);
    /* #0B63E4 */
    --primary-dark: hsl(var(--hue-primary), 90%, 35%);
    /* #094BB3 */
    --primary-light: hsl(var(--hue-primary), 85%, 96%);
    /* #EFF5FF */

    --secondary-color: hsl(var(--hue-secondary), 98%, 54%);
    /* #FD7E14 */
    --secondary-dark: hsl(var(--hue-secondary), 100%, 45%);
    /* #E66400 */

    --text-main: hsl(220, 15%, 15%);
    /* #20242D */
    --text-body: hsl(220, 10%, 40%);
    /* #5C6270 */
    --text-muted: hsl(220, 10%, 65%);
    /* #9CA3AF */

    --bg-body: hsl(220, 20%, 98%);
    /* #F8F9FA */
    --bg-white: #FFFFFF;

    --border-color: hsl(220, 15%, 90%);

    /* Modern Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 99, 228, 0.05);
    --shadow-md: 0 8px 16px rgba(11, 99, 228, 0.08);
    --shadow-lg: 0 16px 32px rgba(11, 99, 228, 0.12);
    --shadow-hover: 0 20px 40px rgba(11, 99, 228, 0.18);

    /* Spacing & Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.25;
}

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

/* --- Header & Glassmorphism --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
    position: relative;
}

nav a:not(.nav-cta):hover {
    color: var(--primary-color);
}

nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white) !important;
    padding: 0.6rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.25);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 126, 20, 0.35);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 9rem 0 7rem;
    background: linear-gradient(145deg, var(--primary-color) 0%, #004BC9 100%);
    color: var(--bg-white);
    overflow: hidden;
    text-align: center;
}

/* Animated Background Shapes */
.hero-shapes span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 4px;
}

.hero-shapes span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.hero-shapes span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.hero-shapes span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.hero-shapes span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.hero-shapes span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.hero-shapes span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--bg-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--secondary-color);
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    padding: 1.1rem 3.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(253, 126, 20, 0.5);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(253, 126, 20, 0.6);
}

/* --- Sections & Components --- */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-white);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--text-main);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

/* Modern Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card h3 i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 10px;
}

.card p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Feature Boxes */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    /* Stacked layout for modern look */
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary-color);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Test Sections */
.test-section {
    background: var(--bg-white);
    border-top: 4px solid var(--primary-color);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.test-section h3 {
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-section ul {
    margin: 1.5rem 0 0 1.5rem;
    color: var(--text-body);
}

.test-section li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.highlight-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Tips List */
.tips-list {
    list-style: none;
    counter-reset: tips-counter;
}

.tips-list li {
    counter-increment: tips-counter;
    background: var(--bg-white);
    padding: 2rem 2rem 2rem 5.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.tips-list li:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--secondary-color);
}

.tips-list li::before {
    content: counter(tips-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--shadow-md);
}

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

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #0F172A;
    /* Slate 900 */
    color: #94A3B8;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
}

.footer-section a {
    color: #94A3B8;
    display: block;
    margin-bottom: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    background: #25D366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 990;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1) rotate(15deg);
}

.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 990;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 6rem;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2.5rem;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.15rem;
    }

    .nav-cta {
        margin-top: 2rem;
        display: block;
        text-align: center;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

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