/* Fluxwave Mobile Studio - core styles */
:root {
    --color-primary: #5e2ce3;
    --color-secondary: #13b5c7;
    --color-accent: #f8c341;
    --color-dark: #11142d;
    --color-mid: #435478;
    --color-light: #ffffff;
    --color-muted: #5d6686;
    --surface-soft: #f4f6fd;
    --surface-card: #ffffff;
    --surface-alt: #e9eefc;
    --shadow-soft: 0 12px 28px rgba(25, 37, 65, 0.12);
    --border-color: rgba(36, 52, 89, 0.12);
    --font-main: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--surface-soft);
    color: var(--color-dark);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}

button,
.btn {
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    box-shadow: 0 10px 24px rgba(94, 44, 227, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(94, 44, 227, 0.32);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-mid);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(94, 44, 227, 0.08);
}

.layout {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(36, 52, 89, 0.08);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
    position: relative;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(94, 44, 227, 0.12);
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(94, 44, 227, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(36, 52, 89, 0.16);
    padding: 0.6rem;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    position: relative;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-label {
    position: absolute;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 5rem 0 6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(19, 181, 199, 0.15);
    color: var(--color-mid);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.hero-content h1 {
    font-size: clamp(2.85rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
}

.hero-content p {
    color: var(--color-mid);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-actions {
    margin-top: 2.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-badges span {
    border-radius: 999px;
    border: 1px solid rgba(36, 52, 89, 0.12);
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--color-mid);
    background: rgba(19, 181, 199, 0.08);
}

.slider-shell {
    background: linear-gradient(135deg, #ffffff 0%, #eef1ff 100%);
    border-radius: 32px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 89, 0.1);
    box-shadow: var(--shadow-soft);
}

.slider-shell::after {
    content: "";
    position: absolute;
    inset: 20% 10% -60% 35%;
    background: radial-gradient(circle, rgba(94, 44, 227, 0.35), transparent 68%);
    opacity: 0.6;
    z-index: 0;
}

.screen-slider {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.slider-controls {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 220px;
}

.slider-controls button {
    width: 100%;
    padding: 0.9rem 1.1rem;
    text-align: left;
    background: rgba(19, 181, 199, 0.08);
    border-radius: 18px;
    border: 1px solid transparent;
    color: var(--color-mid);
    font-weight: 500;
    transition: border 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.slider-controls button.active {
    border-color: rgba(94, 44, 227, 0.5);
    color: var(--color-primary);
    transform: translateX(6px);
    background: rgba(94, 44, 227, 0.08);
}

.slider-visual {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 89, 0.08);
    background: #ffffff;
}

.slider-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.8rem;
    padding: 2.8rem 0 3.8rem;
    border-top: 1px solid rgba(36, 52, 89, 0.08);
    border-bottom: 1px solid rgba(36, 52, 89, 0.08);
}

.trust-card {
    padding: 1.6rem;
    background: var(--surface-card);
    border-radius: 18px;
    border: 1px solid rgba(36, 52, 89, 0.1);
    box-shadow: var(--shadow-soft);
}

.trust-card strong {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.section {
    padding: 4.5rem 0;
}

.section header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

.section header p {
    max-width: 680px;
    color: var(--color-muted);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    padding: 2rem;
    border-radius: 24px;
    background: var(--surface-card);
    border: 1px solid rgba(36, 52, 89, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card-media,
.cta-media {
    width: 100%;
    border-radius: 18px;
    height: 180px;
    margin-bottom: 1.4rem;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(94, 44, 227, 0.12);
}

.card-media img,
.cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card::before {
    content: "";
    position: absolute;
    inset: 18% 60% -30% -20%;
    background: radial-gradient(circle, rgba(94, 44, 227, 0.18), transparent 70%);
    opacity: 0.7;
}

.card strong {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    color: var(--color-dark);
}

.card p {
    color: var(--color-muted);
}

.feature-diagram {
    margin-top: 3rem;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 89, 0.1);
    box-shadow: var(--shadow-soft);
}

.accordion {
    margin-top: 2.4rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(36, 52, 89, 0.12);
    padding: 1.4rem 0 1.2rem;
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    color: inherit;
    padding: 0;
    font-size: 1.05rem;
    color: var(--color-dark);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    color: var(--color-muted);
}

.accordion-item.active .accordion-content {
    max-height: 340px;
    opacity: 1;
    margin-top: 0.8rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.pill-list span {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 52, 89, 0.12);
    background: rgba(19, 181, 199, 0.12);
    color: var(--color-mid);
}

.process-steps {
    counter-reset: process;
    display: grid;
    gap: 1.6rem;
}

.process-steps li {
    background: var(--surface-card);
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(36, 52, 89, 0.1);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.process-steps li::before {
    counter-increment: process;
    content: counter(process, decimal-leading-zero);
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    font-size: 0.92rem;
    color: rgba(67, 84, 120, 0.38);
    letter-spacing: 0.14em;
}

.testimonials {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
    padding: 2.2rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(94, 44, 227, 0.12), rgba(19, 181, 199, 0.1));
    border: 1px solid rgba(36, 52, 89, 0.1);
    color: var(--color-dark);
    box-shadow: var(--shadow-soft);
}

.testimonial-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(94, 44, 227, 0.12), rgba(19, 181, 199, 0.18));
    padding: 3.5rem;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 89, 0.1);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: -35% 45% 10% -25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 78%);
}

.cta-panel {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.6rem;
    border: 1px solid rgba(36, 52, 89, 0.12);
    box-shadow: 0 24px 52px rgba(31, 44, 78, 0.16);
    display: grid;
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}

.cta-panel h3 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin: 0;
    color: var(--color-dark);
}

.cta-panel p {
    margin: 0;
    color: var(--color-muted);
}

.contact-milestones {
    display: grid;
    gap: 1.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-milestones li {
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: rgba(244, 246, 253, 0.9);
    border: 1px solid rgba(36, 52, 89, 0.12);
}

.contact-milestones strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1rem;
    color: var(--color-dark);
}

.contact-milestones p {
    font-size: 0.92rem;
    color: var(--color-muted);
    margin: 0;
}

.contact-highlights {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.contact-highlights article {
    background: rgba(19, 181, 199, 0.12);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(19, 181, 199, 0.24);
}

.contact-highlights h4 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.contact-highlights p,
.contact-highlights a {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-mid);
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(36, 52, 89, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-dark);
    font-size: 0.95rem;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(19, 181, 199, 0.6);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form {
    margin-top: 2.4rem;
    background: #ffffff;
    border-radius: 28px;
    padding: 2.6rem;
    border: 1px solid rgba(36, 52, 89, 0.12);
    box-shadow: 0 22px 48px rgba(29, 44, 78, 0.14);
    display: grid;
    gap: 2.2rem;
    position: relative;
    z-index: 1;
}

.contact-form-header p {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(94, 44, 227, 0.12);
    color: var(--color-primary);
}

.form-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
    background: rgba(244, 246, 253, 0.8);
    border: 1px solid rgba(36, 52, 89, 0.18);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
    background-position: calc(100% - 24px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: rgba(19, 181, 199, 0.7);
    box-shadow: 0 0 0 4px rgba(19, 181, 199, 0.12);
}

.form-footer {
    display: flex;
    gap: 1.8rem;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-policy {
    max-width: 420px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.form-policy strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}

.form-policy a {
    color: var(--color-primary);
    text-decoration: underline;
}

footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(36, 52, 89, 0.1);
    padding: 3.2rem 0 2.6rem;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(20, 30, 58, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.4rem;
}

.footer-grid h4 {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.footer-grid p,
.footer-grid a {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.footer-bottom {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: rgba(17, 20, 45, 0.55);
    font-size: 0.86rem;
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(340px, 90vw);
    background: #ffffff;
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid rgba(36, 52, 89, 0.12);
    box-shadow: 0 18px 40px rgba(20, 34, 70, 0.16);
    display: none;
    z-index: 140;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.cookie-banner a {
    color: var(--color-primary);
    text-decoration: underline;
}

.policy-page {
    padding: 4rem 0;
    background: var(--surface-soft);
}

.policy-page h1 {
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    margin-bottom: 1.4rem;
}

.policy-page h2 {
    margin-top: 2.4rem;
    font-size: 1.4rem;
    color: var(--color-dark);
}

.policy-page p,
.policy-page li {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.policy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.thank-you {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.thank-you .card {
    max-width: 640px;
    padding: 3rem;
}

@media (max-width: 960px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
        align-self: flex-end;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        background: #ffffff;
        border: 1px solid rgba(36, 52, 89, 0.12);
        border-radius: 16px;
        padding: 1rem;
        min-width: 240px;
        box-shadow: 0 18px 34px rgba(20, 30, 58, 0.18);
        flex-direction: column;
        gap: 0.6rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    .nav-links a {
        width: 100%;
        padding: 0.6rem 0.8rem;
        border-radius: 12px;
    }

    .nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .slider-shell {
        padding: 1.6rem;
    }

    .slider-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .slider-controls button {
        flex: 1 1 200px;
        text-align: center;
        transform: none !important;
    }

    .slider-controls button.active {
        border-color: rgba(19, 181, 199, 0.6);
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 4rem;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .cta-section {
        padding: 2.4rem;
    }

    .cta-panel {
        padding: 2rem;
    }

    .card-media,
    .cta-media {
        height: 160px;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.4rem;
    }

    .form-policy {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* small comment: maybe revisit animation timing later */


