/**
 * CORE STYLES - Digitoimisto Lapio
 * Pohja ja yhteiset tyylit kaikille teemoille
 */

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Typografiaskaala */
    --text-xs: clamp(0.7rem, 1vw, 0.8rem);
    --text-sm: clamp(0.8rem, 1.2vw, 0.9rem);
    --text-base: clamp(0.9rem, 1.4vw, 1.05rem);
    --text-lg: clamp(1.05rem, 1.8vw, 1.25rem);

    /* Spacing */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;

    /* Transitiot */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-theme: 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    /* Focus-ring */
    --focus-ring: 0 0 0 3px var(--accent-primary, #4f46e5);

    /* Kortin hehku (oletuksena ei mitään, cyber-teema ylikirjoittaa) */
    --card-glow: none;
}

/* Cyber-teemassa kortin hehku */
body.theme-cyber {
    --card-glow: drop-shadow(0 0 10px rgba(0, 255, 157, 0.2));
}

/* === UNIVERSAL RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Kohdistetut teematransitiot — EI wildcard *
   Animoidaan vain elementit jotka oikeasti muuttuvat teeman mukaan */
.content-card-bg,
.content-card-shadow,
.btn,
.modal-content,
.modal-overlay,
.contact-link,
.contact-form-link-btn,
input,
textarea,
select,
.site-footer,
.cookie-banner {
    transition:
        background-color var(--transition-theme),
        border-color var(--transition-theme),
        color var(--transition-base),
        border-radius var(--transition-theme),
        box-shadow var(--transition-base);
}

/* === BODY & CANVAS === */
html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-main);
    cursor: var(--cursor-type, default);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Modal Active State - Estä taustaskrollaus vain tietosuojamodaalin aikana */
body.modal-active {
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    background: transparent;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    /* Pitää canvasin ja varjot hero-sektioon */
    display: flex;
    align-items: center;
}

/* === LAYOUT GRID (hero-sisällä) === */
.layout-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    pointer-events: none;
}

.hero-content-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 2rem 4rem;
    /* Tilaa pill-navlle ylhäällä */
}

.hero-canvas-col {
    /* Näkymätön sarake – canvas piirtyy sen kohdalle */
    pointer-events: none;
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .hero-content-col {
        justify-content: center;
        padding: 5rem 1.25rem 7rem;
        /* Tilaa alanavigaatiolle */
    }

    .hero-canvas-col {
        display: none;
    }
}

/* ============================================
   SIVUN YHTEISET SEKTIOTYYLIT
   ============================================ */

section {
    position: relative;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    /* Ei gradient kuten h1:llä – selkeämpi */
    background: linear-gradient(135deg, var(--text-main), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-lead {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================
   #PROFIILI -SEKTIO
   ============================================ */

.section-profiili {
    background: rgba(255, 255, 255, 0.01);
}

.profiili-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.profiili-image-wrap {
    position: relative;
}

.profiili-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.profiili-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.profiili-intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-main);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.profiili-teksti {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.profiili-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: var(--border-radius-btn, 4px);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(8px);
    animation: skill-reveal 0.4s ease forwards;
}

.skill-tag:hover {
    background: rgba(0, 255, 157, 0.15);
    border-color: #00ff9d;
    box-shadow: 0 0 14px rgba(0, 255, 157, 0.35);
    transform: translateY(-2px);
}

@keyframes skill-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.profiili-status-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #00ff9d;
    color: #00ff9d;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff9d;
    border-radius: 50%;
    flex-shrink: 0;
}

.profiili-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profiili-contact-links .contact-link {
    transition: color 0.2s, text-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.profiili-contact-links .contact-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
    background: rgba(0, 255, 157, 0.06);
    border-color: rgba(0, 255, 157, 0.5);
    transform: translateY(-2px);
}

.profiili-contact-links .contact-link svg {
    transition: stroke 0.2s;
}

.profiili-contact-links .contact-link:hover svg {
    stroke: var(--accent-primary);
}

@media (max-width: 768px) {
    .profiili-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profiili-image-wrap {
        max-width: 160px;
        margin: 0 auto;
    }

    .profiili-skills {
        justify-content: center;
    }

    .profiili-contact-links {
        justify-content: center;
    }
}

/* ============================================
   #PALVELUT -SEKTIO
   ============================================ */

.section-palvelut {
    background: rgba(0, 255, 157, 0.01);
    border-top: 1px solid rgba(0, 255, 157, 0.08);
}

/* ============================================
   #YHTEYSTIEDOT -SEKTIO
   ============================================ */

.section-yhteystiedot {
    border-top: 1px solid rgba(0, 255, 157, 0.08);
}

.yhteystiedot-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.yhteystiedot-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn, 4px);
}

.yhteystiedot-profile-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-secondary);
    flex-shrink: 0;
}

