/* 
  Efetiva - Landing Page Styles 
  Theme: Apple-style Minimalist, Glassmorphism
  Colors: Primary #1D3557, Secondary #457B9D, Highlight #E63946
*/

:root {
    /* Brand Colors */
    --color-primary: #1D3557;
    --color-secondary: #457B9D;
    --color-highlight: #E63946;

    /* Neutrals */
    --color-bg: #F5F5F7;
    /* Apple-ish light gray background */
    --color-text-main: #1D1D1F;
    --color-text-secondary: #86868B;
    --color-white: #FFFFFF;
    --color-glass: rgba(255, 255, 255, 0.65);

    /* Dimensions & Spacing */
    --container-width: 1200px;
    --header-height: 60px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;

    /* Glassmorphism */
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-blur: blur(20px);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: var(--color-primary);
    font-weight: 600;
    /* Apple tends to use semi-bold, not heavy bold */
    letter-spacing: -0.02em;
}

h1.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

p {
    color: var(--color-text-main);
    opacity: 0.9;
}

.highlight-text {
    color: var(--color-highlight);
    -webkit-text-fill-color: var(--color-highlight);
    /* Override gradient for this part */
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.full-width {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    /* Pill shape */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.3);
}

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

.btn-secondary:hover {
    color: var(--color-secondary);
    background-color: rgba(69, 123, 157, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.link-secondary {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.link-secondary:hover {
    text-decoration: underline;
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    /* background: url('../assets/images/hero-bg-blob.svg') no-repeat center/contain; */
    /* Optional blob bg */
}

.float-card {
    position: absolute;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: var(--border-radius-md);
    width: 240px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 5%;
    left: -10%;
    animation-delay: 0s;
    transform: scale(0.9);
}

.card-2 {
    top: 25%;
    right: -15%;
    animation-delay: 2s;
    z-index: 2;
    transform: scale(1.1);
}

.card-3 {
    bottom: 5%;
    left: 0%;
    animation-delay: 4s;
    transform: scale(0.95);
}

.card-4 {
    top: 15%;
    right: 15%;
    animation-delay: 1.5s;
    transform: scale(0.85);
    opacity: 0.9;
}

.card-5 {
    bottom: 15%;
    right: 5%;
    animation-delay: 3s;
    transform: scale(0.9);
    opacity: 0.95;
}

.card-6 {
    top: -5%;
    left: 40%;
    animation-delay: 1s;
    transform: scale(0.75);
    opacity: 0.8;
    z-index: 0;
}

.card-7 {
    bottom: -5%;
    right: 40%;
    animation-delay: 2.5s;
    transform: scale(0.8);
    opacity: 0.85;
}

.card-8 {
    top: 45%;
    left: -20%;
    animation-delay: 3.5s;
    transform: scale(0.7);
    opacity: 0.75;
    z-index: 0;
}

.card-9 {
    top: 55%;
    right: -20%;
    animation-delay: 0.5s;
    transform: scale(0.75);
    opacity: 0.7;
    z-index: 0;
}

.card-10 {
    top: 35%;
    left: 30%;
    animation-delay: 4.5s;
    transform: scale(0.7);
    opacity: 0.6;
    z-index: -1;
}

.card-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-weight: 600;
    color: var(--color-primary);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Glassmorphism Classes */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.bg-light {
    background-color: #FFFFFF;
}

.bg-dark {
    background-color: #000000;
    color: #FFFFFF;
}

/* Apple dark sections are usually pure black */

/* Features Grid */
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Target Audience */
.target-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-icon {
    color: var(--color-white);
    background: var(--color-secondary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.benefit-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-highlight);
    margin-bottom: -1rem;
    z-index: 0;
    position: relative;
}

.step h4 {
    color: #fff;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.step p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.highlight-card {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    position: relative;
}

.highlight-card:hover {
    transform: scale(1.08) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-highlight);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-desc {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.plan-features li::before {
    content: "•";
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

/* Testimonials */
.testimonial-slider blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: var(--color-primary);
}

.testimonial-slider cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-style: normal;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: inherit;
}

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

/* Animation - Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {

    .hero-container,
    .grid-2,
    .benefits-grid,
    .steps-container,
    .pricing-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .header-actions {
        display: none;
        /* Simplify for mobile for now */
    }

    .hero-visual {
        display: block;
        /* Show on mobile below text */
        height: 350px;
        margin-top: 3rem;
        transform: scale(0.65);
        transform-origin: top center;
        /* Ensure it doesn't cause horizontal scroll, though parent overflow-hidden handles this */
        width: 100%;
    }

    .highlight-card {
        transform: scale(1);
    }

    .highlight-card:hover {
        transform: translateY(-5px);
    }
}

/* Compliance Section Specifics */
#compliance p {
    font-size: 0.85rem;
    max-width: 700px;
    margin: 0.5rem auto 0;
    opacity: 0.7;
}

/* Sticky Scroll Section */
.scroll-pin-section {
    height: 400vh;
    position: relative;
    padding: 0;
    /* Light background as requested */
    background: #FFFFFF;
}

/* Subtle glow behind step for light mode - warm/soft */
.scroll-pin-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(69, 123, 157, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pin-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.pin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pin-steps-container {
    position: relative;
    width: 600px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.pin-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(50px);
    opacity: 0;
    text-align: center;
    transition: all 0.6s ease-out;
    width: 100%;
}

.pin-step.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.pin-step.prev {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-50px);
}

.pin-step .step-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-highlight);
    opacity: 0.35;
    margin-bottom: -1.5rem;
    display: block;
}

.pin-step h4 {
    font-size: 2.5rem;
    /* Primary color for text */
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.pin-step p {
    font-size: 1.25rem;
    /* Secondary text color */
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.step-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pin-step.active .step-arrow {
    opacity: 0.6;
    transform: translateY(0);
    transition-delay: 2s;
    /* 2 seconds delay after text appears */
    animation: bounce 2s infinite 2.5s;
    /* Start bouncing after it appears */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Infinite Marquee */
.overflow-hidden {
    overflow-x: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    /* Fade masks on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
    /* Pause on hover for readability */
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white !important;
    /* Override glass slightly for better readability on light bg or keep glass if preferred */
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    font-style: normal;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }

    /* Move half way (since duplicate content) minus gap adjustment */
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-control {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}