/* 4tomorrow Group – Landing Page */
:root {
    --blue: #1A8FCE;
    --blue-dark: #1574A8;
    --navy: #1E2D3D;
    --navy-light: #2B3E52;
    --green: #5B8C2A;
    --green-light: #6DA832;
    --white: #ffffff;
    --off-white: #f7f9fc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Layout ─── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo img {
    height: 100px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--blue);
}
.nav-cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ─── Hero ─── */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--white) 50%, rgba(26,143,206,0.04) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: calc(-200px + var(--parallax, 0px));
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,143,206,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: top 0.1s linear;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: calc(-100px - var(--parallax, 0px));
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91,140,42,0.07) 0%, transparent 70%);
    border-radius: 50%;
    transition: bottom 0.1s linear;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,143,206,0.08);
    color: var(--blue);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    margin-bottom: 1.25rem;
}
.hero h1 span {
    display: block;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: inherit;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(26,143,206,0.3);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26,143,206,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-green {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(91,140,42,0.3);
}
.btn-green:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ─── Section Headers ─── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* ─── Vision ─── */
.vision {
    background: var(--off-white);
}
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.vision-text p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.vision-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vision-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.vision-highlight .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(26,143,206,0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.vision-highlight strong {
    display: block;
    margin-bottom: 0.15rem;
}
.vision-highlight span {
    color: var(--gray-600);
    font-size: 0.9rem;
}
.vision-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}
.vision-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}
.competencies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.competency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.competency .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}
.competency:nth-child(even) .dot {
    background: var(--green);
}

/* ─── Phygital ─── */
.phygital-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: var(--gray-600);
}
.phygital-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.phygital-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}
.phygital-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.phygital-icon {
    width: 56px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}
.phygital-card:nth-child(1) .phygital-icon { background: rgba(26,143,206,0.1); color: var(--blue); }
.phygital-card:nth-child(2) .phygital-icon { background: rgba(91,140,42,0.1); color: var(--green); }
.phygital-card:nth-child(3) .phygital-icon { background: rgba(30,45,61,0.08); color: var(--navy); }
.phygital-card h3 {
    margin-bottom: 0.5rem;
}
.phygital-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ─── Market Stats ─── */
.market {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.market::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,143,206,0.15) 0%, transparent 60%);
    border-radius: 50%;
}
.market .section-label { color: var(--green-light); }
.market .section-header p { color: var(--gray-400); }
.market-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.market-stat {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}
.market-stat:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.stat-value {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.stat-value.blue { color: var(--blue); }
.stat-value.green { color: var(--green-light); }

/* Stat Bars */
.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    margin: 0.75rem 0;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-bar-fill.blue-bg { background: var(--blue); }
.stat-bar-fill.green-bg { background: var(--green-light); }

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.4;
}
.market-source {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

/* ─── Compensation ─── */
.compensation {
    background: var(--off-white);
}
.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.comp-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.comp-card:hover {
    box-shadow: var(--shadow);
}
.comp-card.featured {
    border: 2px solid var(--blue);
    position: relative;
}
.comp-card.featured::before {
    content: 'Highlight';
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--blue);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
}
.comp-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.comp-card:nth-child(1) .comp-icon { background: rgba(26,143,206,0.1); color: var(--blue); }
.comp-card:nth-child(2) .comp-icon { background: rgba(91,140,42,0.1); color: var(--green); }
.comp-card:nth-child(3) .comp-icon { background: rgba(30,45,61,0.08); color: var(--navy); }
.comp-card:nth-child(4) .comp-icon { background: rgba(212,175,55,0.1); color: #D4AF37; }
.comp-card h3 {
    margin-bottom: 0.5rem;
}
.comp-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.5rem;
}
.comp-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ─── Who We Seek ─── */
.target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.target-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}
.target-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.target-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.target-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}
.target-card li::before {
    content: '→';
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Application Form ─── */
.apply {
    background: var(--off-white);
}
.apply-wrapper {
    max-width: 640px;
    margin: 0 auto;
}
.apply-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--navy);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,143,206,0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}
.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}
.form-success .icon {
    width: 64px;
    height: 64px;
    background: rgba(91,140,42,0.1);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}
.form-success h3 {
    margin-bottom: 0.5rem;
}
.form-success p {
    color: var(--gray-600);
}

/* ─── Footer ─── */
.footer {
    background: var(--navy);
    color: var(--gray-400);
    padding: 3rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo img {
    height: 44px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.footer-info {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--white);
}

/* ─── Animations ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .nav-toggle { display: block; }

    .vision-grid { grid-template-columns: 1fr; }
    .phygital-grid { grid-template-columns: 1fr; }
    .market-stats { grid-template-columns: 1fr 1fr; }
    .comp-grid { grid-template-columns: 1fr; }
    .target-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .competencies { grid-template-columns: 1fr; }
    .hero { padding: 8rem 0 4rem; }
    section { padding: 3.5rem 0; }
}

@media (max-width: 500px) {
    .market-stats { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}
