/* ===========================
   JobTm.in — Landing Page Styles
   Mobile-first responsive design
   =========================== */

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

:root {
    --white: #FFFFFF;
    --dark: #1A1A2E;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --light-bg: #F8F9FA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --amber: #F59E0B;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --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-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

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

.btn--outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

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

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.nav--scrolled {
    box-shadow: var(--shadow-md);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav__logo-job {
    color: var(--dark);
}

.nav__logo-tm {
    color: var(--accent);
}

.nav__logo-dot {
    color: var(--gray-400);
    font-weight: 600;
}

.nav__links {
    display: none;
    list-style: none;
    gap: 32px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}

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

.nav__cta {
    display: none;
}

/* Burger */
.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.nav__links.active a {
    font-size: 1.1rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F5FF 0%, #FFFFFF 50%, #F5F3FF 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    background: #8B5CF6;
    bottom: -50px;
    left: -50px;
}

.hero__shape--3 {
    width: 150px;
    height: 150px;
    background: #F59E0B;
    top: 50%;
    left: 60%;
}

/* Hero split layout */
.hero__split {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero__content {
    text-align: center;
    max-width: 700px;
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__photo {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero__title--accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero__ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===========================
   Browse / Marketplace Section
   =========================== */
.browse {
    padding: 80px 0;
    background: var(--white);
}

.browse__categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.browse__categories::-webkit-scrollbar {
    display: none;
}

.browse__cat {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.browse__cat:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.browse__cat.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Service Cards */
.browse__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card__name {
    font-size: 0.95rem;
    font-weight: 600;
}

.service-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.service-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 16px;
}

.service-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.service-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.service-card__rate {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

.browse__more {
    text-align: center;
}

/* ===========================
   How It Works
   =========================== */
.how-it-works {
    padding: 80px 0;
    background: var(--light-bg);
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    max-width: 320px;
    position: relative;
}

.step__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step__number {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.step__connector {
    display: none;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}

.feature:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===========================
   App Download Section
   =========================== */
.download {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.download__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.download__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.2);
    color: #93C5FD;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.download__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.download__desc {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 24px;
}

.download__stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download__store {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.download__store:hover {
    background: rgba(255, 255, 255, 0.15);
}

.download__store small {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-400);
    line-height: 1;
}

.download__store span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.download__signup {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.download__signup-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download__form {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.download__input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
}

.download__input::placeholder {
    color: var(--gray-500);
}

.download__input:focus {
    border-color: var(--accent);
}

.download__privacy {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* Form success state */
.download__form.success {
    position: relative;
}

.download__success {
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    color: #6EE7B7;
    font-weight: 500;
    text-align: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 64px 0 32px;
    background: #111122;
    color: var(--gray-400);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__brand .nav__logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.footer__credit {
    margin-top: 8px;
}

.footer__credit a {
    color: var(--accent);
    transition: color var(--transition);
}

.footer__credit a:hover {
    color: #93C5FD;
}

/* ===========================
   Responsive — Tablet (768px+)
   =========================== */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

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

    .browse__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download__content {
        flex-direction: row;
        align-items: center;
    }

    .download__text {
        flex: 1;
    }

    .download__signup {
        flex: 0 0 380px;
    }

    .download__form {
        flex-direction: row;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ===========================
   Responsive — Desktop (1024px+)
   =========================== */
@media (min-width: 1024px) {
    .nav__links {
        display: flex;
    }

    .nav__cta {
        display: inline-flex;
    }

    .nav__burger {
        display: none;
    }

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

    .hero__split {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }

    .hero__content {
        text-align: left;
        flex: 1;
    }

    .hero__ctas {
        justify-content: flex-start;
    }

    .hero__stats {
        justify-content: flex-start;
    }

    .hero__subtitle {
        margin-left: 0;
    }

    .hero__image {
        flex: 0 0 auto;
    }

    .hero__photo {
        width: 360px;
        height: 450px;
        border-radius: 32px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .browse__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .step__connector {
        display: flex;
        align-items: center;
        margin-top: -40px;
    }

    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .download__title {
        font-size: 2.5rem;
    }
}

/* ===========================
   Animations
   =========================== */
@media (prefers-reduced-motion: no-preference) {
    .step,
    .feature,
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .step.visible,
    .feature.visible,
    .service-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skip animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .step,
    .feature,
    .service-card {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}