.yhteystiedot-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.yhteystiedot-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.yhteystiedot-direct {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.yhteystiedot-direct .contact-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.yhteystiedot-form-col .contact-form {
    margin-top: 0;
}

@media (max-width: 768px) {
    .yhteystiedot-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .yhteystiedot-direct {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ============================================
   HERO EYEBROW (inline-CSS → luokka)
   ============================================ */

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   BTN-OUTLINE
   ============================================ */

.btn-outline {
    background: transparent !important;
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.3) !important;
}

.btn-outline:hover {
    background: rgba(0, 255, 157, 0.1) !important;
}

/* ============================================
   FORM SUCCESS MESSAGE
   ============================================ */

.form-success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.4);
    border-radius: var(--border-radius-btn, 4px);
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Bugikorjaus: display:flex ei saa ylikirjoittaa [hidden]-attribuuttia */
.form-success-message[hidden] { display: none !important; }

.form-success-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   COOKIE BANNER (siirretty inline-CSS:stä)
   ============================================ */

.cookie-banner {
    position: fixed;
    z-index: 150;
    bottom: 2rem;
    right: 2rem;
    max-width: 380px;
    width: calc(100% - 4rem);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner.hiding {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-text {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.cookie-text a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-accept-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    background: var(--accent-primary);
    color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.cookie-accept-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.cookie-accept-btn:active {
    transform: scale(0.97);
}

.cookie-accept-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 6.5rem;
        /* Pill-nav on alhaalla */
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
        width: auto;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-accept-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .cookie-banner {
        bottom: 7.5rem;
        right: 0.5rem;
        left: 0.5rem;
        padding: 1rem;
    }
}

/* === GLASSMORPHISM CARD === */

/* Wrapper: Pitää sisällään taustan ja sisällön */
.content-card-wrapper {
    position: relative;
    width: calc(100% - 4rem);
    /* Deduct margins to prevent overflow */
    max-width: 600px;
    margin: 2rem;
    display: flex;
    z-index: 20;
    /* Varmistaa että laatikko on teemavalitsimen alla */
    will-change: transform;
    transform-style: preserve-3d;
}

@media (max-width: 768px) {
    .content-card-wrapper {
        margin: 1rem auto;
        /* Center on mobile, reduced vertical margin */
        width: calc(100% - 2rem);
    }
}

/* Varjo: 80% suurempi kuin itse kuvio, synkronoitu pyöriminen */
.content-card-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--accent-primary);
    opacity: 0.15;
    filter: blur(60px);
    transform: scale(1.8);
    /* 80% suurempi */
    transform-origin: center center;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 0% 0%);
    z-index: -1;
    will-change: transform, clip-path;
}

/* Tausta: Tämä elementti pyörii ja morphaa */
.content-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);

    /* Hehku: teemakohtainen, --card-glow määritelty :root:ssa per teema */
    filter: var(--card-glow, none);

    /* Clip-path pohja morphausta varten */
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 0% 0%);
    transform-origin: center center;
    will-change: transform, clip-path;
    z-index: 0;
}

/* Sisältö: Pysyy paikallaan, ei pyöri */
.content-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: transparent;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    pointer-events: auto;
}

/* === TYPOGRAPHY === */
h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 5rem);
    /* Min 1.5rem pienillä näytöillä */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, var(--text-main), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Tekstin morph-efekti kirjaimet */
.morph-char {
    display: inline-block;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    perspective: 500px;
}

p.lead {
    font-size: clamp(0.85rem, 2.5vw, 1.25rem);
    /* Skaalautuva */
    color: var(--text-muted);
    margin-bottom: clamp(1rem, 3vw, 2.5rem);
    max-width: 500px;
    line-height: 1.5;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 0.75rem);
    padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1rem, 2.5vw, 2rem);
    background: var(--text-main);
    color: var(--bg-color);
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    /* Skaalautuva */
    font-family: inherit;
}

/* Hero CTA Button Group */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    background: var(--accent-primary);
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    pointer-events: auto;
    background: var(--glass-bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-btn);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    font-family: inherit;
    color: var(--text-main);
}

.theme-toggle span {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* === THEME SELECTOR (Top Right) === */
.theme-selector {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--accent-secondary);
}

.theme-preview {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
}

/* Organic Flow - pyöreät muodot, lämmin gradient */
.theme-preview.organic {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 50%, #f0f4f8 100%);
    border-radius: 50%;
}

