/* ============================================================
   FUTUREOFLAB — style.css
   Theme: Refined Scientific — light, clean, precise
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --accent:        #0b6e5e;
    --accent-mid:    #0e8f78;
    --accent-light:  #d6f0eb;
    --accent-xlight: #eef9f7;

    --text-primary:  #0f1c1a;
    --text-secondary:#3a4f4c;
    --text-muted:    #6b8480;

    --surface:       #ffffff;
    --surface-soft:  #f6faf9;
    --border:        #ddeae8;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 2px 12px rgba(11, 110, 94, 0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 32px rgba(11, 110, 94, 0.16), 0 2px 8px rgba(0,0,0,0.08);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

body { padding: 0; margin: 0; }

/* ---------- NAV ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 64px);
    height: 64px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-title em {
    color: var(--accent);
    font-style: italic;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

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

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(48px, 8vw, 96px);
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

/* Subtle graph-paper grid */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.55;
    pointer-events: none;
}

/* Radial fade over grid */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 20% 40%, rgba(246,250,249,0.92) 0%, rgba(246,250,249,0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--text-primary);
}

.hero-heading em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 36px;
}

.hero-cta {
    display: inline-block;
    padding: 13px 28px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background: var(--accent-mid);
    transform: translateY(-1px);
}

/* floating technique tags */
.hero-tags {
    position: absolute;
    bottom: 32px;
    right: clamp(20px, 5vw, 64px);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 380px;
    justify-content: flex-end;
}

.hero-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 5px 11px;
    border-radius: 100px;
    border: 1px solid rgba(11,110,94,0.18);
    letter-spacing: 0.02em;
    animation: tagFloat 0.5s ease both;
}

.hero-tags span:nth-child(1)  { animation-delay: 0.05s; }
.hero-tags span:nth-child(2)  { animation-delay: 0.1s; }
.hero-tags span:nth-child(3)  { animation-delay: 0.15s; }
.hero-tags span:nth-child(4)  { animation-delay: 0.2s; }
.hero-tags span:nth-child(5)  { animation-delay: 0.25s; }
.hero-tags span:nth-child(6)  { animation-delay: 0.3s; }
.hero-tags span:nth-child(7)  { animation-delay: 0.35s; }
.hero-tags span:nth-child(8)  { animation-delay: 0.4s; }

@keyframes tagFloat {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- SHARED SECTION ATOMS ---------- */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------- BOX SECTION ---------- */
.box-section {
    padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(11,110,94,0.3);
}

.box-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 26px 24px;
    color: inherit;
    text-decoration: none;
}

.box-icon {
    width: 52px;
    height: 52px;
    color: var(--accent);
    margin-bottom: 18px;
}

.box-icon svg { width: 100%; height: 100%; }

.box-body { flex: 1; }

.box-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.box-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.box-disc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.box-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.box-cta {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.box-cta .arrow {
    transition: transform 0.2s;
    display: inline-block;
}

.box:hover .box-cta .arrow { transform: translateX(4px); }

/* ---------- DESCRIPTION SECTION ---------- */
.desc-section {
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
}

.desc-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 540px;
    margin: 0 0 48px;
    line-height: 1.2;
}

.desc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.desc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px 28px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s, border-color 0.25s;
    position: relative;
}

/* Left accent bar — colour matches the box */
.desc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    opacity: 0.25;
    transition: opacity 0.25s;
}

.desc-card:hover::before { opacity: 1; }
.desc-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(11,110,94,0.25);
}

.desc-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.desc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.desc-icon svg { width: 26px; height: 26px; }

.desc-icon--learn  { background: #ddf3ee; color: #0b6e5e; }
.desc-icon--career { background: #ddeaf8; color: #1a5fa8; }
.desc-icon--market { background: #f3ecdd; color: #8a5a0a; }

.desc-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.desc-card > p {
    font-size: 0.88rem;
    line-height: 1.72;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0 0 20px;
}

.desc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.desc-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.desc-list li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.desc-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.desc-link:hover { gap: 8px; }

/* ---------- FOOTER ---------- */
footer {
    padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) 0;
    background: var(--text-primary);
    color: #b0c8c4;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

footer .nav-title {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
}

footer .nav-title em { color: #5fd3be; }

.footer-brand p {
    font-size: 0.85rem;
    color: #7fa09a;
    margin: 0;
    max-width: 280px;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.footer-links a {
    color: #7fa09a;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    font-size: 0.78rem;
    color: #4a6662;
}

/* ---------- PAGE ENTER ANIMATION ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content  { animation: fadeUp 0.6s ease 0.05s both; }
.box-section   { animation: fadeUp 0.5s ease 0.15s both; }
.desc-section  { animation: fadeUp 0.5s ease 0.25s both; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-tags { display: none; }
    .desc-grid { grid-template-columns: 1fr; }
    .box-container { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 24px; }
}
