@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --blue: #007bff;
    --orange: #f0872a;
    --navy: #0b1220;
    --muted: #64748b;
    --line: #e7edf5
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #101828;
    background: #fff;
    line-height: 1.6
}

a {
    text-decoration: none;
    color: inherit
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.nav {
    max-width: 1180px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.brand img {
    display: block;
    width: 172px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand span {
    color: var(--blue)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: .94rem;
    font-weight: 600
}

.nav-links a:hover {
    color: var(--blue)
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    transition: .2s
}

.nav-cta,
.btn-primary {
    background: var(--blue);
    color: white
}

.nav-cta:hover,
.btn-primary:hover {
    background: #0068db;
    transform: translateY(-2px)
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem
}

.hero {
    background: radial-gradient(circle at 80% 25%, rgba(0, 123, 255, .13), transparent 30%), linear-gradient(135deg, #f8fbff, #fff);
    padding: 88px 24px 78px
}

.hero-inner {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: .78rem;
    letter-spacing: .13em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px
}

.kicker:before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 4px;
    background: currentColor
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.065em;
    margin-bottom: 22px
}

h1 span {
    color: var(--blue)
}

.gym h1 span {
    color: var(--orange)
}

.hero p {
    font-size: 1.1rem;
    color: #526174;
    max-width: 590px;
    margin-bottom: 28px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.btn-secondary {
    border: 1px solid #d6dfeb;
    background: white
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.hero-panel {
    min-height: 340px;
    border-radius: 28px;
    padding: 28px;
    background: var(--navy);
    color: white;
    box-shadow: 0 24px 70px #0b122026;
    position: relative;
    overflow: hidden
}

.gym .hero-panel {
    background: linear-gradient(145deg, #111827, #202b3b)
}

.panel-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    right: -60px;
    top: -70px;
    background: var(--blue);
    filter: blur(80px);
    opacity: .5
}

.gym .panel-glow {
    background: var(--orange)
}

.panel-label {
    position: relative;
    color: #a9b8ce;
    font-size: .76rem;
    letter-spacing: .12em;
    font-weight: 700
}

.panel-title {
    position: relative;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 10px 0 24px
}

.stat-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.stat {
    padding: 17px;
    border: 1px solid #ffffff20;
    background: #ffffff0d;
    border-radius: 16px
}

.stat i {
    color: #70b4ff;
    font-size: 1.2rem
}

.gym .stat i {
    color: #ffb16d
}

.stat strong {
    display: block;
    font-size: 1.02rem;
    margin-top: 9px
}

.stat small {
    color: #a9b8ce
}

section.content {
    padding: 78px 24px
}

.container {
    max-width: 1120px;
    margin: auto
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px
}

.section-head .kicker {
    justify-content: center
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.045em;
    margin-bottom: 14px
}

.section-head p,
.muted {
    color: var(--muted)
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.feature {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 24px #0b122008
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 18px
}

.gym .feature-icon {
    background: #fff1e6;
    color: var(--orange)
}

.feature h3 {
    font-size: 1.08rem;
    margin-bottom: 8px
}

.feature p {
    color: var(--muted);
    font-size: .95rem
}

.how {
    background: #f7f9fc
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: steps
}

.step {
    padding: 24px 0;
    border-top: 2px solid var(--blue)
}

.gym .step {
    border-color: var(--orange)
}

.step:before {
    counter-increment: steps;
    content: "0" counter(steps);
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue)
}

.gym .step:before {
    color: var(--orange)
}

.step h3 {
    margin: 9px 0
}

.step p {
    color: var(--muted);
    font-size: .95rem
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch
}

.plan {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative
}

.plan.featured {
    border: 2px solid var(--blue);
    box-shadow: 0 16px 45px #007bff16
}

.gym .plan.featured {
    border-color: var(--orange);
    box-shadow: 0 16px 45px #f0872a16
}

.plan-tag {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--blue)
}

.gym .plan-tag {
    color: var(--orange)
}

.plan h3 {
    font-size: 1.35rem;
    margin: 8px 0
}

.plan-desc {
    color: var(--muted);
    min-height: 48px;
    font-size: .92rem
}

.price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.04em;
    margin: 18px 0 2px
}

.price small {
    font-size: .85rem;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--muted)
}

.plan ul {
    list-style: none;
    display: grid;
    gap: 11px;
    margin: 22px 0 26px;
    flex: 1
}

.plan li {
    font-size: .92rem;
    color: #344054
}

.plan li:before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
    margin-right: 9px
}

.plan .btn {
    width: 100%;
    margin-top: auto
}

.gym .btn-primary {
    background: var(--orange)
}

.gym .btn-primary:hover {
    background: #dc701a
}

.note {
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
    margin-top: 20px
}

.contact {
    background: var(--navy);
    color: white;
    border-radius: 26px;
    padding: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px
}

.contact p {
    color: #b9c4d5;
    max-width: 620px;
    margin-top: 8px
}

.contact .btn {
    background: white;
    color: #111827;
    white-space: nowrap
}

footer {
    padding: 28px 24px;
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    border-top: 1px solid var(--line)
}

@media(max-width:800px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .hero {
        padding-top: 58px
    }

    .hero-panel {
        min-height: 300px
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr
    }

    .nav-links {
        gap: 14px
    }
}

@media(max-width:600px) {
    .nav {
        padding: 13px 18px
    }

    .menu-btn {
        display: block
    }

    .nav-cta {
        display: none
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px 24px 24px;
        background: white;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 12px 0
    }

    .hero {
        padding: 48px 18px
    }

    .hero-panel {
        padding: 22px;
        min-height: 280px
    }

    .content {
        padding: 58px 18px !important
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr
    }

    .plan-desc {
        min-height: 0
    }

    .contact {
        padding: 28px;
        align-items: flex-start;
        flex-direction: column
    }

    .contact .btn {
        width: 100%
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem)
    }
}