/* Cyber Structure - terävät kulmat, neon */
.theme-preview.cyber {
    background: linear-gradient(135deg, #0f172a 0%, #00ff9d 50%, #0ea5e9 100%);
    border-radius: 4px;
}

/* Architect Vision - orgaaniset käyrät, kulta */
.theme-preview.architect {
    background: linear-gradient(135deg, #0a0a0a 0%, #c0a882 50%, #ffffff 100%);
    border-radius: 50% 20% 50% 30%;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    backdrop-filter: blur(0px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--accent-primary);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* === TRANSITION OVERLAY (Lapio-kaivaus) === */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transition-overlay.active {
    opacity: 1;
}

/* Multakasa-partikkelit */
.dirt-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* ====================================
   MOBIILI RESPONSIIVISUUS - Perus (768px)
   ==================================== */
@media (max-width: 768px) {
    .content-card-wrapper {
        margin: 0.75rem auto;
        max-width: calc(100% - 1.5rem);
    }

    .content-card {
        padding: 1.5rem 1.25rem;
    }

    .hidden-mobile {
        display: none !important;
    }

    .section-inner {
        padding: 3.5rem 1.25rem;
    }
}

/* ====================================
   ISOMPI MOBIILI (414-480px) - iPhone Plus/Max
   ==================================== */
@media (max-width: 480px) and (min-width: 415px) {

    /* Canvas: Piilota kokonaan */
    #hero-canvas {
        display: none;
    }

    .layout-grid {
        padding: 0.5rem 0;
    }

    .content-card-wrapper {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .content-card-bg {
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .content-card-shadow {
        display: none;
    }

    .content-card {
        padding: 1.75rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .content-card .mb-4 {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    h1 {
        font-size: 1.9rem;
        margin-bottom: 0.85rem;
        line-height: 1.15;
    }

    p.lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.55;
        max-width: 90%;
    }

    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.85rem;
    }
}

/* ====================================
   MOBIILI LAYOUT - Uusi lähestymistapa (414px)
   Canvas KORTIN ALLA, keskitetty, hämärämpi
   ==================================== */
@media (max-width: 414px) {

    /* Canvas-lapio: PIILOTETTU MOBIILISSA */
    #hero-canvas {
        display: none;
        /* Näkyy vain desktopilla */
    }

    /* Layout: Täytä näyttö */
    .layout-grid {
        padding: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Wrapper: Täysleveys */
    .content-card-wrapper {
        margin: 0;
        max-width: 100%;
        width: 100%;
        flex: 1;
        z-index: 10;
        /* Canvasin päällä */
    }

    /* Kortin tausta: Käytä teeman väriä, lisää läpinäkyvyyttä */
    .content-card-bg {
        /* Ei kovakoodata väriä - teema määrittää */
        /* Lisätään vain läpinäkyvyyttä ja vähennetään blur */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 0;
        border: none;
        box-shadow: none;
        opacity: 0.92;
        /* Hieman läpinäkyvämpi */
    }

    /* Varjo: Piilota */
    .content-card-shadow {
        display: none;
    }

    /* Sisältö: Kortti */
    .content-card {
        padding: 2.5rem 1.5rem 3rem;
        text-align: center;
        align-items: center;
    }

    /* Logo: Iso */
    .logo-container {
        width: 85px;
        height: 85px;
        margin-bottom: 1.25rem;
    }

    /* Digilapio-teksti */
    .content-card .mb-4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.85rem !important;
    }

    /* H1: KOROSTETTU, iso */
    h1 {
        font-size: clamp(1.9rem, 8vw, 2.3rem);
        margin-bottom: 1.1rem;
        line-height: 1.15;
        text-align: center;
    }

    /* Lead-teksti: Isompi */
    p.lead {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
        line-height: 1.55;
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Painike */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-shovel-icon {
        width: 16px;
        height: 16px;
    }
}

/* ====================================
   ERITTÄIN PIENI NÄYTTÖ (360px)
   Hienosäätö pienimmille laitteille
   ==================================== */
@media (max-width: 360px) {
    .content-card {
        padding: 1.5rem 1rem;
        padding-bottom: 7rem;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }

    h1 {
        font-size: 1.5rem;
    }

    p.lead {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
    }
}

/* ====================================
   MORPH SYSTEM - Taustaelementit
   ==================================== */

/* Piilotetut SVG morphauskohteet */
.morph-targets {
    width: 0;
    height: 0;
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

/* Taustan Maailma-muoto */
.world-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vmax;
    height: 140vmax;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

.world-bg path {
    fill: var(--accent-primary, #00ff9d);
    transition: fill 1s ease;
}

/* CSS/SVG Partikkelit */
.morph-particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.morph-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.3;
    will-change: transform, opacity;
}

/* Logo container */
.logo-container {
    width: clamp(80px, 15vw, 140px);
    height: clamp(80px, 15vw, 140px);
    margin-bottom: 1.5rem;
}

#main-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px var(--accent-primary));
    transition: filter 1s ease;
}

/* LOW PERFORMANCE TOGGLE - poistettu tuotannosta */

/* LOW PERFORMANCE TOGGLE - poistettu tuotannosta */

/* ====================================
   BUTTON SHOVEL ICON
   ==================================== */

.btn-shovel-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn:hover .btn-shovel-icon {
    animation: miniDig 0.5s ease-in-out;
}

@keyframes miniDig {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(-15deg) translateY(2px);
    }

    50% {
        transform: rotate(-25deg) translateY(4px);
    }

    75% {
        transform: rotate(-10deg) translateY(1px);
    }
}

/* ====================================
   LOGO PULSE EFFECT
   ==================================== */

.logo-container svg {
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 30px var(--accent-primary));
    }

    50% {
        filter: drop-shadow(0 0 50px var(--accent-primary));
    }
}

/* ====================================
   ENHANCED CONTACT MODAL
   ==================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    cursor: pointer;
}

.contact-modal {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
    /* Kavennettu, kun mini-apps piilotettu */
    max-height: 90vh;
    /* CRITICAL: Prevent modal from exceeding viewport */
    padding: 3rem 3rem 1.5rem;
    overflow-y: auto;
    /* CRITICAL: Enable scrolling */
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 10;
    /* CRITICAL: Stay above scrolling content */
}

.modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-color);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--accent-secondary));
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Info Section */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn);
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Contact Form Link Button */
.contact-form-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn);
    color: var(--accent-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-link-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-link-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Pricing Link Button (Kaiva lisää -modal) */
.pricing-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn);
    color: var(--accent-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pricing-link-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-link-btn svg {
    width: 14px;
    height: 22px;
    flex-shrink: 0;
}

/* Modal Divider */
.modal-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.modal-divider span {
    padding: 0 1rem;
}

/* MiniApp Links */
.miniapp-links {
    text-align: center;
}

.miniapp-links-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.miniapp-grid {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.miniapp-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.miniapp-link-btn:not(:disabled):hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.miniapp-link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.miniapp-icon {
    font-size: 1.5rem;
}

/* ====================================
   LOW PERFORMANCE MODE OVERRIDES
   ==================================== */

body.low-perf-mode * {
    animation-duration: 0.1s !important;
    animation-delay: 0s !important;
    transition-duration: 0.1s !important;
}

body.low-perf-mode .world-bg,
body.low-perf-mode .content-card-shadow {
    display: none !important;
}

body.low-perf-mode .content-card-bg {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.low-perf-mode .logo-container svg {
    animation: none !important;
    filter: drop-shadow(0 0 15px var(--accent-primary)) !important;
}

body.low-perf-mode .morph-particle-container {
    display: none !important;
}

body.low-perf-mode #hero-canvas {
    opacity: 0.3 !important;
}

@media (max-width: 768px) {
    .low-perf-toggle {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }

    .contact-modal {
        max-height: 85vh;
        /* MOBILE: Smaller max-height */
        padding: 1.25rem 1rem;
        /* MOBILE: Reduced padding */
        max-width: 90vw;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .miniapp-grid {
        flex-direction: column;
    }

    .miniapp-link-btn {
        width: 100%;
    }
}

/* ====================================
   HIDDEN FOR NOW (julkaisun ajaksi)
   ==================================== */

.hidden-for-now {
    display: none !important;
}

/* ====================================
   CONTACT INFO LAYOUT
   ==================================== */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ====================================
   SEO FOOTER
   ==================================== */

.site-footer {
    position: relative;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-address {
    font-style: normal;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-name {
    font-weight: 600;
    color: var(--accent-secondary);
}

.footer-location {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent-secondary);
}

.footer-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}

.footer-business-type {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-privacy-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Footer mobiilioptimointi - selkeä ja luettava */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.25rem 1rem;
        /* Tilaa alanavigaatiolle */
        padding-bottom: 5.5rem;
        font-size: 0.65rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.25rem;
    }

    .footer-address {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-name {
        font-size: 0.7rem;
    }

    .footer-contact {
        font-size: 0.65rem;
    }

    /* Näytä osoite mobiilissa */
    .footer-location {
        display: block;
        font-size: 0.6rem;
    }

    /* Piilota vain meta-tiedot */
    .footer-meta {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-bottom: 6rem;
    }
}

/* ====================================
   PROFILE SECTION - Modal Redesign 2025
   ==================================== */

/* Profile + Contact Grid Layout */
.modal-profile-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Profile Image Container */
.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
}

/* Profile Image */
.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

/* Profile Details (Right side) */
.profile-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* Contact Info Grid - Compact Layout */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-info-grid .contact-link {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    justify-content: center;
}

/* Contact Actions - täysleveys, profiilikuvan alla */
.contact-actions {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* MiniApp Features Section */
.miniapp-features {
    margin-top: 2rem;
}

.features-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Feature Card - Bento Box Style */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feature-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--glass-border);
    box-shadow: none;
}

/* Feature Icon */
.feature-icon {
    font-size: 2rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.feature-card.disabled .feature-icon {
    filter: grayscale(1);
}

/* Feature Label */
.feature-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-label {
    color: var(--text-main);
}

/* ====================================
   RESPONSIVE - Profile Section
   ==================================== */

@media (max-width: 768px) {
    .modal-profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
        /* ULTRA COMPACT */
        margin-bottom: 0.75rem;
    }

    .profile-image-container {
        margin: 0 auto;
        width: 90px;
        height: 90px;
    }

    .profile-details {
        align-items: center;
        text-align: center;
    }

    /* Email & Soita pinottu mobiilissa */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .contact-info-grid .contact-link {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
        gap: 0.4rem;
    }

    .contact-form-link-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Ominaisuudet rinnakkain */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .feature-card {
        padding: 0.65rem 0.4rem;
        min-height: 80px;
        justify-content: center;
    }

    .feature-icon {
        font-size: 1.25rem;
        /* Pienempi ikoni rinnakkain */
    }

    .feature-label {
        font-size: 0.6rem;
    }

    .modal-header {
        margin-bottom: 0.75rem;
    }

    .modal-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

@media (max-width: 360px) {
    .profile-image-container {
        width: 70px;
        /* VIIKSESTÄ VIIKSEEN: Vielä pienempi */
        height: 70px;
    }

    .contact-modal {
        padding: 1rem 0.75rem;
        max-width: 92vw;
        max-height: 98vh;
        /* Hyödynnetään lähes koko ruutu pystysuunnassa */
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-subtitle {
        font-size: 0.75rem;
    }

    .contact-info-grid .contact-link span {
        font-size: 0.75rem;
    }

    .contact-form-link-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .contact-form-link-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* === CONTACT FORM MODAL (UUSI) === */
.contact-form-modal {
    max-width: 500px;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-btn);
    padding: 0.85rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-cyber .form-group input,
.theme-cyber .form-group textarea {
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    background: var(--accent-primary);
    color: var(--bg-color);
}

.btn-full:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Mobile Optimizations for Form */
@media (max-width: 480px) {
    .contact-form-modal {
        padding: 1.5rem 1.25rem;
        width: 95%;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   PRIVACY CONSENT CHECKBOX
   ============================================ */

.form-group-consent {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
}

.privacy-link {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.privacy-link:hover {
    opacity: 0.7;
}

/* Error state for consent checkbox */
.form-group-consent.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.form-group-consent.error .checkbox-text {
    color: #ff4444;
}

/* ============================================
   PRIVACY MODAL
   ============================================ */

.privacy-modal-overlay {
    z-index: 1100;
    /* Higher than contact modal (1000) */
}

.privacy-modal-content {
    max-width: 650px;
    max-height: 85vh;
    width: 90%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Close button (large X, top-right) */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    transform: rotate(90deg);
}

/* Header */
.privacy-modal-header {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    padding-right: 4rem;
    /* Space for close button */
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.privacy-modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.privacy-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Scrollable body */
.privacy-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);

    /* Custom scrollbar (webkit browsers) */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.1);
}

.privacy-modal-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Summary sections */
.privacy-summary-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-summary-section:last-of-type {
    border-bottom: none;
}

.privacy-summary-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-summary-section h3 i {
    font-size: 1rem;
}

.privacy-summary-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.privacy-summary-section ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.privacy-summary-section li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.privacy-summary-section strong {
    font-weight: 600;
    color: var(--accent-primary);
}

.privacy-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Full policy link */
.privacy-full-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent-primary);
    text-align: center;
}

.privacy-full-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-modal-content {
        max-height: 90vh;
        width: 95%;
    }

    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .privacy-modal-header {
        padding-right: 3.5rem;
    }

    .checkbox-label {
        font-size: 0.85rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .privacy-modal-body {
        padding: 1.25rem;
    }

    .privacy-summary-section h3 {
        font-size: 1.1rem;
    }

    .privacy-summary-section p,
    .privacy-summary-section li {
        font-size: 0.9rem;
    }
}

/* ====================================
   FOCUS-VISIBLE — saavutettavuus
   ==================================== */

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--border-radius-btn, 4px);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--accent-primary);
}

