/* FluxGrid — shared styles (mobile first, dark) */
:root {
    --cyan-deep: #0082ad;
    --cyan-bright: #5de1e6;
    --primary: var(--cyan-bright);
    --accent: var(--cyan-deep);
    --bg-dark: #030712;
    --bg-elevated: #0a0f1a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    --font-display: "Syncopate", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --radius: 20px;
    --shadow-glow: 0 0 60px rgba(0, 130, 173, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    padding-top: 0;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Progress bar (home) */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    width: 0%;
    z-index: 3000;
}

/* Toast */
#toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #0f172a;
    border: 1px solid var(--cyan-bright);
    border-left: 5px solid var(--cyan-bright);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-glow);
    transform: translateX(130%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 4000;
    max-width: min(100vw - 2rem, 360px);
}

#toast.show {
    transform: translateX(0);
}

.toast-icon {
    background: var(--cyan-bright);
    color: var(--bg-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 2000;
    background: transparent;
}

.site-header--inner {
    position: fixed;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.site-header.sticky {
    position: fixed;
    left: 0;
    right: 0;
    padding: 0.6rem 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 2101;
}

.logo-header {
    height: clamp(52px, 12vw, 72px);
    width: auto;
    filter: drop-shadow(0 0 20px rgba(93, 225, 230, 0.25));
}

.logo-porto1 {
    height: clamp(283px, 12vw, 272px);
    aspect-ratio: 16 / 10;
    border-radius: 15px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(93, 225, 230, 0.25));
}

.burger {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    color: var(--text-white);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2101;
    line-height: 1;
}

.burger-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.burger-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.nav-links {
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    width: 100%;
    min-height: 55vh;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 4rem 1.5rem 2rem;
    transition: transform 0.35s ease;
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-links.active {
    transform: translateY(0);
}

.nav-links li {
    margin: 0.35rem 0;
    position: relative;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.88;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--cyan-bright);
    text-shadow: 0 0 18px rgba(93, 225, 230, 0.45);
    opacity: 1;
}

.nav-contact {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dim);
    text-decoration: none;
}

.contact-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* Buttons */
.btn-tech {
    display: inline-block;
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    color: var(--text-white);
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.btn-tech:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 40px rgba(0, 130, 173, 0.25);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-ghost:hover {
    border-color: var(--cyan-bright);
    box-shadow: none;
}

/* Hero home */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.25rem 4rem;
    background:
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 130, 173, 0.18), transparent 50%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.97) 100%);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(0, 130, 173, 0.22), transparent 55%);
    pointer-events: none;
}

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

.main-logo {
    width: clamp(200px, 62vw, 440px);
    height: auto;
    margin-bottom: 1.25rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-kicker {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cyan-bright);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.08;
    font-size: clamp(1.65rem, 6vw, 3.25rem);
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #fff 40%, var(--cyan-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-dim);
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-cta-row .btn-tech {
    width: auto;
    min-width: 200px;
}

/* Inner page hero */
.page-hero {
    padding: 7rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0, 130, 173, 0.12), transparent 50%);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.page-hero h1 span {
    color: var(--cyan-bright);
}

.page-hero p {
    color: var(--text-dim);
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1rem;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 2.2rem);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-title span {
    color: var(--cyan-bright);
    border-bottom: 3px solid var(--cyan-bright);
}