/* Logo Devtek consistente nos headers das páginas de produto */
@media (max-width: 600px) {
    .brand img {
        width: 142px;
    }
}

/* Seletor Mensal / Anual */
.billing-toggle {
    display: flex;
    width: fit-content;
    margin: 0 auto 34px;
    padding: 5px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff
}

.billing-btn {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    color: var(--muted);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, color .2s
}

.billing-btn:hover {
    color: var(--navy)
}

.billing-btn.active {
    background: var(--blue);
    color: #fff
}

.billing-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e3f6ec;
    color: #16865b
}

.billing-btn.active .billing-badge {
    background: #ffffff2e;
    color: #fff
}

.price-note {
    min-height: 1.3em;
    margin: 0 0 6px;
    font-size: .82rem;
    color: #16865b;
    font-weight: 600
}

@media (max-width:560px) {
    .billing-btn {
        padding: 9px 14px;
        font-size: .88rem
    }

    .billing-badge {
        display: none
    }
}

/* ===== Seção do painel de administração ===== */
.painel-showcase {
    background: #fff;
    overflow: hidden
}

.painel-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center
}

.painel-text h2 {
    margin-bottom: 14px
}

.painel-text > p {
    color: var(--muted);
    margin-bottom: 24px
}

.painel-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-bottom: 30px
}

.painel-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #526174;
    font-size: .96rem
}

.painel-list li i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf3ff;
    color: var(--blue);
    font-size: 1rem
}

.painel-list strong {
    color: #101828
}

.painel-visual {
    position: relative
}

.painel-visual:before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: var(--blue);
    filter: blur(90px);
    opacity: .12;
    z-index: 0
}

.painel-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto
}

@media (max-width: 900px) {
    .painel-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .painel-visual {
        order: -1;
        max-width: 560px;
        margin: 0 auto
    }
}


/* ===== Seção "Painel em ação" (demo) ===== */
.demo-section {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden
}

.demo-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -180px;
    right: -120px;
    background: var(--blue);
    filter: blur(130px);
    opacity: .35;
    pointer-events: none
}

.demo-container {
    position: relative
}

.demo-head .kicker {
    color: #70b4ff
}

.demo-head h2 {
    color: #fff
}

.demo-head p {
    color: #a9b8ce
}

.demo-window {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    color: #101828;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px #00000055, 0 0 0 1px #ffffff1a
}

.demo-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f1f5fa;
    border-bottom: 1px solid var(--line)
}

.demo-dots {
    display: flex;
    gap: 6px
}

.demo-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3dbe6
}

.demo-dots i:nth-child(1) {
    background: #ff6159
}

.demo-dots i:nth-child(2) {
    background: #ffbd2e
}

.demo-dots i:nth-child(3) {
    background: #28c941
}

