/* 
  Opticash - Clean Fintech CSS 
  Inspired by Wise, LemFi, Raenest 
*/

:root {
    /* Colors - Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-accent: #E5FF4D;
    /* Vibrant Lime Green similar to Wise */

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-inverse: #FFFFFF;

    --accent-color: #004D40;
    /* Deep teal/green for contrast */
    --accent-hover: #00332A;

    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.2s ease-in-out;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 12px 24px -4px rgba(17, 24, 39, 0.08);
    /* Clean distinct shadow */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

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

.bg-light-gray {
    background-color: var(--bg-secondary);
}

.bg-accent {
    background-color: var(--bg-accent);
}

.text-dark {
    color: #111827 !important;
}

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

.text-accent-dark {
    color: var(--accent-color);
    font-weight: 600;
}

.border-top {
    border-top: 1px solid var(--border-light);
}

.border-radius-lg {
    border-radius: 24px;
}

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

.opacity-50 {
    opacity: 0.5;
}

/* Utilities */
.text-accent {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-dark,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 8px;
    /* Square edges typical of fintech */
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bg-accent);
    color: #111827;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: #D4FF00;
    /* slightly brighter */
    transform: translateY(-1px);
}

.btn-dark {
    background-color: #111827;
    color: var(--text-inverse);
    padding: 0.75rem 1.5rem;
}

.btn-dark:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-text {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-weight: 600;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    background: white;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.logo-img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 9rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Transfer Calculator (Replaces Trust Metrics) */
.transfer-calculator {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-light);
    max-width: 420px;
    margin-top: 2rem;
}

.calc-box {
    background: #F8FAFC;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.calc-box:focus-within {
    border-color: var(--accent-color);
    background: white;
}

.calc-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calc-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-input {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    width: 60%;
    outline: none;
}

.calc-input.highlight {
    color: #000;
}

.calc-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.calc-currency.selector {
    cursor: pointer;
}

.calc-currency.selector:hover {
    background: var(--bg-secondary);
}

.calc-details {
    padding: 1.25rem 0 1.25rem 1rem;
    position: relative;
}

.calc-details::before {
    content: '';
    position: absolute;
    left: 1.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-light);
    z-index: 0;
}

.calc-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.calc-row:last-child {
    margin-bottom: 0;
}

.calc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: var(--text-secondary);
}

.calc-icon svg {
    width: 14px;
    height: 14px;
}

.bg-light-green {
    background-color: #ECFCCB;
}

.calc-detail-label {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.calc-detail-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.calc-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.btn-block {
    background-color: #00A676;
    /* Matching the attached reference green */
    color: white;
    transition: background-color 0.2s;
}

.btn-block:hover {
    background-color: #008f65;
    color: white;
}

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

.phone-mockup {
    width: 100%;
    height: 100%;
    background-image: url('assets/home-screen-128.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -4px rgba(17, 24, 39, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-accent);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Split Section Generic */
.split-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: center;
}

.split-container.reverse {
    direction: rtl;
}

.split-container.reverse>* {
    direction: ltr;
}

.ui-image {
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.split-visual {
    height: 500px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#globe-container {
    background-image: url('assets/opticash_light_globe_transfer_1772820584128.png');
}

#card-container {
    background-image: url('assets/opticash_light_credit_card_1772820570164.png');
}

.benefit-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-list p {
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: white;
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-color);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .split-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {

    .hero-container,
    .split-container {
        grid-template-columns: 1fr;
    }

    .split-container.reverse {
        direction: ltr;
    }

    .hero-content {
        order: 1;
        /* Standardize ordering on mobile */
    }

    .hero-visual {
        order: 2;
        height: 400px;
    }

    .split-content {
        order: 1;
    }

    .split-visual {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        height: 350px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-actions,
    .trust-metrics {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .trust-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}