/* Base Styles */
:root {
    --primary: #001845;
    --primary-light: #002855;
    --primary-dark: #000f2e;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --white: #ffffff;
    --gray-25: #fcfcfd;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-25);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    min-height: 100vh;
}

/* Remove spacing between sections */
section {
    margin: 0;
    padding: 0;
}

main {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: var(--white);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 20ch;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 2rem;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--gray-900);
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-align: left;
}

p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1rem;
    max-width: 48ch;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn-pri::-moz-selection {
    background-color: var(--accent);
    color: white;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background-color: rgba(8, 35, 59, 0.05);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0.5rem 0.25rem;
    font-weight: 600;
    font-size: 0.925rem;
}

.btn-text:hover {
    color: var(--primary-light);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    height: 60px;
    flex-shrink: 0;
    animation: slideDown 0.6s ease-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 32px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(8%) sepia(43%) saturate(4997%) hue-rotate(226deg) brightness(95%) contrast(101%);
}


/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    flex: 1;
    padding: 2rem 0;
    margin: 0;
    min-height: 0;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.available-companies {
    margin-top: 2rem;
}

.companies-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.companies-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 50px;
    border: 1px solid var(--gray-100);
}

.company-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-200);
}

.company-logo img {
    max-width: 100%;
    max-height: 35px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.company-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 380px;
    max-height: 260px;
    overflow: hidden;
    transform: rotate(-2deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.card-header {
    display: flex;
    padding: 0.5rem 0.75rem;
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.card-content {
    padding: 1rem;
}

.transaction {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-right: 1rem;
    min-width: 100px;
}

.transaction-details {
    flex: 1;
}

.transaction-merchant {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.transaction-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e6f7ee;
    color: #059669;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.cta-section p {
    font-size: 1.25rem;
}

/* Partners Section */
.partners {
    padding: 2rem 0;
    background-color: var(--gray-25);
    text-align: center;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.partners-header {
    margin-bottom: 1.5rem;
}

.partners-header h2 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-size: 1.75rem;
}

.partners-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    border: 1px solid var(--gray-100);
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.partner-logo img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-25);
    flex-shrink: 0;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    transition: color 0.3s ease;
}


.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 600px;
    }

    .subtitle, h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle, .cta-section p {
        font-size: 1rem;
    }

    .header {
        margin-bottom: 0;
        padding: 0.75rem 1rem;
    }

    .hero {
        margin-bottom: 0;
        padding: 1.5rem 0;
        padding-bottom: 3rem;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .hero-visual {
        margin-bottom: 2rem;
    }

    .available-companies {
        margin-top: 1.5rem;
    }

    .companies-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .company-logo {
        padding: 0.875rem;
        min-height: 55px;
        border-radius: var(--radius-sm);
    }

    .company-logo img {
        max-height: 30px;
        width: auto;
        object-fit: contain;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-text {
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 0 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .legal-content {
        padding: 2rem 1rem;
    }

    .legal-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .legal-section {
        margin-bottom: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 24px;
    }
}
