/* TeamUp Branding CSS */
:root {
    --accent: #5b6ef6;
    --muted: #6b7280;
    --card: #ffffff;
    --bg: #f3f4f6;
    --radius: 12px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg), #eef2ff 60%);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--max-width);
}

/* Header / Hero */
header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit
}

.back {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--white), #7dd3fc);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

nav {
    display: flex;
    gap: 12px;
    align-items: center
}

/* responsive menu */
.menu-btn {
    display: none;
    background: transparent;
    border: 0;
    font-size: 22px;
    padding: 8px;
    border-radius: 8px
}

.main-nav {
    display: flex;
    gap: 12px;
    align-items: center
}

@media(max-width:800px) {
    .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center
    }

    .main-nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 66px;
    flex-direction: column;
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12)
    }

    .main-nav a {
    display: block;
    margin: 6px 0
    }

    .main-nav.open {
    display: flex
    }
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600
}

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

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted)
}

.btn-active {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.hero {
    background: transparent;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 28px
}

.hero-inner,
.hero-side .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-inner {
    /* hero uses a subtle gradient overlay; the image is moved to a low-opacity ::before layer */
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.12));
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11, 28, 45, 0.06);
    color: var(--card);
    justify-content: space-between;
}

/* use the primary red tone from the hero image as the hero background */
.hero-inner{
    background: linear-gradient(180deg, rgba(239,68,68,1), rgba(239,68,68,0.95));
}
/* Ensure any .card placed inside the hero remains readable on the image */
.hero-inner .card{
    /* darker translucent panel so white text stands out against the hero image */
    background: linear-gradient(180deg, rgba(2,6,23,0.46), rgba(2,6,23,0.28));
    padding:12px;
    color: #fff !important;
    box-shadow:none;
    border-radius:10px;
}
/* Force white text for common elements inside the nested card (overrides inline muted colors) */
.hero-inner .card h2,
.hero-inner .card p,
.hero-inner .card ul,
.hero-inner .card li {
    color: #fff !important;
}

/* ensure hero text is readable on the image */
.hero-inner h1,
.hero-inner p.lead {
    color: #fff !important;
}
/* hero-specific button and note styles for contrast on the red background */
.hero-inner .btn-ghost{
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.12);
    background: transparent;
}
.hero-inner .btn-primary{box-shadow:0 6px 18px rgba(0,0,0,0.12)}
.hero-inner .hero-note{color:#fff !important;font-size:13px}

h1 {
    font-size: 28px;
    margin: 0 0 8px
}

p.lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.5
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 14px
}
/* hero two-column layout on wider screens (hero-side holds live preview) */
.hero{grid-template-columns:1fr}
.hero-side{display:none}
@media(min-width:800px){
    .hero{grid-template-columns:1fr 320px;gap:18px}
    .hero-side{display:block}
}

/* Features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px
}

/* make cards inside features stretch to equal height */
.features{align-items:stretch}
.features .card{height:100%}

.card {
    background: var(--card);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(12, 18, 33, 0.04)
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.feature h3 {
    margin: 0;
    font-size: 16px
}

.feature p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px
}

/* Mock screenshots */
.shots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.shot {
    width: 180px;
    height: 360px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(11, 28, 45, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.shot .top {
    flex: 0 0 56px;
    background: var(--accent);
    color: white;
    padding: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center
}

.shot .body {
    flex: 1;
    padding: 12px;
    color: var(--muted);
    font-size: 13px
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 12px
}

footer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

/* Desktop layout adjustments */
@media(min-width:800px) {
    .hero {
    grid-template-columns: 1fr 420px
    }

    .features {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    }

    .feature-list {
    grid-template-columns: 1fr
    }

    .shots {
    justify-content: flex-end
    }
}

@media(prefers-color-scheme: dark) {
    body {
    background: linear-gradient(180deg, #0b1220, #07102a);
    color: #e6eef8
    }

    .card {
    background: #071427
    }

    .hero-inner {
    background: linear-gradient(180deg, #051225, #07203a)
    }

    p.lead {
    color: #cbd5e1
    }

    .shot {
    background: linear-gradient(180deg, #061826, #0b1722)
    }

    .feature .icon {
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc
    }

    footer p {
    color: #9fb0c9
    }
}