/* ====================================
   PREFERS-REDUCED-MOTION
   ==================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #hero-canvas {
        display: none;
    }

    .world-bg {
        animation: none !important;
    }

    .content-card-bg,
    .content-card-shadow {
        animation: none !important;
    }
}

/* ====================================
   CROSSHAIR-KURSORI (pointer: fine)
   ==================================== */

@media (pointer: fine) {
    html {
        cursor: crosshair;
    }
}
/**
 * CYBER THEME - "Cyber Structure"
 * Tekninen, ruudukko, neon - Digitoimisto Lapio
 * Ainoa teema v2026 – ei teemanvaihdinta
 */

:root {
    /* Väripaletti */
    --bg-color: #0f172a;
    --accent-primary: #00ff9d;
    /* Neon Green */
    --accent-secondary: #0ea5e9;
    /* Sky Blue */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    /* Glassmorphism - tumma versio */
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(0, 255, 157, 0.2);

    /* Typografia */
    --font-display: 'Space Grotesk', monospace;
    --font-body: 'Space Grotesk', monospace;

    /* Muodot - terävät */
    --border-radius-lg: 2px;
    --border-radius-btn: 4px;

    /* Efektit */
    --cursor-type: crosshair;
    --particle-shape: 'square';

    /* Multakasa-värit - digitaaliset partikkelit */
    --dirt-color-1: #00ff9d;
    --dirt-color-2: #0ea5e9;
}

