/* ============================================
   Creata·Team — Global Design System
   ============================================ */

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

:root {
    --bg: #08080c;
    --surface: #111118;
    --white: #f0f0f5;
    --gray: #8888a0;
    --dim: #444460;
    --faint: rgba(255,255,255,0.05);
    --line: rgba(255,255,255,0.06);
    --teal: #00d4aa;
    --coral: #ff6b35;
    --violet: #8b5cf6;
    --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--white);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Dot grid */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 100;
    display: flex; align-items: center;
    background: rgba(8,8,12,0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    width: 100%; max-width: 1400px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 24px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 500; color: var(--dim);
    letter-spacing: 0.04em; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
    display: flex; background: var(--faint);
    border: 1px solid var(--line); border-radius: 100px; padding: 2px;
}
.lang-btn {
    font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 100px; border: none;
    background: transparent; color: var(--dim); cursor: pointer; transition: all 0.3s;
    letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--white); color: var(--bg); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }
.nav-mobile {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(8,8,12,0.97); backdrop-filter: blur(20px); z-index: 99; padding: 40px;
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 28px; }
.nav-mobile a { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 500; color: var(--gray); transition: color 0.3s; }
.nav-mobile a:hover { color: var(--white); }

/* ===== LAYOUT ===== */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
    padding: 14px 32px; border-radius: 100px; border: none;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
}
.btn--fill { background: var(--white); color: var(--bg); }
.btn--fill:hover {
    background: var(--teal); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,212,170,0.25);
}
.btn--line { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn--line:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn--sm { padding: 12px 24px; font-size: 13px; }
.btn-arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== REVEAL ANIMATION ===== */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rv.visible { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }
.rv-d4 { transition-delay: 0.4s; }

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

/* ===== SECTION UTILS ===== */
.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500;
    color: var(--teal); letter-spacing: 0.2em;
    text-transform: uppercase; margin-bottom: 16px;
}
.section-h {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 64px; gap: 32px;
}
.section-aside {
    font-size: 15px; color: var(--gray);
    max-width: 340px; line-height: 1.7; flex-shrink: 0;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: calc(var(--nav-h) + 80px) 0 64px;
    position: relative; z-index: 1;
}
.page-hero .section-tag { margin-bottom: 20px; }
.page-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s;
}
.page-hero-title .thin { font-weight: 300; color: var(--gray); }
.page-hero-sub {
    font-size: 17px; color: var(--gray);
    max-width: 560px; line-height: 1.7;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 120px 0;
    position: relative; z-index: 1;
    border-top: 1px solid var(--line);
}

