/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #292929;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Colors */
:root {
    --kapay-green: hsl(158, 64%, 52%);
    --kapay-dark: #198754;
    --kapay-light: hsl(158, 64%, 75%);
    --kapay-green-50: hsl(158, 64%, 96%);
    --kapay-green-100: hsl(158, 64%, 89%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.75rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--kapay-green);
    color: white;
    border-color: var(--kapay-green);
}

.btn-primary:hover {
    background-color: var(--kapay-dark);
    border-color: var(--kapay-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 168, 83, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--kapay-green);
    border-color: var(--kapay-green);
}

.btn-outline:hover {
    background-color: var(--kapay-green);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--kapay-green);
    border-color: white;
}

.btn-white:hover {
    background-color: var(--kapay-green-50);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--kapay-green);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--kapay-dark);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kapay-green);
}

.nav-brand i {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--kapay-green);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-menu.mobile-open {
        position: static;
        flex-direction: row;
        border-top: none;
        padding: 0;
        gap: 2rem;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: #161C24;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: var(--kapay-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.security-badge i {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-green {
    color: var(--kapay-green);
}

.hero-description {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-image {
    animation: slideUp 0.6s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Animated Banner */
.animated-banner {
    background-color: var(--kapay-green);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.banner-content {
    display: flex;
    animation: scroll 30s linear infinite;
}

.banner-text {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0 2rem;
    min-width: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Statistics Section */
.statistics {
    padding: 5rem 0;
    background-color: #161c24;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--kapay-dark);
}

.section-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    grid-template-columns: 1fr;
    justify-content: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card, .pix-stat-number {
    text-align: center;
    background-color: var(--kapay-dark);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    width: 250px;
    color: #fff;
}

.stat-card:hover, .pix-stat-number:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* PIX API Section */
.pix-api {
    padding: 5rem 0;
    background: #161c24;
}

.pix-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
    color: #fff;
}

@media (min-width: 1024px) {
    .pix-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pix-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pix-icon {
    background-color: var(--kapay-green);
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-right: 1rem;
}

.pix-icon i {
    width: 32px;
    height: 32px;
}

.pix-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kapay-green);
}

.pix-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pix-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pix-stat {
    text-align: center;
}


.pix-stat p {
    font-size: 0.875rem;
    color: #6b7280;
}

.pix-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: #161c24;
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--kapay-green-50);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    background-color: var(--kapay-green);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon i {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Mobile App Section */
.mobile-app {
    padding: 5rem 0;
    background: var(--kapay-dark);
}

.app-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .app-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.app-description {
    font-size: 1.125rem;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .app-buttons {
        flex-direction: row;
    }
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    background-color: #374151;
}

.app-store-btn i {
    margin-right: 0.75rem;
    width: 24px;
    height: 24px;
}

.app-store-text-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.app-store-text-large {
    font-weight: 600;
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: white;
}

.faq-list {
    max-width: 64rem;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--kapay-green);
}

.faq-question i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--kapay-green), var(--kapay-dark));
}

.cta-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-brand {
        margin-bottom: 0;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kapay-green);
    margin-bottom: 1.5rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    max-width: 24rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--kapay-green);
}

.footer-social i {
    width: 24px;
    height: 24px;
}

.footer-column h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* 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);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: var(--kapay-green);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kapay-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .form-buttons {
        flex-direction: row;
    }
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: white;
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    animation: slideInRight 0.3s ease;
}

.success-message.show {
    display: block;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-content i {
    color: var(--kapay-green);
    width: 24px;
    height: 24px;
}

.success-content h3 {
    color: var(--kapay-green);
    font-size: 1rem;
    margin: 0;
}

.success-content p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--kapay-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .header,
    .modal,
    .success-message {
        display: none !important;
    }

    .hero {
        padding-top: 2rem;
    }
}