/* === RUUDUKKOTAUSTA === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* === NAPIT (Cyber-tyyli) === */

/* Ensisijainen nappi (täytetty) */
.btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.25);
}

.btn:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Toissijainen nappi (outline) – ylikirjoitetaan core.css:n .btn-outline */
.btn.btn-outline {
    background: transparent !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.3) !important;
    box-shadow: none !important;
}

.btn.btn-outline:hover {
    background: rgba(0, 255, 157, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2) !important;
}

/* Täysleveys-submit nappi */
.btn-full {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.btn-full:hover {
    background: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* === GLASSMORPHISM KORTTI (hero-hero) === */
.content-card {
    box-shadow:
        0 0 20px rgba(0, 255, 157, 0.08),
        inset 0 0 20px rgba(0, 255, 157, 0.02);
}

/* === H1 – neon glow === */
h1 {
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
}

/* === SEKTIOIDEN TAUSTAT === */
.section-profiili {
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 157, 0.015) 100%);
}

.section-palvelut {
    background:
        linear-gradient(180deg, rgba(0, 255, 157, 0.01) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.section-yhteystiedot {
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.015) 0%, transparent 100%);
}

/* === PROFIILI – PYÖRIVÄ NEON-BORDER + BADGE === */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.profiili-image-wrap {
    position: relative;
}

.profiili-image-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from var(--angle), #00ff9d, #0ea5e9, transparent 60%, #00ff9d);
    animation: profiili-spin 6s linear infinite;
    z-index: 0;
}

@keyframes profiili-spin {
    to { --angle: 360deg; }
}

.profiili-image-wrap.paused::before {
    animation-play-state: paused;
}

