/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --teal-primary: #2DD4BF;
    --teal-dark: #0f5346;
    --button-dark: #0f5346;
    --button-hover: #0f5346;
    --green-success: #0f5346;
    --border-light: #E5E7EB;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    padding: 1.25rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-start-escrow {
    background: var(--button-dark);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-start-escrow:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

.btn-menu-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* New Hero Section */
.hero-new {
    padding: 5rem 0 3rem;
    background-color: var(--bg-white);
    text-align: center;
}

.hero-content-new {
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.headline-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    font-style: italic;
}

.headline-sub {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* App Store Badges */
.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-badge {
    height: 50px;
    width: auto;
    min-width: 135px;
    display: block;
}

/* Main CTA Button */
.btn-start-transaction {
    background: var(--button-dark);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4rem;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.25);
}

.btn-start-transaction:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.35);
}

/* Phone Mockups */
.phone-mockups {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.phone-container {
    flex: 1;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.phone-container:hover {
    transform: translateY(-10px);
}

.phone-left {
    transform: rotate(-8deg);
}

.phone-left:hover {
    transform: rotate(-8deg) translateY(-10px);
}

.phone-center {
    z-index: 2;
    max-width: 300px;
}

.phone-right {
    transform: rotate(8deg);
}

.phone-right:hover {
    transform: rotate(8deg) translateY(-10px);
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* How It Works Section - New Style */
.how-it-works-new {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.step-card-new {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.step-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-primary);
}

.step-icon-bg {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.step-card-new:hover .step-icon-bg {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
    transform: scale(1.05);
}

.step-icon-bg.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.step-card-new:hover .step-icon-bg.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.step-title-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.step-desc-new {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
}

.btn-get-started-new {
    background: var(--teal-dark);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
}

.btn-get-started-new:hover {
    background: #0D9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .phone-mockups {
        gap: 1.5rem;
    }

    .phone-container {
        max-width: 240px;
    }

    .phone-center {
        max-width: 260px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .btn-menu-mobile {
        display: block;
        z-index: 201;
        /* Above mobile menu */
        position: relative;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 200;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
        /* Ensure it overrides the display: none if handled by JS toggling class only */
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .hero-new {
        padding: 3rem 0 2rem;
    }

    .headline-main,
    .headline-sub {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .app-badges {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .app-badge {
        height: 44px;
        min-width: 120px;
    }

    .btn-start-transaction {
        width: 100%;
        max-width: 320px;
        margin-bottom: 3rem;
    }

    .phone-mockups {
        gap: 1rem;
    }

    .phone-container {
        max-width: 180px;
    }

    .phone-center {
        max-width: 200px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .how-it-works-new {
        padding: 4rem 0;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero-new {
        padding: 2rem 0 1.5rem;
    }

    .headline-main,
    .headline-sub {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.9375rem;
        margin-bottom: 1.75rem;
    }

    .app-badges {
        margin-bottom: 1.25rem;
    }

    .btn-start-transaction {
        max-width: 100%;
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
        margin-bottom: 2.5rem;
    }

    /* .phone-mockups {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    } */

    .phone-container,
    .phone-center {
        max-width: 260px;
    }

    /* .phone-left,
    .phone-right {
        transform: rotate(0deg);
    } */

    .phone-left:hover,
    .phone-right:hover {
        transform: translateY(-10px);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .step-card-new {
        padding: 1.75rem 1.25rem;
    }

    .step-icon-bg {
        width: 64px;
        height: 64px;
    }

    .step-icon-bg svg {
        width: 28px;
        height: 28px;
    }

    .step-title-new {
        font-size: 1.0625rem;
    }

    .step-desc-new {
        font-size: 0.875rem;
    }

    .btn-get-started-new {
        width: 100%;
        max-width: 100%;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {

    .headline-main,
    .headline-sub {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .phone-container,
    .phone-center {
        max-width: 220px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-new>* {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero-headline {
    animation-delay: 0.1s;
}

.hero-tagline {
    animation-delay: 0.2s;
}

.app-badges {
    animation-delay: 0.3s;
}

.btn-start-transaction {
    animation-delay: 0.4s;
}

.phone-mockups {
    animation-delay: 0.5s;
}

/* Who Uses Safepoint Section */
.who-uses {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.user-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-primary);
}

.user-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.user-card:hover .user-icon {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
    transform: scale(1.05);
}

.user-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.user-desc {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--teal-primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--teal-dark);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--teal-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background-color: #0f5346;
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--bg-white);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--teal-primary);
}

/* Responsive Styles for New Sections */
@media (max-width: 1024px) {
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .who-uses,
    .faq {
        padding: 4rem 0;
    }

    .users-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .user-card {
        padding: 1.75rem 1.25rem;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.875rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {

    .who-uses,
    .faq {
        padding: 3rem 0;
    }

    .user-icon {
        width: 72px;
        height: 72px;
    }

    .user-icon svg {
        width: 36px;
        height: 36px;
    }

    .user-title {
        font-size: 1.0625rem;
    }

    .user-desc {
        font-size: 0.875rem;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }

    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .social-links {
        justify-content: center;
    }
}