/* === CSS VARIABLES === */
:root {
    --primary-red: #E53935;
    --primary-red-hover: #C62828;
    --black-accent: #111111;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #ebebeb;
    --text-main: #333333;
    --text-muted: #666666;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(229, 57, 53, 0.15);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--black-accent);
    line-height: 1.2;
    font-weight: 700;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

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

.mt-md {
    margin-top: 40px;
}

.mt-lg {
    margin-top: 80px;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader img {
    width: 150px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(229, 57, 53, 0.3);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--black-accent);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--black-accent);
    color: var(--black-accent);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--primary-red);
}

.btn-dark {
    background-color: var(--black-accent);
    color: var(--white);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-card);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black-accent);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--white);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cursor {
    display: inline-block;
    vertical-align: bottom;
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
    50% {
        opacity: 0;
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFader 12s infinite;
}

.hero-img.delay-1 {
    animation-delay: 4s;
}

.hero-img.delay-2 {
    animation-delay: 8s;
}

@keyframes heroFader {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    33% {
        opacity: 1;
        transform: scale(1);
    }

    43% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.stats-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--black-accent);
}

.stats-badge i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

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

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

.bg-blur {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* === COMMON SECTIONS === */
section {
    padding: 100px 0;
}

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

.section-title.align-left {
    text-align: left;
    margin-bottom: 30px;
}

/* === HOW IT WORKS === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 57, 53, 0.2);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-red);
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.step-card:hover .icon-wrapper {
    background: var(--primary-red);
    color: var(--white);
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* === CORE FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feature-card.highlight {
    background: var(--black-accent);
    color: var(--white);
    border-color: var(--black-accent);
}

.feature-card.highlight h4,
.feature-card.highlight p {
    color: var(--white);
}

.feature-card.highlight i {
    color: var(--primary-red);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--black-accent);
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.feature-card h4 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.feature-card:hover {
    transform: translateY(-5px);
    /* box-shadow: var(--shadow-soft); */
    box-shadow: var(--shadow-hover);
}

.feature-card:not(.highlight):hover i {
    color: var(--primary-red);
}

/* === SPLIT LAYOUT (Certification & Trust) === */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-visual,
.split-content {
    flex: 1;
}

.rounded-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.split-visual {
    position: relative;
}

.badge-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-hover);
}

.badge-overlay i {
    font-size: 2rem;
}

.benefit-list {
    margin-top: 30px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--black-accent);
}

.benefit-list i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

/* === TRUST SECTION === */
.trust-points {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trust-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-point i {
    color: var(--primary-red);
    font-size: 2rem;
}

.trust-point h5 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.mockup-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: 30px;
    background: var(--border-color);
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 2;
}

.circle.done {
    background: var(--black-accent);
    color: var(--white);
}

.circle.active {
    background: var(--primary-red);
    color: var(--white);
    animation: pulse 2s infinite;
}

.circle.pending {
    background: var(--border-color);
}

.flow-step span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black-accent);
}

.secure-badge {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

/* === SINGAPORE FOCUS === */
.singapore-focus {
    background: url('https://images.unsplash.com/photo-1525625293386-3f8f99389edd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    padding: 150px 0;
    text-align: center;
    background-attachment: fixed;
}

.singapore-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.85);
}

.sg-title {
    position: relative;
    color: var(--white);
    z-index: 2;
    font-size: 3rem;
}

/* === ROADMAP TIMELINE === */
.roadmap .container {
    max-width: 900px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--black-accent);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item.highlight-item .timeline-dot {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 57, 53, 0.2);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: var(--light-bg);
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* === BENEFITS SECTION === */
.benefits {
    padding: 100px 0;
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.benefit-box {
    padding: 50px;
    border-radius: var(--radius-xl);
}

.benefit-box.for-employers {
    background: var(--light-bg);
}

.benefit-box.for-workers {
    background: var(--black-accent);
    color: var(--white);
}

.benefit-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.benefit-box.for-workers h3 {
    color: var(--white);
}

.benefit-box ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.benefit-box i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--primary-red);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* === FOOTER === */
footer {
    background: var(--black-accent);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary-red);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 5%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-container,
    .split-layout,
    .benefits-container {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

    .hero-cta,
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .mt-md,
    .mt-lg {
        margin-top: 0;
    }

    .split-layout.reverse {
        flex-direction: column;
    }

    .section-title.align-left {
        text-align: center;
    }

    .badge-overlay {
        bottom: auto;
        top: -20px;
        right: 0;
        left: 0;
        margin: auto;
        width: max-content;
    }

    .app-showcase {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup.primary {
        transform: translateY(0);
    }

    .benefit-list li {
        justify-content: center;
    }

    .trust-point {
        text-align: left;
    }
}