.lead {
    text-align: center;
    max-width: 640px;
    margin: -1rem auto 2rem;
    color: var(--text-dim);
    font-size: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Grids */
.grid-steps {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.feature-card,
.service-pillar {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
}

.feature-card:hover,
.service-pillar:hover {
    border-color: rgba(93, 225, 230, 0.35);
    box-shadow: var(--shadow-glow);
}

.feature-card h3,
.service-pillar h2 {
    color: var(--cyan-bright);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.feature-card p,
.service-pillar p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.pillar-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--bg-dark);
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.portfolio-card {
    display: grid;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.portfolio-card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(0, 130, 173, 0.3), rgba(3, 7, 18, 0.9));
    display: flex;
    height: 100%;
    width: 100%;

}

.portfolio-card__link {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    color: var(--text-white);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2101;
    line-height: 1;
}

.portfolio-card__body .roi {
    color: var(--cyan-bright);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.portfolio-card__body p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.price-card--featured {
    border-color: var(--cyan-bright);
    box-shadow: 0 0 0 1px rgba(93, 225, 230, 0.2), var(--shadow-glow);
}

.badge {
    align-self: flex-start;
    background: var(--cyan-bright);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.price-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}

.price-from {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.price-val {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 800;
    color: var(--cyan-bright);
    margin: 0.75rem 0;
    line-height: 1;
}

.price-val span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 600;
}

.price-ideal {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-style: italic;
}

.price-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.price-gift {
    font-size: 0.8rem;
    color: var(--cyan-bright);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.price-list {
    list-style: none;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.price-list li {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    display: flex;
    gap: 0.5rem;
    color: var(--text-dim);
}

.price-list li::before {
    content: "→";
    color: var(--cyan-bright);
    font-weight: 800;
    flex-shrink: 0;
}

.options-block,
.maintenance-block,
.engagements-block {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.options-block h3,
.maintenance-block h3,
.engagements-block h3 {
    color: var(--cyan-bright);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.option-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.option-row:last-child {
    border-bottom: none;
}

.option-row strong {
    color: var(--text-white);
}

/* FAQ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1.1rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: var(--cyan-bright);
    font-weight: 800;
    font-size: 1.25rem;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list .answer {
    padding: 0 0 1.1rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-list .answer a {
    color: var(--cyan-bright);
}

/* Forms */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.1rem;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.1rem;
    border-radius: 14px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235de1e6'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: #0f172a;
    color: var(--text-white);
}

.form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.25rem 0;
}

.form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--cyan-bright);
}

.form-consent label {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.form-consent a {
    color: var(--cyan-bright);
}

/* Testimonials */
.testimonial-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    min-width: min(300px, 85vw);
    scroll-snap-align: start;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--cyan-bright);
}

.testimonial-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.testimonial-card .who {
    margin-top: 1rem;
    font-weight: 800;
    color: var(--cyan-bright);
    font-size: 0.88rem;
}

/* Floating contact */
.floating-contact {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2500;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.floating-contact .btn-tech {
    width: auto;
    padding: 0.55rem 0.75rem;
    min-width: unset;
}

.floating-contact .contact-link {
    background: var(--bg-card);
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-banner p {
    flex: 1 1 280px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

.btn-cookie {
    background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
}

.cookie-shown .floating-contact {
    bottom: 5.5rem;
}

/* Footer */
.site-footer {
    padding: 3rem 0 5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-legal {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.footer-legal a {
    color: var(--cyan-bright);
    text-decoration: none;
}

/* Prose (about) */
.prose {
    max-width: 720px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.2rem;
    color: var(--cyan-bright);
    margin: 2rem 0 0.75rem;
}

.prose p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

/* Nav progress desktop */
@media (min-width: 900px) {
    .nav-progress {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 3px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 3px;
        overflow: hidden;
        pointer-events: none;
    }

    .nav-progress-fill {
        display: block;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--cyan-bright), var(--cyan-deep));
        transition: width 0.12s linear;
    }
}

@media (min-width: 900px) {
    .grid-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .burger {
        display: none;
    }

    .nav-links {
        position: static;
        transform: none;
        min-height: unset;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        background: transparent;
        border: none;
        gap: 0.35rem 1.25rem;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .nav-contact {
        display: flex;
    }

    .section {
        padding: 5rem 0;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-row {
        grid-template-columns: 1fr auto;
        align-items: baseline;
    }

    .btn-tech {
        width: auto;
    }

    .btn-cookie {
        width: auto;
    }

    .contact-box {
        padding: 3rem;
    }

    .price-card:hover {
        transform: translateY(-8px);
        border-color: rgba(93, 225, 230, 0.45);
    }
}

@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .main-logo {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