.status-dot {
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 4px #00ff9d; opacity: 1; }
    50%       { box-shadow: 0 0 10px #00ff9d; opacity: 0.6; }
}

/* === PROFIILI SECTION EYEBROW === */
.section-profiili .section-eyebrow {
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

/* === PROFIILI SKILL TAGS === */
.skill-tag {
    font-family: var(--font-body);
}

/* === PRICING BLOCK === */
.pricing-block {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .pricing-block {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* === CONTACT FORM - Cyber inputit === */
.theme-cyber .form-group input,
.theme-cyber .form-group textarea {
    border-radius: 2px;
    font-family: var(--font-body);
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid rgba(0, 255, 157, 0.12);
}
/**
 * FLOATING PILL NAVIGATION - Digilapio 2026
 * Lasimorfistinen pill-palkki – desktop yläreuna, mobiili alareuna
 */

/* === PILL NAV WRAPPER === */
.pill-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 9999px;
    padding: 0.35rem 0.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 255, 157, 0.05) inset;
    white-space: nowrap;
}

/* === NAVIGATION LINKS === */
.pill-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    min-height: 44px;
    border-radius: 9999px;
    color: rgba(148, 163, 184, 0.85);
    text-decoration: none;
    font-family: var(--font-body, 'Space Grotesk', monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        background 0.2s ease;
    white-space: nowrap;
}

.pill-nav a:hover {
    color: var(--accent-primary, #00ff9d);
    background: rgba(0, 255, 157, 0.06);
}

/* Active (Intersection Observer asettaa tai sivuaktiivisuus) */
.pill-nav a.active,
.pill-nav .nav-menu a.active {
    color: #0f172a !important;
    background: var(--accent-primary, #00ff9d) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.4) !important;
}

/* Ensimmäinen linkki (brändinimi) – aina hieman erilainen */
.pill-nav a:first-child {
    color: var(--accent-primary, #00ff9d);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pill-nav a:first-child.active {
    color: #000;
}

/* === TABLET (640–1024px): desktop top pill, slightly smaller === */
@media (max-width: 1024px) and (min-width: 641px) {
    .pill-nav {
        top: 1.25rem;
        padding: 0.3rem 0.45rem;
    }

    .pill-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}

/* === TABLET (481–640px): suora navigaatio alareunan pillissä === */
@media (max-width: 640px) and (min-width: 481px) {
    .pill-nav {
        top: auto;
        bottom: 1.25rem;
        padding: 0.3rem 0.4rem;
        gap: 0.1rem;
        max-width: calc(100vw - 2rem);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pill-nav::-webkit-scrollbar {
        display: none;
    }

    .pill-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 0.04em;
        min-height: 44px;
    }

    .nav-toggle {
        display: none !important;
    }

    /* Force nav-menu to stay inline, not a dropdown */
    .nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0;
        gap: 0.1rem;
        z-index: auto;
        overflow-y: visible;
        max-height: none;
        transition: none;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
        width: auto;
        text-align: center;
        border-bottom: none;
        border-radius: 9999px;
        justify-content: center;
        min-height: 44px;
    }

    .nav-menu .nav-cta {
        background: var(--accent-primary, #00ff9d);
        color: var(--bg-color, #0f172a);
        font-weight: 600;
    }

    .nav-menu .nav-cta:hover {
        background: var(--accent-secondary, #00cc7d);
        color: var(--bg-color, #0f172a);
    }
}

/* === MOBILE (<480px): hamburger, pill yläreunaan === */
@media (max-width: 480px) {
    .pill-nav {
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        max-width: 100vw;
        padding: 0.5rem 1rem;
        gap: 0;
        justify-content: space-between;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        border: none;
        border-bottom: 1px solid rgba(0, 255, 157, 0.25);
        z-index: 1000;
    }

    .pill-nav a:first-child {
        padding: 0.5rem 0;
    }
}

/* ============================================
   SITE NAVIGATION — Multi-page nav (uudistus)
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: var(--accent-secondary);
}

.nav-toggle {
    display: none;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.35);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(0, 255, 157, 0.18);
    border-color: rgba(0, 255, 157, 0.6);
    transform: scale(1.05);
    outline: none;
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    padding: 0.5rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-body, 'Space Grotesk', monospace);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    border-radius: 9999px;
    transition: color 0.2s ease, background 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.08);
}

/* ============================================
   KORJATTU CTA-PAINIKE (Väri, Koko, Canvas-yhteensopivuus)
   ============================================ */

/* Perustila ja Desktop-näkymä */
.pill-nav .nav-menu .nav-cta,
.pill-nav .nav-cta {
    background: var(--accent-primary, #00ff9d) !important;
    color: var(--bg-color, #0f172a) !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    padding: 0.55rem 1.25rem !important;
    border: 2px solid transparent !important;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.18);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover-tila (Noste + kirkkaampi väri + vahvempi hohto) */
.pill-nav .nav-menu .nav-cta:hover,
.pill-nav .nav-cta:hover {
    background: var(--accent-secondary, #0ea5e9) !important;
    color: var(--bg-color, #0f172a) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.35);
}

/* Fokus-tila (Saavutettavuus näppäimistökäyttäjille) */
.pill-nav .nav-menu .nav-cta:focus-visible,
.pill-nav .nav-cta:focus-visible {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.4) !important;
}

/* Aktiivinen tila (jos käyttäjä on yhteystiedot-sivulla) */
.pill-nav .nav-menu .nav-cta.active,
.pill-nav .nav-cta.active {
    background: var(--accent-primary, #00ff9d) !important;
    color: var(--bg-color, #0f172a) !important;
    border-color: var(--accent-secondary, #0ea5e9) !important;
}



/* === MOBILE (<480px): hamburger menu === */
@media (max-width: 480px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(16px);
        padding: 1rem;
        gap: 0;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
        border-bottom: 1px solid var(--glass-border);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
    }

    .nav-menu a {
        padding: 1rem 1.25rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid var(--glass-border);
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    /* Korjataan mobiilivalikon CTA-painikkeen koko ja muoto */
    .nav-menu .nav-cta {
        display: inline-flex !important;
        width: auto !important;
        max-width: fit-content !important;
        margin: 0.85rem auto !important;
        padding: 0.65rem 1.5rem !important;
        border-radius: 9999px !important;
        border-bottom: none !important;
        background: var(--accent-primary, #00ff9d) !important;
        color: var(--bg-color, #0f172a) !important;
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2) !important;
    }
}

/* === SCROLL LOCK === */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   KELLUVA MOBIILINAVIGAATIO (FAB & DRAWER)
   ============================================ */

/* Oletuksena piilotettu työpöydällä */
.mobile-nav-wrapper {
    display: none;
}

@media (max-width: 768px) {
    /* Piilotetaan vanha yläpalkki ja hamburger mobiilissa kokonaan */
    .pill-nav {
        display: none !important;
    }
    
    .mobile-nav-wrapper {
        display: block;
    }

    /* Kelluva painike (FAB) */
    .mobile-fab {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid var(--accent-primary, #00ff9d);
        color: #ffffff;
        z-index: 2000;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(0, 255, 157, 0.35);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        padding: 0;
    }

    .mobile-fab:hover,
    .mobile-fab:focus-visible {
        transform: scale(1.05);
        border-color: var(--accent-secondary, #0ea5e9);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(0, 255, 157, 0.55);
        outline: none;
    }

    .mobile-fab:active {
        transform: scale(0.95);
    }

    /* Animoitava kuvake (hampurilainen -> X) */
    .fab-icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s;
    }

    /* FAB aktiivinen tila (valikko auki) */
    .mobile-fab.active {
        border-color: var(--accent-secondary, #0ea5e9);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(14, 165, 233, 0.55);
    }

    .mobile-fab.active .bar-1 {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--accent-secondary, #0ea5e9);
    }

    .mobile-fab.active .bar-2 {
        opacity: 0;
    }

    .mobile-fab.active .bar-3 {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--accent-secondary, #0ea5e9);
    }

    /* Valikkopaneeli (Bottom Sheet / Drawer) */
    .mobile-menu-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1990;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 2px solid rgba(0, 255, 157, 0.25);
        border-radius: 24px 24px 0 0;
        padding: 1.5rem 1.5rem 2.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-menu-drawer.open {
        transform: translateY(0);
    }

    .mobile-drawer-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
        position: relative;
    }

    /* Visuaalinen vedin paneelin yläreunassa */
    .mobile-drawer-header::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        position: absolute;
        top: -8px;
    }

    .mobile-drawer-title {
        font-family: var(--font-body, 'Space Grotesk', monospace);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-muted, #94a3b8);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    /* Valikon linkkilista */
    .mobile-drawer-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-drawer-menu li {
        width: 100%;
    }

    .mobile-drawer-menu a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1.25rem;
        min-height: 48px;
        border-radius: 12px;
        color: rgba(248, 250, 252, 0.85);
        text-decoration: none;
        font-family: var(--font-body, 'Space Grotesk', monospace);
        font-size: 1rem;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .mobile-drawer-menu a i {
        font-size: 1.1rem;
        width: 20px;
        color: var(--accent-primary, #00ff9d);
        text-align: center;
        transition: color 0.2s;
    }

    .mobile-drawer-menu a:hover,
    .mobile-drawer-menu a:focus-visible {
        background: rgba(0, 255, 157, 0.08);
        border-color: rgba(0, 255, 157, 0.3);
        color: var(--accent-primary, #00ff9d);
        outline: none;
    }

    .mobile-drawer-menu a.active {
        background: rgba(0, 255, 157, 0.12);
        border-color: rgba(0, 255, 157, 0.5);
        color: var(--accent-primary, #00ff9d);
        font-weight: 600;
    }

    /* Korostettu CTA (Ota yhteyttä) */
    .mobile-drawer-menu .mobile-cta-li {
        margin-top: 0.5rem;
    }

    .mobile-drawer-menu a.mobile-drawer-cta {
        background: var(--accent-primary, #00ff9d);
        border: 1px solid var(--accent-primary, #00ff9d);
        color: var(--bg-color, #0f172a);
        font-weight: 600;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 255, 157, 0.25);
    }

    .mobile-drawer-menu a.mobile-drawer-cta i {
        color: var(--bg-color, #0f172a);
    }

    .mobile-drawer-menu a.mobile-drawer-cta:hover,
    .mobile-drawer-menu a.mobile-drawer-cta:focus-visible {
        background: var(--accent-secondary, #0ea5e9);
        border-color: var(--accent-secondary, #0ea5e9);
        color: var(--bg-color, #0f172a);
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
    }

    .mobile-drawer-menu a.mobile-drawer-cta:hover i {
        color: var(--bg-color, #0f172a);
    }

    /* Taustasumennus (Overlay) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1980;
        background: rgba(10, 15, 30, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0s 0.3s;
    }

    .mobile-menu-overlay.visible {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s, visibility 0s;
    }
}
/* ============================================
   SHARED COMPONENTS — Digilap.io uudistus
   ============================================ */

/* --- Service Cards (etusivu + palvelusivut) --- */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -10px rgba(0, 255, 157, 0.08);
}

.service-card .card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.service-card .card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Person Block --- */
.person-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.person-block img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.person-block .person-name {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.person-block .person-role {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.person-block .person-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .person-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .person-block img {
    margin: 0 auto;
  }
}

/* --- Problem Cards (etusivu) --- */
.problem-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --- Demo Cards --- */
.demo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.demo-card .demo-area {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-btn);
  padding: 1rem;
  min-height: 200px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--accent-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--text-main);
}

/* --- Responsive Grids --- */
.problem-grid,
.service-grid,
.demo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .problem-grid,
  .service-grid,
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problem-grid,
  .service-grid,
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