/* ===== CARD SYSTEM ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px; font-weight: 600;
    margin-bottom: 12px; line-height: 1.2;
}
.card-text {
    font-size: 14px; color: var(--gray);
    line-height: 1.7;
}
.card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 500;
    color: var(--teal); letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.card-icon {
    width: 48px; height: 48px;
    margin-bottom: 20px;
    color: var(--teal);
}
.card-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 56px; font-weight: 800;
    color: rgba(255,255,255,0.03);
    position: absolute; top: 20px; left: 32px; line-height: 1;
}

/* Colored hover variants */
.card--teal:hover { border-color: rgba(0,212,170,0.3); box-shadow: 0 20px 48px rgba(0,212,170,0.08); }
.card--coral:hover { border-color: rgba(255,107,53,0.3); box-shadow: 0 20px 48px rgba(255,107,53,0.08); }
.card--violet:hover { border-color: rgba(139,92,246,0.3); box-shadow: 0 20px 48px rgba(139,92,246,0.08); }
.card--gold:hover { border-color: rgba(255,209,102,0.3); box-shadow: 0 20px 48px rgba(255,209,102,0.08); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== PROJECT CARDS ===== */
.proj-card {
    border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
    min-height: 420px;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
}
.proj-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.proj-gradient {
    position: absolute; inset: 0;
    transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.proj-card:hover .proj-gradient { transform: scale(1.08); }
.proj-num {
    position: absolute; top: 20px; left: 28px;
    font-family: 'Unbounded', sans-serif;
    font-size: 120px; font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
    transition: color 0.5s;
}
.proj-card:hover .proj-num { color: rgba(255,255,255,0.07); }
.proj-tag {
    position: absolute; top: 24px; right: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 5px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 2;
}
.proj-info {
    position: relative; z-index: 2;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.proj-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px; font-weight: 700; margin-bottom: 8px;
    line-height: 1.2;
}
.proj-meta { font-size: 13px; color: var(--gray); }
.proj-date { font-size: 12px; color: var(--dim); margin-top: 12px; }
.proj-arrow {
    position: absolute; bottom: 32px; right: 32px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
    color: var(--gray);
}
.proj-card:hover .proj-arrow {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
    transform: scale(1.1);
}

/* ===== IMPACT / STATS ===== */
.impact-section {
    padding: 140px 0; position: relative; z-index: 1; overflow: hidden;
}
.impact-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,212,170,0.04), transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.03), transparent 50%);
}
.impact-row {
    display: flex; gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.impact-item {
    flex: 1; padding: 56px 24px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.impact-item:last-child { border-right: none; }
.impact-num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    display: inline;
}
.impact-suf {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700; color: var(--teal);
}
.impact-lbl {
    display: block; font-size: 13px; color: var(--gray);
    margin-top: 16px; font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
    padding: 160px 0;
    position: relative; z-index: 1;
    text-align: center;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(0,212,170,0.05), transparent 50%);
}
.cta-h {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px; position: relative;
}
.cta-h .thin { font-weight: 300; color: var(--gray); }
.cta-sub {
    font-size: 16px; color: var(--dim);
    margin-bottom: 40px; position: relative;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--line);
    position: relative; z-index: 1;
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 80px;
    padding: 64px 0 48px;
    align-items: start;
}
.footer-brand img { height: 20px; opacity: 0.7; margin-bottom: 16px; display: block; }
.footer-brand p {
    font-size: 14px; color: var(--gray);
    max-width: 280px; line-height: 1.7;
}
.footer-col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 500;
    color: var(--dim); letter-spacing: 0.15em;
    text-transform: uppercase; margin-bottom: 20px;
}
.footer-col a {
    display: block; font-size: 14px; color: var(--gray);
    margin-bottom: 12px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--teal); }
.footer-social-row {
    display: flex; gap: 12px; margin-top: 4px;
}
.footer-social-row a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px; border: 1px solid var(--line);
    color: var(--dim); transition: all 0.3s;
    margin-bottom: 0;
}
.footer-social-row a:hover {
    color: var(--white); border-color: rgba(255,255,255,0.15);
    background: var(--faint);
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: var(--dim); }
.footer-loc { font-size: 12px; color: var(--dim); }

/* ===== TEAM CARDS ===== */
.team-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
}
.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.team-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid var(--line);
    display: block;
}
.team-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px; font-weight: 600;
    margin-bottom: 4px;
}
.team-role {
    font-size: 13px; color: var(--dim);
    margin-bottom: 12px;
}
.team-tags {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.team-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 500;
    color: var(--gray); letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid var(--line);
}

/* ===== FILTER BUTTONS ===== */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 48px;
}
.filter-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 13px; font-weight: 500;
    padding: 8px 20px; border-radius: 100px;
    border: 1px solid var(--line);
    background: transparent; color: var(--gray);
    cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--white); }
.filter-btn.active {
    background: var(--white); color: var(--bg);
    border-color: var(--white);
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--dim);
    margin-bottom: 32px;
    transition: color 0.3s;
}
.back-link:hover { color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wrap { padding: 0 28px; }
    .nav-inner { padding: 0 28px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .impact-row { flex-direction: column; }
    .impact-item { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 16px; }
    .impact-item:last-child { border-bottom: none; }
    .content-section { padding: 80px 0; }
    .cta-section { padding: 100px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .page-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
    .page-hero-title { font-size: clamp(28px, 8vw, 44px); }
    .filter-bar { gap: 6px; }
    .filter-btn { font-size: 12px; padding: 6px 14px; }
}
