/* ─── HERO ───────────────────────────────────────── */

#hero {
    position: relative;
    /* Shorter than the viewport so the top of the Trakkem block shows above the fold */
    height: min(calc(100svh - 56px - 180px), 600px);
    min-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.glass-card {
    background: rgba(10, 10, 12, 0.58);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.5rem;
    padding: 3.25rem 2.75rem;
    max-width: 540px;
    width: 100%;
    animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cs-logo {
    display: block;
    margin: 0 auto;
    animation: logoGlow 5s infinite ease-in-out;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(1, 221, 221, 0.2)); }
    50%       { filter: drop-shadow(0 0 22px rgba(1, 221, 221, 0.48)); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d9f99d;
    margin: 1.375rem 0 0.375rem;
}

.hero-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #2dd4bf;
    margin-bottom: 2rem;
}

.hero-rule { width: 36px; height: 1px; background: rgba(255,255,255,0.55); margin: 0 auto 1.875rem; }

.hero-copy {
    font-size: 0.9375rem;
    color: #b3b3ca;
    line-height: 1.7;
}

.hero-made-by {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #7a7a8e;
}

/* ─── SHARED ─────────────────────────────────────── */

.feat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.feat-list li {
    font-size: 0.875rem;
    color: #b3b3ca;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.feat-list li .arr { flex-shrink: 0; margin-top: 1px; font-size: 0.75rem; }
.feat-t .arr { color: #01dddd; }
.feat-h .arr { color: #f2a23a; }

/* ─── TRAKKEM SECTION ────────────────────────────── */

#trakkem {
    position: relative;
    background: #0a0a0c;
}

.trakkem-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/trakkem/stats.webp') center / cover no-repeat;
    opacity: 0.055;
    pointer-events: none;
}

/* gradient so the ghost fades toward the left (text side) */
.trakkem-bg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #0a0a0c 32%, transparent 70%);
    pointer-events: none;
}

.trakkem-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 4.5rem 2rem 7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.prod-name {
    color: var(--text);
    margin-bottom: 0.375rem;
}

.prod-name-t {
    font-family: 'Passion One', cursive;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.prod-name-h {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.prod-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #8a8a9e;
    margin-bottom: 1.25rem;
}

.prod-desc {
    font-size: 1rem;
    color: #c5c5d8;
    line-height: 1.72;
    margin-top: 0.5rem;
}

/* screenshot composition */
.screens {
    position: relative;
}

.screen-1 {
    display: block;
    width: 100%;
    border-radius: 0.875rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 24px 64px rgba(0,0,0,0.85),
        0 0 0 1px rgba(1,221,221,0.06);
    position: relative;
    z-index: 1;
}

.screen-2 {
    display: block;
    width: 55%;
    border-radius: 0.75rem;
    border: 1px solid rgba(1,221,221,0.12);
    box-shadow: 0 12px 36px rgba(0,0,0,0.75);
    position: relative;
    z-index: 2;
    margin-top: -2rem;
    /* offset right so it sits bottom-right, not bottom-left */
    margin-left: auto;
}

/* ─── HEADROOM SECTION ───────────────────────────── */

#headroom {
    background: #0e0c14;
}

.headroom-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 7rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.screens-h .screen-1 { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 0 1px rgba(242,162,58,0.06); }
.screens-h .screen-2 { border-color: rgba(242,162,58,0.12); }

/* ─── WORK WITH US ───────────────────────────────── */

#work { background: #0c0c0f; }

.work-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.work-body {
    font-size: 1rem;
    color: #c5c5d8;
    line-height: 1.72;
    margin-bottom: 2rem;
    max-width: 420px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e8e8f0;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,232,240,0.25);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.work-link:hover { color: #01dddd; border-color: #01dddd; }

.work-details { display: flex; flex-direction: column; }

.work-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #1a1a22;
}

.work-item:first-child { padding-top: 0; }
.work-item:last-child  { border-bottom: none; padding-bottom: 0; }

.work-item-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.work-item-text {
    font-size: 0.9rem;
    color: #b3b3ca;
    line-height: 1.6;
}

/* ─── IN THE WORKS ───────────────────────────────── */

#works { background: #0a0a0c; }

.works-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.works-card {
    position: relative;
    display: block;
    min-height: 260px;
    border: 1px solid #1d1d24;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    background: #0e0e12;
    transition: border-color .3s;
}

.works-card:hover { border-color: #33333f; }

.works-card img {
    position: absolute;
    right: -12%;
    bottom: -18%;
    width: 78%;
    border-radius: 0.75rem;
    opacity: 0.55;
    transform: rotate(-6deg);
    transition: opacity .4s, transform .4s;
}

.works-card:hover img { opacity: 0.8; transform: rotate(-4deg) translateY(-6px); }

.works-text {
    position: relative;
    padding: 2rem;
    max-width: 62%;
}

.works-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e8e8f0;
    margin-bottom: 0.5rem;
}

.works-text p { font-size: 0.9375rem; color: #b3b3ca; line-height: 1.6; }
.works-text .go { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: #e8e8f0; }

/* ─── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 860px) {
    .trakkem-inner,
    .headroom-inner  { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 1.5rem; }
    .trakkem-bg-fade { background: linear-gradient(180deg, #0a0a0c 25%, transparent 70%); }
    /* on mobile, show text before visual for headroom */
    .headroom-text   { order: -1; }
}

@media (max-width: 680px) {
    .glass-card  { padding: 2.5rem 1.75rem; }
    .work-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
    .work-wrap   { padding: 4.5rem 1.25rem; }
    .works-grid  { grid-template-columns: 1fr; padding: 4.5rem 1.25rem; }
    .works-text  { max-width: 75%; }
}

@media (max-width: 420px) {
    .glass-card { padding: 2rem 1.25rem; border-radius: 1.125rem; }
}