.demo-url {
    flex: 1;
    max-width: 320px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.demo-url i {
    font-size: .68rem;
    margin-right: 4px
}

.demo-body {
    display: grid;
    grid-template-columns: 190px 1fr
}

.demo-side {
    background: var(--blue);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.demo-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ffffffd9;
    font-size: .86rem;
    font-weight: 600
}

.demo-side-item i {
    width: 16px;
    text-align: center;
    font-size: .85rem
}

.demo-side-item.active {
    background: #0057c2;
    color: #fff
}

.demo-main {
    padding: 22px;
    min-width: 0
}

.demo-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px
}

.demo-kpi {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.demo-kpi small {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase
}

.demo-kpi strong {
    font-size: 1.35rem;
    letter-spacing: -.02em
}

.demo-kpi span {
    color: var(--muted);
    font-size: .76rem
}

.demo-kpi.kpi-green {
    border-left-color: #1fa463
}

.demo-kpi.kpi-green strong {
    color: #1fa463
}

.demo-kpi.kpi-blue strong {
    color: var(--blue)
}

.demo-kpi.kpi-gray {
    border-left-color: #8593a6
}

.demo-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px
}

.demo-list-head h3 {
    font-size: 1.02rem;
    color: var(--blue)
}

.demo-filter {
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cfe1ff;
    color: var(--blue);
    background: #f3f8ff;
    white-space: nowrap
}

.demo-rows {
    list-style: none;
    display: grid;
    gap: 8px
}

.demo-row {
    display: grid;
    grid-template-columns: 62px 1fr auto 104px;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff
}

.demo-time {
    font-weight: 700;
    color: var(--navy);
    font-size: .95rem
}

.demo-who {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.demo-who strong {
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.demo-who small {
    color: var(--muted);
    font-size: .8rem
}

.demo-price {
    font-weight: 700;
    font-size: .9rem
}

.demo-status {
    justify-self: end;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap
}

.st-ok {
    background: #e3f6ec;
    color: #16865b
}

.st-conf {
    background: #e6f0ff;
    color: #0062d6
}

.st-wait {
    background: #fff1e0;
    color: #c4690f
}

.demo-points {
    max-width: 960px;
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.demo-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #ffffff1f;
    border-radius: 16px;
    background: #ffffff0d
}

.demo-point > i {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff14;
    color: #70b4ff
}

.demo-point strong {
    display: block;
    font-size: .98rem
}

.demo-point span {
    color: #a9b8ce;
    font-size: .88rem;
    line-height: 1.45;
    display: block;
    margin-top: 2px
}

@media (max-width: 820px) {
    .demo-body {
        grid-template-columns: 1fr
    }

    .demo-side {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 6px;
        scrollbar-width: none
    }

    .demo-side::-webkit-scrollbar {
        display: none
    }

    .demo-side-item {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: .8rem
    }

    .demo-points {
        grid-template-columns: 1fr
    }
}

@media (max-width: 600px) {
    .demo-window {
        border-radius: 16px
    }

    .demo-bar {
        padding: 10px 12px
    }

    .demo-main {
        padding: 14px
    }

    .demo-kpis {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin: 0 -14px 18px;
        padding: 2px 14px 6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none
    }

    .demo-kpis::-webkit-scrollbar {
        display: none
    }

    .demo-kpi {
        flex: 0 0 72%;
        scroll-snap-align: center
    }

    .demo-row {
        grid-template-columns: 52px 1fr auto;
        grid-template-areas: "time who status" "time who price";
        row-gap: 4px;
        gap: 4px 12px;
        padding: 12px
    }

    .demo-time {
        grid-area: time
    }

    .demo-who {
        grid-area: who
    }

    .demo-status {
        grid-area: status
    }

    .demo-price {
        grid-area: price;
        justify-self: end;
        font-size: .85rem
    }

    .demo-glow {
        width: 340px;
        height: 340px
    }

    .demo-point {
        padding: 15px
    }
}

/* ===== Melhorias de celular: seção do painel (imagem) ===== */
@media (max-width: 600px) {
    .painel-grid {
        gap: 22px
    }

    .painel-visual {
        margin: 0 -10px
    }

    .painel-text h2 {
        font-size: clamp(1.7rem, 8vw, 2.1rem)
    }

    .painel-text > p {
        font-size: .98rem;
        margin-bottom: 20px
    }

    .painel-list {
        gap: 10px;
        margin-bottom: 22px
    }

    .painel-list li {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #f7f9fc;
        font-size: .92rem
    }

    .painel-text .actions .btn {
        width: 100%
    }

    .section-head {
        margin-bottom: 30px
    }

    .section-head p {
        font-size: .98rem
    }
}
